v1.2.0
版本发布时间: 2020-01-29 19:29:46
vitabaks/postgresql_cluster最新发布版本:2.0.0(2024-08-19 02:48:10)
This new release provides more scalability and several other enhancements.
New features
-
Deploy of cluster components on different servers (e7c0f9179c58b6c05939a96046f7ec12aef1e8a9). By default, all cluster components will be deployed to PostgreSQL servers. But, you may need to distribute the cluster components (ex. etcd cluster nodes) to different servers. Now, you can deploy the etcd cluster and the haproxy balancers to other dedicated servers. See sample inventory file.
-
New playbook: add_pgnode.yml (9607bfba4c1d0e12d039b8bbc22297e369eff364). After you successfully deployed your PostgreSQL HA cluster, you may need to scale it further. Use the
add_pgnode.yml
playbook for this. See more Scaling: add new postgresql node to existing cluster -
New playbook: add_balancer.yml (5daf05be1d7c13e0ff6f4448c77e21b074ee8a21). See more Scaling: add new haproxy balancer node
-
Added compatibility with RedHat/OracleLinux/CentOS version 8. (366e190fd2965764310e97fb80f86b32ee784b30 , d0754c44b19d5467075f2555df993d8bbd63bcc6 , b91407450734b7c90f5361d530adefe410d77cb8)
-
New variables: patroni: (8c61cf0ed046452be015245f1380f824afcf3700 , 478ca251787c83752280609a56728747eb95d0d4 , 91b2257cada182471414dd0348ae25c272027b14 , 95ae1faa9a8dadc114045e26196cf689366a1891)
synchronous_mode_strict
patroni_ttl, patroni_loop_wait
patroni_retry_timeout
patroni_maximum_lag_on_failover
patroni_master_start_timeout
patroni_postgresql_use_pg_rewind
patroni_remove_data_directory_on_rewind_failure
patroni_remove_data_directory_on_diverged_timelines
patroni_create_replica_methods
pgbouncer: (bcc9d7ac72901e3cb1ad31156d310befa5e9bf58)pgbouncer_default_pool_size
pgbouncer_default_pool_mode
sudo: (0caf69c8c51c901944c0a668fb2073331bfd4b5f)sudo_users
Enhancements and fixes
-
PostgreSQL: checked compatibility with PostgreSQL 12. for Patroni version 1.6.0 and higher
-
etcd: the etcd package has been updated to v3.3.18 version. (463a1f5d8fde0d92137a923ab93308e25fb7e4b4).
-
etcd: generate
etcd_cluster_name
(ETCD_INITIAL_CLUSTER_TOKEN) based on the "patroni_cluster_name" variable (d57b55fb5b49c914d1b4b4de4f7138bb782354e2). -
etcd: set high priority for etcd process (nice -20, ionice -c 1 -n 0) (2f41e80daf0d26fd67e622bd6487ea018c9dc9dd).
-
etcd: wait until the etcd cluster is healthy (d67313b047a0d8133aa4f887605831d8e8dbb32b).
-
Improved postgresql instance status check (for postgresql_exists='true') (744b3a72fc8e08b4d2b75a0c3a75c3558e640505).
-
Waiting for CHECKPOINT to complete before stopping postgresql (for postgresql_exists='true') (8709ddd197b576614f2c009ad469cc653a8e6ae8).
-
pgbouncer: automatically create database pools (via “*”) if they are not specified (cabdbe0bf54e19ffa5760c64d7d3623d2cb6d286) #18.
-
Set umask before installing pip packages (a7bd9994a1053ced738d7acee9094715d6220c34).
-
Hide the password from the output of the "PostgreSQL users" task (c0d3316f82028102e27a55cdbfb1df82eb71e02e).
-
SSH Key-Based Authentication is disabled by default (2180962b94fdffdacb911e4c2e40f7745a2500ad). variable:
enable_ssh_key_based_authentication
-
Added
PATRONICTL_CONFIG_FILE
environment variable into /etc/environment (67a7551758b20c4e8e2b5ea65740c4683259b082). -
System variables moved to system.yml variable file (/vars/system.yml).
-
Added the ability to set kernel and firewall parameters individually for each host group (etcd_cluster, balancers, postgres_cluster) in the system.yml variable file.
-
Added new recommendations: "Placement of cluster members in different data centers" "How to prevent data loss in case of autofailover (synchronous_modes and pg_rewind)"