Set up 3 virtual machines running a corosync/pacemaker cluster with postgresql running in sync
mode.
The Postgresql VIP is at 172.28.33.10. pgBouncer connects to that VIP.
This is useful to test doing maintenance operations on the cluster. We don't present a pgBouncer VIP as the first iteration of the tool will be to test adding a VIP to pgBouncer and trying to rebalance the cluster.
- Virtualbox
- Vagrant
git clone https://github.com/gocardless/psql-cluster-testing.git
- [Optional] tmux
- On 3 separate windows:
vagrant up pg01
vagrant up pg02
vagrant up pg03
- [Optional] Assuming you have pgbench, you can run it against 172.28.33.10 on port 6432. or
./tmux-session.sh start