db-koji02: create vm and config files for hot standby kojidb.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-10-17 19:01:50 +00:00 committed by Pierre-Yves Chibon
parent f01ae28b8c
commit 9747e55c72
5 changed files with 72 additions and 0 deletions

View file

@ -505,3 +505,11 @@ default_text_search_config = 'pg_catalog.english'
#
# Number of concurrent i/o operations at the same time. The default is 1.
effective_io_concurrency = 1
{% if ansible_hostname.startswith("db-koji01") %}
wal_level = 'hot_standby'
max_wal_senders = 10
wal_keep_segments = 100
{% elif ansible_hostname.startswith("db-koji02") %}
hot_standby = on
{% endif %}