Patroni cluster connection with slot failover - is it supported by Debezium?

19 views
Skip to first unread message

Maksim Samsonov

unread,
Nov 6, 2025, 9:04:17 AM (7 days ago) Nov 6
to debezium
Hello!

Could you please advise if Debezium can support failover on patroni cluster with  sync_slots  enabled?
According to docs there is slot.failover parameter, but I don't uderstand how it can work with only one host in database.hostname parameter.
Is haproxy required for Debezium to connect or there is a possibility to specify multiple hosts with target_sess_attr?

Thanks in advance! 

jiri.p...@gmail.com

unread,
Nov 7, 2025, 3:02:27 AM (6 days ago) Nov 7
to debezium
Hi,


This ensures that the LSN numbering is consistent between master and replica. And yes if you want automated failover then you'd need to rely on haproxy or you'd ned to manually update/switch hostname.

Unfortunately I cannot say anything about Patroni. But if Patroni can guarantee LSN numbering to be consistent then it is safe to use it too.

WRT slot.failover - this is used in createion of the slot only so if the slot already exists then the setting is not used at all.

Jiri

Maksim Samsonov

unread,
Nov 7, 2025, 5:22:10 AM (6 days ago) Nov 7
to debezium

Hi,

Thank you for the clarification!
пятница, 7 ноября 2025 г. в 11:02:27 UTC+3, jiri.p...@gmail.com:
Reply all
Reply to author
Forward
0 new messages