Puppet DB prune / vacuum

196 views
Skip to first unread message

Anfield

unread,
Feb 16, 2017, 4:41:11 PM2/16/17
to Puppet Users
For cleaning up report data is the parameter prune_upto still valid? - related to version 2016.2

Or has the vacuum parameter replaced it? Do they both essentially do the same thing?


Thanks

Wyatt Alt

unread,
Feb 17, 2017, 12:37:44 PM2/17/17
to Puppet Users
Hey Anfield,

prune_upto was retired before 2016.2, along with the console database itself (the data is in PuppetDB now). The way to control report deletion is via the node_ttl, node_purge_ttl, and report_ttl PuppetDB configuration settings, which are documented here:
https://docs.puppet.com/puppetdb/latest/configure.html#node-ttl

The vacuum operations on the page you linked may be necessary if you start to run into performance issues resulting from database bloat, but they'll only clear dead tuples in the database; they won't delete data. My guess is you'll be fine with just the config settings, but you can read more about vacuum here if needed:

https://www.postgresql.org/docs/9.4/static/sql-vacuum.html

Wyatt

Anfield

unread,
Feb 17, 2017, 2:25:31 PM2/17/17
to Puppet Users
Thanks for the detailed response!

Reply all
Reply to author
Forward
0 new messages