-
I've been testing out pg_auto_failover and it seem really promissing. However during testing I've noticed some unexpected behaviour with the When initially setting up the second node with Also once both nodes are up an running and a Both of these seem at odds with the documentation that - as far as I can tell - states that if the This leads to a couple of questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jerrykan, When doing secondary provisioning and then later failover/switchover pg_auto_failover relies on Postgres core tooling, namely Hope this clarifies the situation. Closing the discussion, please consider asking more questions if needed though. |
Beta Was this translation helpful? Give feedback.
Hi @jerrykan,
When doing secondary provisioning and then later failover/switchover pg_auto_failover relies on Postgres core tooling, namely
pg_basebackup
andpg_rewind
. Postgres core tools typically sync the whole content of the PGDATA directory, so that includespg_hba.conf
. The usual way to deal with that situation with Postgres is to use the same HBA rules on the primary and standby nodes. After all, as you're mentioning, the standby/secondary nodes are deployed for only one reason: take over the primary role when needed. For them to be ready, best scenario is that the HBA is kept in sync with the primary.Hope this clarifies the situation. Closing the discussion, please consider askin…