From 9714e881e3422a38032bdb2e18384657fa18134d Mon Sep 17 00:00:00 2001 From: Mats Kindahl Date: Fri, 28 Jan 2022 13:37:21 +0100 Subject: [PATCH] Increase default background workers Increate the number of background workers since we have flaky tests as a result of groups running out of background workers. We also increate the total number of workers to 24 for the default configuration when running tests. Fixes #4023 --- src/loader/bgw_counter.c | 2 +- test/postgresql.conf.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loader/bgw_counter.c b/src/loader/bgw_counter.c index b5ed5a85d..3a3a845f4 100644 --- a/src/loader/bgw_counter.c +++ b/src/loader/bgw_counter.c @@ -19,7 +19,7 @@ #define BGW_COUNTER_STATE_NAME "ts_bgw_counter_state" -int ts_guc_max_background_workers = 8; +int ts_guc_max_background_workers = 16; /* * We need a bit of shared state here to deal with keeping track of the total diff --git a/test/postgresql.conf.in b/test/postgresql.conf.in index 553e23d4b..860097f42 100644 --- a/test/postgresql.conf.in +++ b/test/postgresql.conf.in @@ -3,7 +3,7 @@ # 2) appveyor.yml needs to be updated with the same options shared_preload_libraries=timescaledb -max_worker_processes=16 +max_worker_processes=24 autovacuum=false random_page_cost=1.0 timescaledb.license='apache'