Patroni: How to promote a Patroni standby cluster

Created on 20 Jun 2019  路  2Comments  路  Source: zalando/patroni

Theoretical question: is it possible - and if, how - to promote a Patroni standby cluster?

The idea is to migrate all not-Patroni clusters in Patroni clusters by first replicating from the actual host/ cluster into a Patroni standby cluster and when everything is set up the right way - and tested - promote the standby cluster to be the "active" one.

I haven't found anything in the documentation about promoting a standby cluster - or if it's even implemented yet. :)

Most helpful comment

The easiest way:

  1. run patronictl edit-config
  2. remove the standby_cluster section from the config
  3. Save and exit from the editor
  4. review the config change and agree to apply it.

thats it

All 2 comments

The easiest way:

  1. run patronictl edit-config
  2. remove the standby_cluster section from the config
  3. Save and exit from the editor
  4. review the config change and agree to apply it.

thats it

Oh, ok, that easy. Thanks a lot. :)

Was this page helpful?
0 / 5 - 0 ratings