Commit Graph

4 Commits

Author SHA1 Message Date
Nick Walker
acf1cf7ffd Add data type validation to pe_postgresql_management profile
Prior to this commit 3 of the 4 parameters were not validated.

After this commit, the parameters are correctly validated.

Due to MODULES-2960 $autovacuum_scale_factor is validated as a float
but then is converted to a string to pass it to the value attribute
of postgresql_conf.
2016-03-11 16:59:05 -08:00
Nick Walker
edba37efb1 Add pe_databases::maintenance to Puppetfile and profile
Default to inlcuding a cron job for running vacuumdb --analyze and
reindxdx for all databases.
2016-03-11 16:59:05 -08:00
Nick Walker
d5854041f8 Notify console-services when restarting postgresql
Due to an issue where console-services fails to complete about
2 requests after a restart of postgresql, let's go ahead and
restart the console-services service if we restart the postgresql
service.

If the console-services is not on the same node as postgresql then
set all_in_one_pe_install to false and console-services will not
be restarted.
2016-03-11 16:59:05 -08:00
Nick Walker
a9f4fe0639 Add autovacuum settings to pe-postgresql
In the past I've seen the console and puppetdb databases grow
much larger than expected and I have a hypothesis that this is
because the default 20% setting for autovacuum is too high for our
workload.  So, there's a potential that changing this to 1%
might be too low and might reduce performance but it should
reduce disk usage and it can always be tuned upward if the
performance hit is too large, however, it is much more difficult
to reduce the size of a database after it has grown too large.

Basically, I'm erroring on the side of using less disk space and
hopefully less outages due to running out of disk space and we
can open a conversation on performance later if one needs to be had.
2016-03-11 16:59:05 -08:00