From 182d071fd0e546ad1bc1e398d39ac57a7ba91155 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Tue, 3 Oct 2017 09:22:31 -0700 Subject: [PATCH] Documentation/v2: add Procfile.v2 for proxy Signed-off-by: Gyu-Ho Lee --- Documentation/v2/proxy.md | 2 +- Procfile.v2 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Procfile.v2 diff --git a/Documentation/v2/proxy.md b/Documentation/v2/proxy.md index 1489b0152..e96147cbd 100644 --- a/Documentation/v2/proxy.md +++ b/Documentation/v2/proxy.md @@ -154,5 +154,5 @@ If an error occurs, check the [add member troubleshooting doc][runtime-configura [discovery-service]: clustering.md#discovery [goreman]: https://github.com/mattn/goreman -[procfile]: https://github.com/coreos/etcd/blob/master/Procfile +[procfile]: https://github.com/coreos/etcd/blob/master/Procfile.v2 [runtime-configuration]: runtime-configuration.md#error-cases-when-adding-members diff --git a/Procfile.v2 b/Procfile.v2 new file mode 100644 index 000000000..41dd49f1c --- /dev/null +++ b/Procfile.v2 @@ -0,0 +1,6 @@ +# Use goreman to run `go get github.com/mattn/goreman` +etcd1: bin/etcd --name infra1 --listen-client-urls http://127.0.0.1:2379 --advertise-client-urls http://127.0.0.1:2379 --listen-peer-urls http://127.0.0.1:12380 --initial-advertise-peer-urls http://127.0.0.1:12380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof +etcd2: bin/etcd --name infra2 --listen-client-urls http://127.0.0.1:22379 --advertise-client-urls http://127.0.0.1:22379 --listen-peer-urls http://127.0.0.1:22380 --initial-advertise-peer-urls http://127.0.0.1:22380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof +etcd3: bin/etcd --name infra3 --listen-client-urls http://127.0.0.1:32379 --advertise-client-urls http://127.0.0.1:32379 --listen-peer-urls http://127.0.0.1:32380 --initial-advertise-peer-urls http://127.0.0.1:32380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state new --enable-pprof +# in future, use proxy to listen on 2379 +#proxy: bin/etcd --name infra-proxy1 --proxy=on --listen-client-urls http://127.0.0.1:2378 --initial-cluster 'infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --enable-pprof