diff --git a/pkg/pgtune/misc.go b/pkg/pgtune/misc.go index 92fc8b8..a63bb30 100644 --- a/pkg/pgtune/misc.go +++ b/pkg/pgtune/misc.go @@ -42,7 +42,7 @@ const ( const MaxConnectionsDefault uint64 = 100 // MaxBackgroundWorkersDefault is the recommended default value for timescaledb.max_background_workers. -const MaxBackgroundWorkersDefault int = 8 +const MaxBackgroundWorkersDefault int = 16 // getMaxConns gives a default amount of connections based on a memory step // function. diff --git a/pkg/tstune/tuner_test.go b/pkg/tstune/tuner_test.go index 1c1b8a8..2ce838c 100644 --- a/pkg/tstune/tuner_test.go +++ b/pkg/tstune/tuner_test.go @@ -1387,7 +1387,7 @@ var ( "effective_cache_size = 6GB", "maintenance_work_mem = 1GB", "work_mem = 20971kB", - "timescaledb.max_background_workers = 8", + "timescaledb.max_background_workers = 16", "max_worker_processes = 15", "max_parallel_workers_per_gather = 2", "max_parallel_workers = 4",