Commit Graph

2 Commits

Author SHA1 Message Date
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