Skip to content

Commit

Permalink
Instructions for per branch per test pgsql gucs
Browse files Browse the repository at this point in the history
  • Loading branch information
markwkm committed Jul 1, 2024
1 parent d2321ce commit 53d804b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,26 @@ Create `settings.py`

Copy `settings.py.sample` to `settings.py` and update the *WORKERNAME* and
*SECRET* accordingly.

Worker Specific PostgreSQL Configuration
----------------------------------------

Different hardware probably should have PostgreSQL configured differently, and
each test probably needs further configuration changes. So each worker is able
to have its own set of configuration files that will added to PostgreSQL. To
accommodate all the different combinations, first create a subdirectory `guc`
and create files with name in the format `$TEST.$BRANCH.conf`.

For example, to create files for custom PostgreSQL configuration settings for
DBT-2 that will be used in the *master* and v16 branches, create the following
two files::

mkdir guc
touch dbt2.master.conf
touch dbt2.REL_16_BRANCH.conf

The format of the files is the same as the `postgresql.conf` file. For
example, to change a couple parameters::

checkpoint_timeout = 30min
max_wal_size = 1000GB

0 comments on commit 53d804b

Please sign in to comment.