Skip to content

How to split/move a pg_auto_failover cluster? #660

Answered by DimCitus
s4ke asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @s4ke ;

Given current pg_auto_failover releases it's possible to create a node from a pre-existing backup, either a primary or a standby node. Given that capability, your list seems okay to me. It might also be the simplest way around. Note that using 1.5.1 it might be even simpler:

  1. pg_autoctl create monitor # the new monitor
  2. pg_autoctl create postgres --replication-quorum false --candidate-priority 0 ... # to create a new standby
  3. pg_autoctl disable monitor --force
  4. pg_autoctl enable monitor postgres://autoctl_node@newmonitor/pg_auto_failover

If you have a small enough amount of data, you might want to see about using pg_dump -Fd which can then be restored in parallel. In that case th…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@s4ke
Comment options

@s4ke
Comment options

@s4ke
Comment options

@s4ke
Comment options

@s4ke
Comment options

Answer selected by s4ke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants