未验证 提交 fef87f87 编写于 作者: B bigsheeper 提交者: GitHub

Disable tt delay protection (#20657)

Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
上级 c05b9ad5
......@@ -451,7 +451,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.
......
......@@ -19,7 +19,6 @@ package paramtable
import (
"math"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
......@@ -72,8 +71,8 @@ func TestQuotaParam(t *testing.T) {
t.Run("test limit writing", func(t *testing.T) {
assert.False(t, qc.ForceDenyWriting)
assert.Equal(t, true, qc.TtProtectionEnabled)
assert.Equal(t, 300*time.Second, qc.MaxTimeTickDelay)
assert.Equal(t, false, qc.TtProtectionEnabled)
assert.Equal(t, math.MaxInt64, int(qc.MaxTimeTickDelay))
assert.Equal(t, defaultLowWaterLevel, qc.DataNodeMemoryLowWaterLevel)
assert.Equal(t, defaultHighWaterLevel, qc.DataNodeMemoryHighWaterLevel)
assert.Equal(t, defaultLowWaterLevel, qc.QueryNodeMemoryLowWaterLevel)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册