Skip to content

Commit

Permalink
Update default value of timescaledb.max_background_workers = 16
Browse files Browse the repository at this point in the history
  • Loading branch information
konskov committed Dec 7, 2022
1 parent 0c4e8ab commit 1fc545e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/pgtune/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/tstune/tuner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1fc545e

Please sign in to comment.