PostgreSQL max connections

The max_connections setting determines the maximum number of concurrent connections allowed to the PE-PostgreSQL server. It should be configured to accommodate all infrastructure nodes running PuppetDB.

Console node group

PE Database

Parameter

puppet_enterprise::profile::database::max_connections

Default value

400

Accepted values

An integer representing the number of concurrent connections allowed. The minimum is 200.

How to calculate

Set the max_connections parameter to a number greater than the sum of read and write connections across all PuppetDB instances in your PE installation, including compilers and the primary server. The connection count from each instance should equal (command processing threads * 2) + number of JRuby instances. Rule out any underlying performance issues prior to adjusting max_connections.