postgresql / db-koji01: allow adjusting max_workers and friends

db-koji01 has been running with this since before the mass rebuild, and
it seems to make it have a higher load, but process faster and without
stalling when doing backups or when long/bad koji-gc queries for old
versions of texlive hit it.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-08-05 16:28:08 -07:00
parent 77a3276003
commit 72424c52fb
2 changed files with 17 additions and 1 deletions

View file

@ -207,6 +207,18 @@ dynamic_shared_memory_type = posix # the default is the first option
#parallel_leader_participation = on
#max_parallel_workers = 8 # maximum number of max_worker_processes that
# can be used in parallel operations
{% if max_worker_processes is defined %}
max_worker_processes = {{ max_worker_processes }}
{% endif %}
{% if max_parallel_workers_per_gather is defined %}
max_parallel_workers_per_gather = {{ max_parallel_workers_per_gather }}
{% endif %}
{% if max_parallel_maintenance_workers is defined %}
max_parallel_maintenance_workers = {{ max_parallel_maintenance_workers }}
{% endif %}
{% if max_parallel_workers is defined %}
max_parallel_workers = {{ max_parallel_workers }}
{% endif %}
#old_snapshot_threshold = -1 # 1min-60d; -1 disables; 0 is immediate
# (change requires restart)
#backend_flush_after = 0 # measured in pages, 0 disables