mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
fix: close timetick protection by default (#43650)
issue: #43266 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
6a74a7de66
commit
0d5e0ca795
@ -1143,7 +1143,7 @@ quotaAndLimits:
|
||||
# specific conditions, such as memory of nodes to water marker), true means always reject all dml requests.
|
||||
forceDeny: false
|
||||
ttProtection:
|
||||
enabled: true
|
||||
enabled: false
|
||||
# maxTimeTickDelay indicates the backpressure for DML Operations.
|
||||
# DML rates would be reduced according to the ratio of time tick delay to maxTimeTickDelay,
|
||||
# if time tick delay is greater than maxTimeTickDelay, all DML requests would be rejected.
|
||||
|
||||
@ -1684,7 +1684,7 @@ specific conditions, such as memory of nodes to water marker), ` + "true" + ` me
|
||||
p.TtProtectionEnabled = ParamItem{
|
||||
Key: "quotaAndLimits.limitWriting.ttProtection.enabled",
|
||||
Version: "2.2.0",
|
||||
DefaultValue: "true",
|
||||
DefaultValue: "false",
|
||||
Export: true,
|
||||
}
|
||||
p.TtProtectionEnabled.Init(base.mgr)
|
||||
|
||||
@ -206,7 +206,7 @@ func TestQuotaParam(t *testing.T) {
|
||||
|
||||
t.Run("test limit writing", func(t *testing.T) {
|
||||
assert.False(t, qc.ForceDenyWriting.GetAsBool())
|
||||
assert.Equal(t, true, qc.TtProtectionEnabled.GetAsBool())
|
||||
assert.Equal(t, false, qc.TtProtectionEnabled.GetAsBool())
|
||||
assert.Equal(t, 1200, qc.MaxTimeTickDelay.GetAsInt())
|
||||
assert.Equal(t, defaultLowWaterLevel, qc.DataNodeMemoryLowWaterLevel.GetAsFloat())
|
||||
assert.Equal(t, defaultHighWaterLevel, qc.DataNodeMemoryHighWaterLevel.GetAsFloat())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user