@@ -124,17 +124,7 @@ Deploy a three-node etcd cluster, taking node1 as an example
124124 ✔ Container etcd Started 0.1s
125125
126126```
127- After all nodes are deployed, check the status of the etcd cluster.
128- ```
129- [root@manager-node1 docker-compose]# docker exec -it etcd etcdctl --write-out=table --endpoints="192.168.21.205:2379,192.168.21.164:2379,192.168.21.51:2379" endpoint status
130- +---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
131- | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
132- +---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
133- | 192.168.21.205:2379 | 10574d87df892440 | 3.5.8 | 20 kB | true | false | 2 | 13 | 13 | |
134- | 192.168.21.164:2379 | a47a4fd720eb36e7 | 3.5.8 | 20 kB | false | false | 2 | 13 | 13 | |
135- | 192.168.21.51:2379 | b76a77d78fdf886f | 3.5.8 | 20 kB | false | false | 2 | 13 | 13 | |
136- +---------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
137- ```
127+
138128Deploy an IvorySQL high-availability cluster.
139129
140130Deploy the ivyhac service on each node, using node1 as an example.
@@ -148,19 +138,7 @@ CONTAINER ID IMAGE COMMAND
1481389d8e04e4f819 quay.io/coreos/etcd:v3.5.8 "/usr/local/bin/etcd" 24 minutes ago Up 24 minutes etcd
149139
150140```
151- After all nodes are deployed, check the status of the IvorySQL cluster.
152- ```
153- [root@manager-node1 docker-compose]# docker exec -it ivyhac1 /bin/bash
154- [ivorysql@manager-node1 /]$ patronictl -c $PATRONICONF/patroni.yml list
155- + Cluster: ivory-cluster (7548337408295624728) ------+----+-----------+
156- | Member | Host | Role | State | TL | Lag in MB |
157- +-------------+----------------+---------+-----------+----+-----------+
158- | ivypatroni1 | 192.168.21.205 | Leader | running | 1 | |
159- | ivypatroni2 | 192.168.21.164 | Replica | streaming | 1 | 0 |
160- | ivypatroni3 | 192.168.21.51 | Replica | streaming | 1 | 0 |
161- +-------------+----------------+---------+-----------+----+-----------+
162141
163- ```
164142At this point, the one-primary-two-standby cluster setup is complete.
165143Connect to the database using psql via Oracle-compatible ports and PostgreSQL ports.
166144```
0 commit comments