Merge pull request #1542 from allencloud/change-reapNode-interval

update reapNode interval
This commit is contained in:
Santhosh Manohar 2016-11-08 11:14:23 -08:00 committed by GitHub
commit 31dd4362a8
2 changed files with 2 additions and 2 deletions

View file

@ -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)
}
}
}()

View file

@ -241,7 +241,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)