6
. Monitor slot usage and adjust as your replication topology expands.-1
(unlimited) is reasonable for most environments with good monitoring. For space-constrained systems, set to a value like 100GB
or 200GB
based on your available disk space and replication requirements. Ensure this provides enough buffer for expected replication lag periods.6
. Consider future scaling needs and ensure adequate shared memory is allocated for the maximum number of senders.off
is appropriate unless you specifically need commit timestamps. Enable (on
) if using features that require commit timestamps, such as certain logical replication setups or point-in-time recovery tools. Test performance impact in your environment before enabling in production.0
(no additional retention) is sufficient when using replication slots. Set to a value like 1GB
or 5GB
as extra protection against replica lag. Balance between protection and disk space usage based on your network reliability and replica performance.60s
is reasonable for most LAN environments. Increase to 120s
or 300s
for WAN connections with higher latency. Decrease to 30s
for environments requiring rapid failure detection. Monitor replication status and adjust based on observed network conditions.Start your journey toward a healthier PostgreSQL with pghealth.
You can explore all features immediately with a free trial β no installation required.
π Start Free Trial