Skip to content

Commit

Permalink
Update default timescaledb.max_background_workers
Browse files Browse the repository at this point in the history
Set it to 16 istead of 8 since that is also the default value in the
timescaledb repository.

Fixes timescale/timescaledb/#5055
  • Loading branch information
konskov committed Dec 8, 2022
1 parent 0c4e8ab commit db830a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions pkg/tstune/tuner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1387,8 +1387,8 @@ var (
"effective_cache_size = 6GB",
"maintenance_work_mem = 1GB",
"work_mem = 20971kB",
"timescaledb.max_background_workers = 8",
"max_worker_processes = 15",
"timescaledb.max_background_workers = 16",
"max_worker_processes = 23",
"max_parallel_workers_per_gather = 2",
"max_parallel_workers = 4",
"wal_buffers = 16MB",
Expand Down

0 comments on commit db830a3

Please sign in to comment.