enhance: Increase heartbeat timeout (#28648)

it's easy to trigger heartbeat timeout after 100ms when standalone cpu
usage reach 100%.
This PR increase the heartbeat timeout param to 2000ms

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/28702/head
wei liu 2023-11-23 19:50:24 +08:00 committed by GitHub
parent 098c1c926d
commit 4b8d3eaa41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1525,7 +1525,7 @@ func (p *queryCoordConfig) init(base *BaseTable) {
p.CheckHealthRPCTimeout = ParamItem{
Key: "queryCoord.checkHealthRPCTimeout",
Version: "2.2.7",
DefaultValue: "100",
DefaultValue: "2000",
PanicIfEmpty: true,
Doc: "100ms, the timeout of check health rpc to query node",
Export: true,

View File

@ -260,7 +260,7 @@ func TestComponentParam(t *testing.T) {
checkHealthInterval := Params.CheckHealthInterval.GetAsInt()
assert.Equal(t, 3000, checkHealthInterval)
checkHealthRPCTimeout := Params.CheckHealthRPCTimeout.GetAsInt()
assert.Equal(t, 100, checkHealthRPCTimeout)
assert.Equal(t, 2000, checkHealthRPCTimeout)
assert.Equal(t, 0.1, Params.GlobalRowCountFactor.GetAsFloat())
params.Save("queryCoord.globalRowCountFactor", "0.4")