mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 09:08:43 +08:00
fix: Reduce querycoord check node in replica interval for test (#45837)
issue: #45791 Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
parent
464a805c63
commit
7c9a9c6f7e
@ -177,6 +177,7 @@ func (ob *ReplicaObserver) checkNodesInReplica() {
|
||||
// check all ro nodes, remove it from replica if all segment/channel has been moved
|
||||
for _, collectionID := range collections {
|
||||
replicas := ob.meta.ReplicaManager.GetByCollection(ctx, collectionID)
|
||||
hasNodeRemoved := false
|
||||
for _, replica := range replicas {
|
||||
if enableChannelExclusiveMode && !replica.IsChannelExclusiveModeEnabled() {
|
||||
// register channel for enable exclusive mode
|
||||
@ -217,9 +218,13 @@ func (ob *ReplicaObserver) checkNodesInReplica() {
|
||||
zap.Error(err))
|
||||
continue
|
||||
}
|
||||
hasNodeRemoved = true
|
||||
logger.Info("all segment/channel has been removed from ro node, remove it from replica",
|
||||
zap.Int64s("removedNodes", removeNodes),
|
||||
)
|
||||
}
|
||||
if hasNodeRemoved {
|
||||
utils.RecoverReplicaOfCollection(ctx, ob.meta, collectionID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,6 +89,8 @@ extraConfigFiles:
|
||||
queryNode:
|
||||
segcore:
|
||||
exprEvalBatchSize: 512
|
||||
queryCoord:
|
||||
checkNodeInReplicaInterval: 3
|
||||
metrics:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
@ -98,6 +98,8 @@ extraConfigFiles:
|
||||
scalarField: true
|
||||
scalarIndex: true
|
||||
growingMmapEnabled: true
|
||||
queryCoord:
|
||||
checkNodeInReplicaInterval: 3
|
||||
metrics:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
@ -94,6 +94,8 @@ extraConfigFiles:
|
||||
queryNode:
|
||||
segcore:
|
||||
exprEvalBatchSize: 512
|
||||
queryCoord:
|
||||
checkNodeInReplicaInterval: 3
|
||||
metrics:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user