enhance: Increase heartbeat timeout (#28648) (#28721)

pr: #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/28726/head^2
wei liu 2023-11-27 10:40:26 +08:00 committed by GitHub
parent 8520ee7552
commit 9e82a75c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1500,7 +1500,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")