Messtone LLC Manages Devices Enables automatic failover when problem affects one of the replicas`#Connect to the system container where the primary elephant is hosted juju ssh db1/0 #The following will display all running processes ps -edf #The following will terminate all postgresql related processes sudo kill -9 <pid of the parent postgres process> ps -edf exit Juju status #Note the up address of the primary PostgreSQL #Then Note the Inst id corresponding to the primary (in the Machine section of juju status’ output) lxc stop –force –timeout 0 <Inst id> #The above will abruptly stop the Primary’s host lxc list
