Which version of the application are you using?:
Postgresql with Replication (9.6.5)
Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX):
Have you installed any plugin or modified any configuration file?:
Describe here your question/suggestion/issue (expected and actual results):
I've deployed the Postgresql with replication from Bitnami on Azure, it has been running for a month when suddenly my web application cannot connect to the master database, I can connect locally from the terminal and remotely from pgAdmin. When I restart the master server from Azure portal the bitnami service reports a failure and the postgres service also cannot start. I have then promote the slave server into new master and have my web application to connect to the new master.
The question is, I want to retain this new master and just create a new slave db, how can I do that? For information the database has hundreds of schema and pg_dump command for all schema will run for hours before finally failed with out of shared memory error.