From dffc35e421c1faecba8d1d4befe45f2097f15b85 Mon Sep 17 00:00:00 2001 From: shivanshu1333 Date: Fri, 9 Jun 2023 18:37:09 +0530 Subject: [PATCH] remove Procfile.v2 and Procfile.learner Signed-off-by: shivanshu1333 --- Procfile | 19 ++++++++++++++++++- Procfile.learner | 12 ------------ Procfile.v2 | 7 ------- 3 files changed, 18 insertions(+), 20 deletions(-) delete mode 100644 Procfile.learner delete mode 100644 Procfile.v2 diff --git a/Procfile b/Procfile index 92ef3763958..82d58eb73ba 100644 --- a/Procfile +++ b/Procfile @@ -6,4 +6,21 @@ etcd2: bin/etcd --name infra2 --listen-client-urls http://127.0.0.1:22379 --adve 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 --logger=zap --log-outputs=stderr #proxy: bin/etcd grpc-proxy start --endpoints=127.0.0.1:2379,127.0.0.1:22379,127.0.0.1:32379 --listen-addr=127.0.0.1:23790 --advertise-client-url=127.0.0.1:23790 --enable-pprof -# A learner node can be started using Procfile.learner +# A learner node can be started using the below Procfile.learner (uncomment and run) + +# Use goreman to run `go install github.com/mattn/goreman@latest` + +# 1. Start the cluster using Procfile +# 2. Add learner node to the cluster +# % etcdctl member add infra4 --peer-urls="http://127.0.0.1:42380" --learner=true + +# 3. Start learner node with goreman +# Change the path of bin/etcd if etcd is located elsewhere + +# uncomment below to setup + +# etcd4: bin/etcd --name infra4 --listen-client-urls http://127.0.0.1:42379 --advertise-client-urls http://127.0.0.1:42379 --listen-peer-urls http://127.0.0.1:42380 --initial-advertise-peer-urls http://127.0.0.1:42380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra4=http://127.0.0.1:42380,infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state existing --enable-pprof --logger=zap --log-outputs=stderr + +# 4. The learner node can be promoted to voting member by the command +# % etcdctl member promote + diff --git a/Procfile.learner b/Procfile.learner deleted file mode 100644 index 1517d3f2be8..00000000000 --- a/Procfile.learner +++ /dev/null @@ -1,12 +0,0 @@ -# Use goreman to run `go install github.com/mattn/goreman@latest` - -# 1. Start the cluster using Procfile -# 2. Add learner node to the cluster -# % etcdctl member add infra4 --peer-urls="http://127.0.0.1:42380" --learner=true - -# 3. Start learner node with goreman -# Change the path of bin/etcd if etcd is located elsewhere -etcd4: bin/etcd --name infra4 --listen-client-urls http://127.0.0.1:42379 --advertise-client-urls http://127.0.0.1:42379 --listen-peer-urls http://127.0.0.1:42380 --initial-advertise-peer-urls http://127.0.0.1:42380 --initial-cluster-token etcd-cluster-1 --initial-cluster 'infra4=http://127.0.0.1:42380,infra1=http://127.0.0.1:12380,infra2=http://127.0.0.1:22380,infra3=http://127.0.0.1:32380' --initial-cluster-state existing --enable-pprof --logger=zap --log-outputs=stderr - -# 4. The learner node can be promoted to voting member by the command -# % etcdctl member promote diff --git a/Procfile.v2 b/Procfile.v2 deleted file mode 100644 index c68511e56d4..00000000000 --- a/Procfile.v2 +++ /dev/null @@ -1,7 +0,0 @@ -# Use goreman to run `go install github.com/mattn/goreman@latest` -# Change the path of bin/etcd if etcd is located elsewhere -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