From aa3940deb7e2b7d2c299084abc3f285fec2fd2d3 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Wed, 25 Feb 2015 15:06:51 +0000 Subject: [PATCH] Use random strategy for Swarms Makes a better demo. Signed-off-by: Ben Firshman --- host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host.go b/host.go index 2b9ca0666b..f8abdc6833 100644 --- a/host.go +++ b/host.go @@ -146,7 +146,7 @@ func (h *Host) ConfigureSwarm(discovery string, master bool, host string, addr s tlsCaCert := path.Join(basePath, "ca.pem") tlsCert := path.Join(basePath, "server.pem") tlsKey := path.Join(basePath, "server-key.pem") - masterArgs := fmt.Sprintf("--tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s %s", + masterArgs := fmt.Sprintf("--tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy random %s", tlsCaCert, tlsCert, tlsKey, host, discovery) nodeArgs := fmt.Sprintf("--addr %s %s", addr, discovery)