mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
enhance: Increase search/query retry times on proxy before timeout (#40438)
issue: #39379 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
b50c4a7973
commit
8511881d3f
@ -461,7 +461,7 @@ func (s *LBPolicySuite) TestExecute() {
|
||||
},
|
||||
})
|
||||
s.Error(err)
|
||||
s.Equal(int64(11), counter.Load())
|
||||
s.Equal(int64(26), counter.Load())
|
||||
|
||||
// test get shard leader failed
|
||||
globalMetaCache.DeprecateShardCache(dbName, s.collectionName)
|
||||
|
||||
@ -1882,7 +1882,7 @@ please adjust in embedded Milvus: false`,
|
||||
p.RetryTimesOnReplica = ParamItem{
|
||||
Key: "proxy.retryTimesOnReplica",
|
||||
Version: "2.3.0",
|
||||
DefaultValue: "2",
|
||||
DefaultValue: "5",
|
||||
Doc: "retry times on each replica",
|
||||
}
|
||||
p.RetryTimesOnReplica.Init(base.mgr)
|
||||
|
||||
@ -203,7 +203,7 @@ func TestComponentParam(t *testing.T) {
|
||||
assert.Equal(t, Params.ReplicaSelectionPolicy.GetValue(), "look_aside")
|
||||
assert.Equal(t, Params.CheckQueryNodeHealthInterval.GetAsInt(), 1000)
|
||||
assert.Equal(t, Params.CostMetricsExpireTime.GetAsInt(), 1000)
|
||||
assert.Equal(t, Params.RetryTimesOnReplica.GetAsInt(), 2)
|
||||
assert.Equal(t, Params.RetryTimesOnReplica.GetAsInt(), 5)
|
||||
assert.EqualValues(t, Params.HealthCheckTimeout.GetAsInt64(), 3000)
|
||||
|
||||
params.Save("proxy.gracefulStopTimeout", "100")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user