Simple Stack

In this chapter, we will learn how to build a quick, yet adaptable, high availability stack to keep our PostgreSQL servers online. In order to do that, we will cover the following recipes:

  • Preparing systems for the stack
  • Installing and configuring etcd
  • Installing and configuring HAProxy
  • Installing and configuring Patroni
  • Performing a managed failover
  • Using an outage to test availability
  • Adding a node back into the cluster
  • Adding additional nodes to the mix
  • Replacing etcd with ZooKeeper
  • Replacing etcd with Consul
  • Upgrading while staying online

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.