clusterCreate: add warning for 2 server nodes (quorum for etcd)

pull/467/head
iwilltry42 4 years ago
parent 7966ade1d9
commit b2162b1618
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 5
      pkg/client/cluster.go

@ -482,6 +482,11 @@ ClusterCreatOpts:
}
}
// WARN, if there are exactly two server nodes: that means we're using etcd, but don't have fault tolerance
if serverCount == 2 {
log.Warnln("You're creating 2 server nodes: Please consider creating at least 3 to achieve quorum & fault tolerance")
}
/*
* Auxiliary Containers
*/

Loading…
Cancel
Save