Assistance Required: Handling DR Drill Failover and Duplicate Records in ClickHouse #1092
Replies: 1 comment
-
When connecting to a Postgres primary (i.e. not a read replica) and the version of Postgres is 17 or later, Debezium will create a replication slot enabled for failover. This means Debezium can continue to read changes from a replica promoted to primary in case of a failure, without missing any events. This requires the state of the slot to be synchronized from primary to replica server; refer to the Postgres documentation for the details. For duplicates please make sure the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, we are using the Altinity Sink Connector Lite to replicate data from PostgreSQL to ClickHouse.
During Disaster Recovery (DR) drills, the data center may switch from Primary to Secondary, making the Secondary PostgreSQL instance the active one. In such cases, all incoming data is directed to the Secondary database, which was previously in standby mode.
We are looking for best practices or recommended approaches to handle this switchover scenario seamlessly with minimal replication impact. Specifically:
How should we handle replication during a DR drill or failover to ensure data consistency and continuity?
We are noticing a high number of duplicate records in the target ClickHouse database—is there a recommended way to de-duplicate or prevent this issue when using the Altinity sink connector?
Appreciate your guidance or suggestions to address these challenges.
Beta Was this translation helpful? Give feedback.
All reactions