Skip to content

Commit

Permalink
Set logical replication parameters
Browse files Browse the repository at this point in the history
Based on the guidance in https://www.postgresql.org/docs/10/logical-replication-config.html
max_logical_replication_workers needs to be set to roughly the number
of subscriptions we would expect and since we were previously setting
max_worker_process to 10 I went with 10 for this value.

This means that we would need to reserve some background workers
for other tasks so I bumped that to 15
  • Loading branch information
carbonin committed May 13, 2019
1 parent 09bd508 commit a716ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion COPY/etc/manageiq/postgresql.conf.d/01_miq_overrides.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ tcp_keepalives_interval = 75
#------------------------------------------------------------------------------

shared_preload_libraries = 'repmgr'
max_worker_processes = 10
max_worker_processes = 15

#------------------------------------------------------------------------------
# WRITE AHEAD LOG
Expand All @@ -45,6 +45,7 @@ checkpoint_completion_target = 0.9
#------------------------------------------------------------------------------

wal_sender_timeout = 0
max_logical_replication_workers = 10

#------------------------------------------------------------------------------
# QUERY TUNING
Expand Down

0 comments on commit a716ba7

Please sign in to comment.