Update Patroni config file (#551)

The original config file was taken from
[here](https://github.com/jobinau/pgscripts/blob/main/patroni/patroni.yml)
and it is currently replaced with a more "up to date" version
[here](bbb1df011f/templates/patroni.yml.j2).
pull/238/head
Dragos Andriciuc 2 weeks ago committed by GitHub
parent afdbffb422
commit 89f5000235
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 62
      contrib/pg_tde/documentation/docs/index/tde-limitations.md

@ -34,17 +34,13 @@ The following is a Percona-tested example configuration.
```yaml ```yaml
# Example Patroni configuration file maintained by Percona # Example Patroni configuration file maintained by Percona
# Source: https://github.com/jobinau/pgscripts/blob/main/patroni/patroni.yml # Source: https://github.com/jobinau/pgscripts/blob/main/patroni/patroni.yml
scope: postgres scope: tde
namespace: /db/ name: pg1
name: postgresql0
restapi: restapi:
listen: 0.0.0.0:8008 listen: 0.0.0.0:8008
connect_address: 127.0.0.1:8008 connect_address: pg1:8008
etcd3:
etcd: host: etcd1:2379
host: 127.0.0.1:2379
bootstrap: bootstrap:
dcs: dcs:
ttl: 30 ttl: 30
@ -55,27 +51,29 @@ The following is a Percona-tested example configuration.
use_pg_rewind: true use_pg_rewind: true
use_slots: true use_slots: true
parameters: parameters:
max_connections: 100 archive_command: "/lib/postgresql/17/bin/pg_tde_archive_decrypt %f %p \"pgbackrest --stanza=tde archive-push %%p\""
shared_buffers: 1GB archive_timeout: 600s
wal_level: replica archive_mode: "on"
hot_standby: "on" logging_collector: "on"
wal_keep_size: 256MB restore_command: "/lib/postgresql/17/bin/pg_tde_restore_encrypt %f %p \"pgbackrest --stanza=tde archive-get %%f \\\"%%p\\\"\""
max_wal_senders: 10 pg_hba:
max_replication_slots: 10 - local all all peer
- host all all 0.0.0.0/0 scram-sha-256
- host all all ::/0 scram-sha-256
- local replication all peer
- host replication all 0.0.0.0/0 scram-sha-256
- host replication all ::/0 scram-sha-256
initdb: initdb:
- encoding: UTF8 - encoding: UTF8
- data-checksums - data-checksums
- set: shared_preload_libraries=pg_tde
pg_hba: post_init: /usr/local/bin/setup_cluster.sh
- host replication replicator 127.0.0.1/32 md5
- host all all 0.0.0.0/0 md5
postgresql: postgresql:
listen: 0.0.0.0:5432 listen: 0.0.0.0:5432
connect_address: 127.0.0.1:5432 connect_address: pg1:5432
data_dir: /var/lib/postgresql/data data_dir: /var/lib/postgresql/patroni-17
bin_dir: /usr/lib/postgresql/14/bin bin_dir: /lib/postgresql/17/bin
pgpass: /var/lib/postgresql/patronipass
authentication: authentication:
replication: replication:
username: replicator username: replicator
@ -83,6 +81,16 @@ The following is a Percona-tested example configuration.
superuser: superuser:
username: postgres username: postgres
password: secretpassword password: secretpassword
parameters:
unix_socket_directories: /tmp
# Use unix_socket_directories: /var/run/postgresql for Debian/Ubuntu distributions
watchdog:
mode: off
tags:
nofailover: false
noloadbalance: false
clonefrom: false
nosync: false
``` ```
!!! warning !!! warning

Loading…
Cancel
Save