Controlling the cluster components

Use these commands to start stop individual cluster components.

Procedure

  1. Controlling PostgreSQL
    1. 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.
    2. Stop PostgreSQL.
      For YUM installation:
      sudo service postgresql stop
      For binary file installation:
      <BIN_DIR>/pg_ctl -D /usr/local/var/postgres stop
  2. Controlling Patroni.
    1. Start Patroni.
      sudo systemctl start patroni
    2. Stop Patroni.
      sudo systemctl stop patroni
  3. Controlling etcd.
    1. Start etcd.
      sudo systemctl start etcd
    2. Stop etcd.
      sudo systemctl stop etcd
  4. Controlling HAProxy.
    1. Start HAProxy.
      sudo systemctl start haproxy
    2. Stop HAProxy.
      sudo systemctl stop haproxy