db-koji02: create vm and config files for hot standby kojidb.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
f01ae28b8c
commit
9747e55c72
5 changed files with 72 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
3
roles/postgresql_server/templates/recovery.conf
Normal file
3
roles/postgresql_server/templates/recovery.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
standby_mode = 'on'
|
||||
primary_conninfo = 'host=10.5.125.48 port=5432 user=replication password={{ koji_db_replication_password }}
|
||||
trigger_file= '/var/lib/pgsql/trigger_file'
|
Loading…
Add table
Add a link
Reference in a new issue