Ask Your Question
0

puppetdb service fails every few hours in puppet enterprise

asked 2018-03-26 16:18:46 -0600

RS gravatar image

updated 2018-03-29 09:08:08 -0600

On puppet enterprise master server - the jvm memory options arguments are reverted to using -Xmx256m -Xms256m that causes the pe-puppetdb service to fail. I change the /etc/sysconfig/pe-puppetdb to have the JAVA_ARGS="-Xmx1024m -Xms1024m.."; but these settings are automatically reverted to using -Xmx256m -Xms256m that causes the pe-puppetdb service to fail. This causes the puppet agent nodes to not be able communicate with puppet server and retrieve their catalog from puppet master via the puppetdb.

Below is the error:

Warning: Error 500 on SERVER: Server Error: Failed to find facts from PuppetDB at c3pupmast01.defensetravel.osd.mil:8140: Failed to execute '/pdb/query/v4/nodes/progress.c3web02-devlm.defensetravel.osd.mil/facts' on at least 1 of the following 'server_urls': https://c3pupmast01.defensetravel.osd.mil:8081
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=d2933472bc9c82dca6d898ddabb279129620669c&version=5&certname=progress.c3web02-devlm.defensetravel.osd.mil&command=replace_facts&producer-timestamp=1522097431' on at least 1 of the following 'server_urls': ..
edit retag flag offensive close merge delete

Comments

Any response or suggestions on this?

RS gravatar imageRS ( 2018-03-29 09:08:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-03-30 12:52:40 -0600

natemccurdy gravatar image

The JVM memory settings are managed by Puppet Enterprise, so if you change them manually, Puppet will overwrite those changes on the next run.

To permanently change the JVM heap sizes, you need to adjust settings in Puppet Enterprise: https://puppet.com/docs/pe/2017.3/con...

Specifically, you need to adjust parameter values in the puppet_enterprise::profile::puppetdb class. You can do that using the PE Console as shown in the link above, or you can change that with Hiera data as shown below:

Hiera data in common.yaml

puppet_enterprise::profile::puppetdb::java_args:
  Xmx: 2048m
  Xms: 2048m
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-03-26 16:18:46 -0600

Seen: 90 times

Last updated: Mar 30