There's more...

Since we changed the location of the key-value layer of our cluster, we should also alter the host:port value to the -d parameter when invoking the patronictl command. If we wanted a list of cluster nodes from pg2 while relying on Consul, we would execute this command:

patronictl list -d pg2:8500 stampede

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.