This action adds support to backup databases using the following command:
ccp action run backup-db -p db=<your-database-name>
We add haproxy side-cont to the galera pod. We bind galera to port 33306
and haproxy takes its place with 3306. Haproxy starts with non-working backend.
After it start, it checks for current leader in etcd, if there is none, it
set current leader to itself. After that it updates its backend to connect to
It does polling of this logic each 5 sec and if leader is changed it will
update backend again.
Other nodes do the same, so, in the end, each node will be connected to the
same, single galera node.