max_slot_wal_keep_size: Amazon Aurora PostgreSQL parameters. Best of Vietnam 13 Day North to South Tour. PostgreSQL 13: Don't let slots kill your primary.
The
max_slot_wal_keep_size parameter controls the quantity of WAL data that the RDS for PostgreSQL DB instance retains in the pg_wal directory to serve
slots.
Summary We are using max_slot_wal_keep_size from Postgresql 13 to prevent master from being killed by a lagging replication.
If max_slot_wal_keep_size is zero, which is the default value, then there’s no limit. I don’t recommend this, because it leads to failures when slots fill the disk.