mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
19338437d4
commit
c64e88099b
@ -280,7 +280,7 @@ dataCoord:
|
||||
enableActiveStandby: false # Enable active-standby
|
||||
|
||||
channel:
|
||||
watchTimeoutInterval: 30 # Timeout on watching channels (in seconds). Datanode tickler update watch progress will reset timeout timer.
|
||||
watchTimeoutInterval: 120 # Timeout on watching channels (in seconds). Datanode tickler update watch progress will reset timeout timer.
|
||||
balanceSilentDuration: 300 # The duration before the channelBalancer on datacoord to run
|
||||
balanceInterval: 360 #The interval for the channelBalancer on datacoord to check balance status
|
||||
|
||||
|
||||
@ -193,6 +193,9 @@ func (dsService *dataSyncService) initNodes(vchanInfo *datapb.VchannelInfo, tick
|
||||
return err
|
||||
}
|
||||
|
||||
//tickler will update addSegment progress to watchInfo
|
||||
tickler.watch()
|
||||
defer tickler.stop()
|
||||
futures := make([]*concurrency.Future, 0, len(unflushedSegmentInfos)+len(flushedSegmentInfos))
|
||||
|
||||
for _, us := range unflushedSegmentInfos {
|
||||
@ -269,10 +272,6 @@ func (dsService *dataSyncService) initNodes(vchanInfo *datapb.VchannelInfo, tick
|
||||
futures = append(futures, future)
|
||||
}
|
||||
|
||||
//tickler will update addSegment progress to watchInfo
|
||||
tickler.watch()
|
||||
defer tickler.stop()
|
||||
|
||||
err = concurrency.AwaitAll(futures...)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@ -1407,7 +1407,7 @@ func (p *dataCoordConfig) init(base *BaseTable) {
|
||||
}
|
||||
|
||||
func (p *dataCoordConfig) initWatchTimeoutInterval() {
|
||||
p.WatchTimeoutInterval = time.Duration(p.Base.ParseInt64WithDefault("dataCoord.channel.watchTimeoutInterval", 30)) * time.Second
|
||||
p.WatchTimeoutInterval = time.Duration(p.Base.ParseInt64WithDefault("dataCoord.channel.watchTimeoutInterval", 120)) * time.Second
|
||||
}
|
||||
|
||||
func (p *dataCoordConfig) initChannelBalanceSilentDuration() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user