Managing the heap size

The maximum heap size of our PuppetDB will depend on the total number of nodes checking into the system, the frequency of the Puppet runs, and the amount of resources managed by Puppet. The easiest way to determine heap size needs is to estimate or use defaults, and monitor the performance dashboard.  If your database triggers an OutOfMemory exception, just provide a larger memory allocation and restart the service. If the JVM heap metric often gets close to maximum, you'll need to increase the max heap size using Java args, managed by the PostgreSQL init script. PuppetDB will begin handling requests from the same point in the queue as when the service died. In an open source installation, this file will be named

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.