02.01. Simulation of failure of the MASTER node

                <<< Back   Next >>>

1. Connect to current master
[postgres@app-pgsql01 ~]$ psql -h 192.168.1.88 -p 5000 -d db777 -U postgreadmin -W
psql> select inet_server_addr();


2. Simulation of failure of the MASTER node
[root@pgsql-db01 ~]# poweroff

3. Check current connection
[postgres@app-pgsql01 ~]$ psql -h 192.168.1.88 -p 5000 -d db777 -U postgreadmin -W
psql> select inet_server_addr();
                <<< Back   Next >>>

No comments:

Post a Comment