Better log and status messages for Paxos observer

This commit is contained in:
Bryan Boreham committed 2016-04-07 12:50:52 +01:00
1 parent 0c59de40e7
commit c12a52d20e
4 files changed
+11 -2

No files matched your search

+3 -1
View File
@@ -887,8 +887,10 @@ func (alloc *Allocator) loadPersistedData() {
if len(alloc.seed) != 0 {
alloc.infof("Initialising with supplied IPAM seed")
alloc.createRing(alloc.seed)
} else {
} else if alloc.paxos.IsElector() {
alloc.infof("Initialising via deferred consensus")
} else {
alloc.infof("Initialising as observer - awaiting IPAM data from another peer")
}
}