Use these commands to start stop individual cluster components.
Procedure
-
Controlling PostgreSQL
- Start PostgreSQL.
For YUM installation:
sudo service postgresql start
For binary file
installation:
<BIN_DIR>/pg_ctl -D /usr/local/var/postgres start
Where,
<BIN_DIR> is the PostgreSQL bin directory.
- Stop PostgreSQL.
For YUM installation:
sudo service postgresql stop
For binary file
installation:
<BIN_DIR>/pg_ctl -D /usr/local/var/postgres stop
- Controlling
Patroni.
- Start
Patroni.
sudo systemctl start patroni
- Stop
Patroni.
sudo systemctl stop patroni
- Controlling
etcd.
- Start
etcd.
sudo systemctl start etcd
- Stop
etcd.
- Controlling
HAProxy.
- Start
HAProxy.
sudo systemctl start haproxy
- Stop
HAProxy.
sudo systemctl stop haproxy