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