Skip to content
Snippets Groups Projects
Commit 1b4e55c3 authored by Robert Marshall's avatar Robert Marshall
Browse files

Add options for Patroni pg_rewind assumptions

- Adds additional behavioral control options for when Patroni attempts
  to bring the former primary database node back into the cluster
- Adds `remove_data_directory_on_rewind_failure`
- Adds `remove_data_directory_on_diverged_timelines`

Related https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5746

Related https://gitlab.com/gitlab-org/gitlab/-/issues/290999



Signed-off-by: default avatarRobert Marshall <rmarshall@gitlab.com>
parent de0dfd19
No related branches found
No related tags found
1 merge request!24Bumping heptapod-stable for 0.19
---
title: Add options for Patroni pg_rewind assumptions
merge_request: 4811
author:
type: added
......@@ -2538,6 +2538,8 @@
# patroni['max_timelines_history'] = 0
# patroni['master_start_timeout'] = 300
# patroni['use_pg_rewind'] = false
# patroni['remove_data_directory_on_rewind_failure'] = false
# patroni['remove_data_directory_on_diverged_timelines'] = false
# patroni['use_slots'] = true
# patroni['replication_password'] = nil
# patroni['replication_slots'] = {}
......
......@@ -14,6 +14,8 @@
default['patroni']['max_timelines_history'] = 0
default['patroni']['master_start_timeout'] = 300
default['patroni']['use_pg_rewind'] = false
default['patroni']['remove_data_directory_on_rewind_failure'] = false
default['patroni']['remove_data_directory_on_diverged_timelines'] = false
default['patroni']['use_slots'] = true
default['patroni']['replication_password'] = nil
default['patroni']['replication_slots'] = {}
......
......@@ -2,7 +2,7 @@
include ShellOutHelper
DCS_ATTRIBUTES ||= %w(loop_wait ttl retry_timeout maximum_lag_on_failover max_timelines_history master_start_timeout).freeze
DCS_POSTGRESQL_ATTRIBUTES ||= %w(use_pg_rewind use_slots).freeze
DCS_POSTGRESQL_ATTRIBUTES ||= %w(use_pg_rewind use_slots remove_data_directory_on_rewind_failure remove_data_directory_on_diverged_timelines).freeze
attr_reader :node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment