mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
update reapNode interval
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
734f4ec86d
commit
99f84ff5a7
2 changed files with 2 additions and 2 deletions
|
@ -702,7 +702,7 @@ func (c *controller) NewNetwork(networkType, name string, id string, options ...
|
|||
defer func() {
|
||||
if err != nil {
|
||||
if e := c.deleteFromStore(epCnt); e != nil {
|
||||
log.Warnf("couldnt rollback from store, epCnt %v on failure (%v): %v", epCnt, err, e)
|
||||
log.Warnf("could not rollback from store, epCnt %v on failure (%v): %v", epCnt, err, e)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
|
@ -242,7 +242,7 @@ func (nDB *NetworkDB) reapDeadNode() {
|
|||
defer nDB.Unlock()
|
||||
for id, n := range nDB.failedNodes {
|
||||
if n.reapTime > 0 {
|
||||
n.reapTime -= reapPeriod
|
||||
n.reapTime -= nodeReapPeriod
|
||||
continue
|
||||
}
|
||||
logrus.Debugf("Removing failed node %v from gossip cluster", n.Name)
|
||||
|
|
Loading…
Reference in a new issue