Closed Medzon888 closed 1 month ago
@Medzon888 this is not a bug. Patroni maintains those slots. Slots are inactive but Patroni makes sure to advance their restart_lsn so that WAL is not accumulated.
Yes, it is not a bug, but feature. If it worries you, you can disable this behavior by setting member_slots_ttl
to 0.
Thanks for the quick response! Didn't found that feature in documentation =(
What happened?
Hello
We have a typical patroni installation without static slots. When we install cluster we got an issue where physical slots creates on slave side. Of course they is in false state. I didnt saw in postgres log file entries about creating this slots but they exists.
patroni list:
select * from pg_replication_slots on slave side (p-server-patroni-05-db-03)
How can we reproduce it (as minimally and precisely as possible)?
Create patroni cluster with same or default configuration
What did you expect to happen?
Need a fix to prevent creating physical slots on slave side
Patroni/PostgreSQL/DCS version
Patroni configuration file
patronictl show-config
Patroni log files
PostgreSQL log files