Pg_rewind failure fix
This commit fixes a small issue with Patroni where sometimes pg_rewind would fail due to limitations in Postgres 9.5. To combat pg_rewind failures, we can enable remove_data_directory_on_rewind_failure which will cleanup the data directory on the pod and recreates it as a replica so that the pod can restart from fresh, rather than churning in an error state. This commit also sets remove_data_directory_on_diverged_timelines to give Patroni a greater ability to combat timeline divergence errors. Change-Id: Ic9f75dbfa0dd990e2b215ed204e55cd67a5d1159
This commit is contained in:
parent
f0306ce33d
commit
c5a85ee117
@ -291,6 +291,8 @@ conf:
|
||||
on_role_change: /tmp/set_password.sh
|
||||
on_start: /tmp/set_password.sh
|
||||
use_pg_rewind: true
|
||||
remove_data_directory_on_rewind_failure: true
|
||||
remove_data_directory_on_diverged_timelines: true
|
||||
parameters:
|
||||
archive_mode: 'off'
|
||||
datestyle: 'iso, mdy'
|
||||
|
Loading…
x
Reference in New Issue
Block a user