postgresql-container icon indicating copy to clipboard operation
postgresql-container copied to clipboard

Change default value of checkpoint_segments to at least 10 for better performance?

Open ghost opened this issue 5 years ago • 1 comments

The Postgre official document recommends to set checkpoint_segments to at least 10, which improves the performance. "Unless you're running on a very small configuration, you'll almost certainly be better setting this to at least 10, which also allows usefully increasing the completion target. ".

I wonder if the default need to be changed for performance concern. Thanks.

ghost avatar Mar 06 '19 23:03 ghost

I wonder if the default need to be changed for performance concern.

Maybe, does your databases suffer from too frequent checkpoints?

OpenShift (or its users) is known to be hard on PostgreSQL server (restarts, kills, ...), so crash-recovery is pretty normal thing ... and larger checkpoint_segments will probably prolong the crash-recovery during container start-up.

praiskup avatar Mar 07 '19 05:03 praiskup