From b4424a884ceb18784af6402a77b1f347ffbb7e0d Mon Sep 17 00:00:00 2001 From: Samar Abbas Date: Thu, 22 Feb 2018 08:43:21 -0800 Subject: [PATCH 1/2] Config changes to start replicator for standby cluster --- config/development_standby.yaml | 30 ++++++++++++++++++++++++++---- glide.lock | 2 +- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/config/development_standby.yaml b/config/development_standby.yaml index a2060e80584..a20b49376c0 100644 --- a/config/development_standby.yaml +++ b/config/development_standby.yaml @@ -19,7 +19,7 @@ services: metrics: statsd: hostPort: "127.0.0.1:8125" - prefix: "cadence" + prefix: "cadence_standby" pprof: port: 8936 @@ -30,7 +30,7 @@ services: metrics: statsd: hostPort: "127.0.0.1:8125" - prefix: "cadence" + prefix: "cadence_standby" pprof: port: 8938 @@ -41,14 +41,36 @@ services: metrics: statsd: hostPort: "127.0.0.1:8125" - prefix: "cadence" + prefix: "cadence_standby" pprof: port: 8937 + worker: + rpc: + port: 8940 + bindOnLocalHost: true + metrics: + statsd: + hostPort: "127.0.0.1:8125" + prefix: "cadence_standby" + pprof: + port: 7941 + clustersInfo: initialFailoverVersion: 1 failoverVersionIncrement: 10 currentClusterName: "standby" clusterNames: - "active" - - "standby" \ No newline at end of file + - "standby" + +kafka: + clusters: + test: + brokers: + - 127.0.0.1:9092 + topics: + active: + cluster: test + standby: + cluster: test \ No newline at end of file diff --git a/glide.lock b/glide.lock index 65dc115a77d..3a02bf5a0e5 100644 --- a/glide.lock +++ b/glide.lock @@ -120,7 +120,7 @@ imports: - name: github.com/uber-go/atomic version: e682c1008ac17bf26d2e4b5ad6cdd08520ed0b22 - name: github.com/uber-go/kafka-client - version: 5d9967a526b6c6533a752a83036eb16ffd4e2b5a + version: 01a7eeb4f9ea6e4c16a6ec5d159076c88244c947 subpackages: - internal/backoff - internal/consumer From a8a94077442efc7dc35ea870fc6ef4fca66b6268 Mon Sep 17 00:00:00 2001 From: Samar Abbas Date: Thu, 22 Feb 2018 16:51:16 -0800 Subject: [PATCH 2/2] address cr comments --- config/development_standby.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/development_standby.yaml b/config/development_standby.yaml index a20b49376c0..9a8917174bd 100644 --- a/config/development_standby.yaml +++ b/config/development_standby.yaml @@ -54,7 +54,7 @@ services: hostPort: "127.0.0.1:8125" prefix: "cadence_standby" pprof: - port: 7941 + port: 8941 clustersInfo: initialFailoverVersion: 1