February 2020
Intermediate to advanced
734 pages
38h 13m
English
There is another way to obtain the cluster status. The repmgr command can also report how it perceives the cluster from any active node, given the cluster show parameter. Here is the entire command as executed by the postgres user:
repmgr cluster show
The result of this command as executed on pgha2 is as follows:

The repmgr cluster show command also accepts a handy --csv option to indicate the online status of each node ID and whether or not it is replicating. This is presented in CSV format for easy programmatic interpretation if desired.
Read now
Unlock full access