Add options to the streaming replication conf.

This commit is contained in:
Andrea Dell'Amico 2021-09-17 15:32:42 +02:00
parent 44c99e81bd
commit ac009a330a
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 0 deletions

View File

@ -105,12 +105,14 @@ psql_streaming_replication_config:
- { name: 'wal_level', value: 'replica' } - { name: 'wal_level', value: 'replica' }
- { name: 'max_wal_senders', value: '10' } - { name: 'max_wal_senders', value: '10' }
- { name: 'wal_keep_size', value: '1GB' } - { name: 'wal_keep_size', value: '1GB' }
- { name: 'max_slot_wal_keep_size', value: '15' }
- { name: 'wal_compression', value: 'on' } - { name: 'wal_compression', value: 'on' }
- { name: 'wal_log_hints', value: 'on' } - { name: 'wal_log_hints', value: 'on' }
- { name: 'hot_standby', value: 'on' } - { name: 'hot_standby', value: 'on' }
- { name: 'archive_mode', value: 'always' } - { name: 'archive_mode', value: 'always' }
- { name: 'archive_command', value: "cp %p {{ psql_wal_archiving_log_dir }}/%f" } - { name: 'archive_command', value: "cp %p {{ psql_wal_archiving_log_dir }}/%f" }
- { name: 'restore_command', value: "cp {{ psql_wal_archiving_log_dir }}/%f %p" } - { name: 'restore_command', value: "cp {{ psql_wal_archiving_log_dir }}/%f %p" }
- { name: 'archive_cleanup_command', value: "pg_archivecleanup {{ psql_wal_archiving_log_dir }} %r" }
# SSL as a special case # SSL as a special case
psql_enable_ssl: False psql_enable_ssl: False