Optional fencing script (pre_promote) (#1099)

Call a fencing script after acquiring the leader lock. If the script didn't finish successfully - don't promote but remove leader key

Close https://github.com/zalando/patroni/issues/1567
This commit is contained in:
Sergey Dudoladov
2020-09-01 07:50:39 +02:00
committed by GitHub
parent e87fc12aeb
commit 950eff27ad
8 changed files with 127 additions and 25 deletions
+3
View File
@@ -112,6 +112,9 @@ postgresql:
basebackup:
- verbose
- max-rate: 100M
# Additional fencing script executed after acquiring the leader lock but before promoting the replica
#pre_promote: /path/to/pre_promote.sh
tags:
nofailover: false
noloadbalance: false