Migrating a stand-alone PostgreSQL instance to a cluster node
Use these steps to convert a PostgreSQL instance to a Patroni cluster,
and then add other nodes to the cluster.
About this task
You can use one of the following scenarios to migrate your existing applications to PostgreSQL HA
that have PostgreSQL as a backend.
- Use current application server that has PostgreSQL daemon that is running as a node in
PostgreSQL to
Patronicluster.Make sure that data directory path and folder name is same as mentioned in the patroni_config.yaml file. If it is not the same, make sure to do necessary changes in patroni_config.yaml on all nodes.
- Migrate data from current application server to
Patronicluster node.Back up your data with backup and restore PostgreSQL utility or copy the entire PostgreSQL data folder to the node. Check that the data folder has appropriate ownership and permissions.
Follow these common steps: