mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 11:29:48 +08:00
Fix ttProtection.enabled and memProtection (#19756)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com> Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
146a3342c3
commit
efdce464f5
@ -349,7 +349,7 @@ func (q *QuotaCenter) calculateWriteRates() error {
|
||||
log.Debug("QuotaCenter check timeTickDelay done", zap.Float64("ttFactor", ttFactor))
|
||||
|
||||
memFactor := q.memoryToWaterLevel()
|
||||
if ttFactor <= 0 {
|
||||
if memFactor <= 0 {
|
||||
q.forceDenyWriting(MemoryExhausted) // memory protection
|
||||
return nil
|
||||
}
|
||||
|
@ -432,7 +432,7 @@ func (p *quotaConfig) initForceDenyWriting() {
|
||||
}
|
||||
|
||||
func (p *quotaConfig) initTtProtectionEnabled() {
|
||||
p.TtProtectionEnabled = p.Base.ParseBool("quotaAndLimits.limitWriting.ttProtection", true)
|
||||
p.TtProtectionEnabled = p.Base.ParseBool("quotaAndLimits.limitWriting.ttProtection.enabled", true)
|
||||
}
|
||||
|
||||
func (p *quotaConfig) initMaxTimeTickDelay() {
|
||||
|
Loading…
Reference in New Issue
Block a user