Showing with 13 additions and 2 deletions.
  1. +4 −0 CHANGELOG.md
  2. +7 −0 README.md
  3. +1 −1 files/vacuum_full_tables.sh
  4. +1 −1 metadata.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Z Release 0.12.1

- Add `--analyze` during VACUUM FULL commands run in maintenance [#13](https://github.com/npwalker/pe_databases/pull/13)

## Minor Release 0.12.0

- Improve maintenance cron jobs [#12](https://github.com/npwalker/pe_databases/pull/12)
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Table of Contents

* [Overview](#overview)
* [What does this module provide?](#what-does-this-module-provide)
* [Usage](#usage)
* [Items you may want to configure](#items-you-may-want-to-configure)
* [Backup schedule](#backup-schedule)
* [Disable the maintenance cron job](#disable-the-maintenance-cron-job)
Expand Down Expand Up @@ -34,6 +35,12 @@ By default you get the following:
2. Maintenance cron jobs to keep your PuppetDB tables lean and fast
3. Slightly better default settings for PE PostgreSQL

## Usage

In order to use this module, you will classify the node running pe-postgresql with the `pe_databases` class. This is the MoM in a monolithic installation or the PuppetDB node in a Split/LEI install.

To classify via the PE console, you will create a new node group called 'PE Database' and pin the node running pe-postgresql to the group. It is not recommended to classify using a pre-existing node group in the PE console.

## Items you may want to configure

### Backup schedule
Expand Down
2 changes: 1 addition & 1 deletion files/vacuum_full_tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ SQL="SELECT t.relname::varchar AS table_name
for TABLE in $(su - pe-postgres -s /bin/bash -c "/opt/puppetlabs/server/bin/psql -d pe-puppetdb -c \"$SQL\" --tuples-only")
do
#echo $TABLE
su - pe-postgres -s /bin/bash -c "/opt/puppetlabs/server/bin/vacuumdb -d pe-puppetdb -t $TABLE --full"
su - pe-postgres -s /bin/bash -c "/opt/puppetlabs/server/bin/vacuumdb -d pe-puppetdb -t $TABLE --full --analyze"
sleep $SLEEP
done
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "npwalker/pe_databases",
"version": "0.12.0",
"version": "0.12.1",
"author": "npwalker",
"summary": "A Puppet Module for Backing Up / Maintaining / Tuning Your Puppet Enterprise Databases",
"license": "Apache-2.0",
Expand Down