From 782166dadd3da1b439ac7aa7768282e433cc1cfb Mon Sep 17 00:00:00 2001 From: Rob Szumski Date: Thu, 9 Jan 2014 14:37:04 -0800 Subject: [PATCH] feat(docs): make clustering examples more complete --- Documentation/clustering.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/clustering.md b/Documentation/clustering.md index e9ffe8d18..4bfc2cfd1 100644 --- a/Documentation/clustering.md +++ b/Documentation/clustering.md @@ -16,11 +16,11 @@ We use `-peer-addr` to specify server port and `-addr` to specify client port an **Note:** If you want to run etcd on an external IP address and still have access locally, you'll need to add `-bind-addr 0.0.0.0` so that it will listen on both external and localhost addresses. A similar argument `-peer-bind-addr` is used to setup the listening address for the server port. -Let's join two more machines to this cluster using the `-peers` argument: +Let's join two more machines to this cluster using the `-peers` argument. A single connection to any peer will allow a new machine to join, but multiple can be specified for greater resiliency. ```sh -./etcd -peer-addr 127.0.0.1:7002 -addr 127.0.0.1:4002 -peers 127.0.0.1:7001 -data-dir machines/machine2 -name machine2 -./etcd -peer-addr 127.0.0.1:7003 -addr 127.0.0.1:4003 -peers 127.0.0.1:7001 -data-dir machines/machine3 -name machine3 +./etcd -peer-addr 127.0.0.1:7002 -addr 127.0.0.1:4002 -peers 127.0.0.1:7001,127.0.0.1:7003 -data-dir machines/machine2 -name machine2 +./etcd -peer-addr 127.0.0.1:7003 -addr 127.0.0.1:4003 -peers 127.0.0.1:7001,127.0.0.1:7002 -data-dir machines/machine3 -name machine3 ``` We can retrieve a list of machines in the cluster using the HTTP API: