Skip to content

Commit

Permalink
update example yaml to new cluster version and add bin for secondarys (
Browse files Browse the repository at this point in the history
  • Loading branch information
suchen-sci committed Dec 23, 2021
1 parent fb7d28c commit 94c87ad
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 15 deletions.
17 changes: 12 additions & 5 deletions example/primary-001/conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ name: primary-001
cluster-name: cluster-test
cluster-role: primary
cluster:
cluster-listen-client-urls: [http:https://127.0.0.1:12379]
cluster-listen-peer-urls: [http:https://127.0.0.1:12380]
cluster-advertise-client-urls: [http:https://127.0.0.1:12379]
cluster-initial-advertise-peer-urls: [http:https://127.0.0.1:12380]
cluster-join-urls: [http:https://127.0.0.1:12380,http:https://127.0.0.1:22380,http:https://127.0.0.1:32380]
listen-peer-urls:
- http:https://127.0.0.1:12380
listen-client-urls:
- http:https://127.0.0.1:12379
advertise-client-urls:
- http:https://127.0.0.1:12379
initial-advertise-peer-urls:
- http:https://127.0.0.1:12380
initial-cluster:
- primary-001: http:https://127.0.0.1:12380
- primary-002: http:https://127.0.0.1:22380
- primary-003: http:https://127.0.0.1:32380
api-addr: 127.0.0.1:12381
data-dir: ./data
wal-dir: ""
Expand Down
18 changes: 13 additions & 5 deletions example/primary-002/conf/config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: primary-002
cluster-name: cluster-test
cluster-role: primary
cluster-listen-client-urls: [http:https://127.0.0.1:22379]
cluster-listen-peer-urls: [http:https://127.0.0.1:22380]
cluster-advertise-client-urls: [http:https://127.0.0.1:22379]
cluster-initial-advertise-peer-urls: [http:https://127.0.0.1:22380]
cluster-join-urls: [http:https://127.0.0.1:12380,http:https://127.0.0.1:22380,http:https://127.0.0.1:32380]
cluster:
listen-peer-urls:
- http:https://127.0.0.1:22380
listen-client-urls:
- http:https://127.0.0.1:22379
advertise-client-urls:
- http:https://127.0.0.1:22379
initial-advertise-peer-urls:
- http:https://127.0.0.1:22380
initial-cluster:
- primary-001: http:https://127.0.0.1:12380
- primary-002: http:https://127.0.0.1:22380
- primary-003: http:https://127.0.0.1:32380
api-addr: 127.0.0.1:22381
data-dir: ./data
wal-dir: ""
Expand Down
18 changes: 13 additions & 5 deletions example/primary-003/conf/config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: primary-003
cluster-name: cluster-test
cluster-role: primary
cluster-listen-client-urls: [http:https://127.0.0.1:32379]
cluster-listen-peer-urls: [http:https://127.0.0.1:32380]
cluster-advertise-client-urls: [http:https://127.0.0.1:32379]
cluster-initial-advertise-peer-urls: [http:https://127.0.0.1:32380]
cluster-join-urls: [http:https://127.0.0.1:12380,http:https://127.0.0.1:22380,http:https://127.0.0.1:32380]
cluster:
listen-peer-urls:
- http:https://127.0.0.1:32380
listen-client-urls:
- http:https://127.0.0.1:32379
advertise-client-urls:
- http:https://127.0.0.1:32379
initial-advertise-peer-urls:
- http:https://127.0.0.1:32380
initial-cluster:
- primary-001: http:https://127.0.0.1:12380
- primary-002: http:https://127.0.0.1:22380
- primary-003: http:https://127.0.0.1:32380
api-addr: 127.0.0.1:32381
data-dir: ./data
wal-dir: ""
Expand Down
1 change: 1 addition & 0 deletions example/secondary-004/bin
1 change: 1 addition & 0 deletions example/secondary-005/bin

0 comments on commit 94c87ad

Please sign in to comment.