From 9e82a75c22fa31efa3f17323290b2394858a9a34 Mon Sep 17 00:00:00 2001 From: wei liu Date: Mon, 27 Nov 2023 10:40:26 +0800 Subject: [PATCH] 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 --- pkg/util/paramtable/component_param.go | 2 +- pkg/util/paramtable/component_param_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/paramtable/component_param.go b/pkg/util/paramtable/component_param.go index 5b414ec5dd934..a78bd45a20aed 100644 --- a/pkg/util/paramtable/component_param.go +++ b/pkg/util/paramtable/component_param.go @@ -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, diff --git a/pkg/util/paramtable/component_param_test.go b/pkg/util/paramtable/component_param_test.go index 343e38dc98621..9493c50b92a8d 100644 --- a/pkg/util/paramtable/component_param_test.go +++ b/pkg/util/paramtable/component_param_test.go @@ -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")