4
is often too low for production systems with multiple subscriptions. Set to at least the number of subscriptions plus 2-3 for overhead. For systems with heavy logical replication workloads, values between 8
and 16
are common. Monitor worker usage and adjust based on the number of active subscriptions and replication volume.2
is a good starting point. Increase to 4-8
for subscriptions with very high transaction volumes or large tables. Consider the number of CPU cores available and the characteristics of your workload. For mostly sequential workloads, lower values may be sufficient. Monitor CPU usage and replication latency when increasing this value.2
is conservative. Increase to 4-8
for faster initial synchronization, especially when dealing with many tables. Consider reducing during peak production hours to minimize performance impact. For very large databases, monitor system resources carefully and adjust based on available memory and I/O capacity.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