Sfoglia il codice sorgente

update reapNode interval

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 anni fa
parent
commit
99f84ff5a7
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      libnetwork/controller.go
  2. 1 1
      libnetwork/networkdb/cluster.go

+ 1 - 1
libnetwork/controller.go

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

+ 1 - 1
libnetwork/networkdb/cluster.go

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