There's more...

We can also view the full status of the cluster from any existing node. To do this, we need to pass the list parameter and the path to our configuration file to the patronictl command-line tool. We also need to specify which cluster we want information about. This is because there are multiple methods for obtaining cluster information.

If we use the -c parameter to detail a configuration file, our results should look like this:

The patronictl command also accepts the location of the distributed key-store system. So we could get the same status summary by passing -d pg2:2379 instead, for example.

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.