Skip to content

Commit

Permalink
Replication Manager flag to enable consult each other to build a quorum
Browse files Browse the repository at this point in the history
Signed-off-by: Zaytsev Ivan <[email protected]>
  • Loading branch information
Shagrat2 committed Sep 12, 2024
1 parent c287742 commit f1f784d
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ monitor_interval_secs='${REPMGR_MONITOR_INTERVAL_SECS}'
degraded_monitoring_timeout='${REPMGR_DEGRADED_MONITORING_TIMEOUT}'
data_directory='${POSTGRESQL_DATA_DIR}'
async_query_timeout='${REPMGR_MASTER_RESPONSE_TIMEOUT}'
primary_visibility_consensus=${REPMGR_PRIMARY_VISIBILITY_CONSENSUS}
pg_ctl_options='-o "--config-file=\"${POSTGRESQL_CONF_FILE}\" --external_pid_file=\"${POSTGRESQL_PID_FILE}\" --hba_file=\"${POSTGRESQL_PGHBA_FILE}\""'
pg_basebackup_options='$waldir_option'
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ postgresql_env_vars=(
REPMGR_PRIMARY_PORT
REPMGR_USE_REPLICATION_SLOTS
REPMGR_MASTER_RESPONSE_TIMEOUT
REPMGR_PRIMARY_VISIBILITY_CONSENSUS
REPMGR_MONITORING_HISTORY
REPMGR_MONITOR_INTERVAL_SECS
REPMGR_DEGRADED_MONITORING_TIMEOUT
Expand Down Expand Up @@ -422,6 +423,7 @@ export REPMGR_PRIMARY_HOST="${REPMGR_PRIMARY_HOST:-}"
export REPMGR_PRIMARY_PORT="${REPMGR_PRIMARY_PORT:-5432}"
export REPMGR_USE_REPLICATION_SLOTS="${REPMGR_USE_REPLICATION_SLOTS:-1}"
export REPMGR_MASTER_RESPONSE_TIMEOUT="${REPMGR_MASTER_RESPONSE_TIMEOUT:-20}"
export REPMGR_PRIMARY_VISIBILITY_CONSENSUS="${REPMGR_PRIMARY_VISIBILITY_CONSENSUS:-false}"
export REPMGR_MONITORING_HISTORY="${REPMGR_MONITORING_HISTORY:-no}"
export REPMGR_MONITOR_INTERVAL_SECS="${REPMGR_MONITOR_INTERVAL_SECS:-2}"
export REPMGR_DEGRADED_MONITORING_TIMEOUT="${REPMGR_DEGRADED_MONITORING_TIMEOUT:-5}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ monitor_interval_secs='${REPMGR_MONITOR_INTERVAL_SECS}'
degraded_monitoring_timeout='${REPMGR_DEGRADED_MONITORING_TIMEOUT}'
data_directory='${POSTGRESQL_DATA_DIR}'
async_query_timeout='${REPMGR_MASTER_RESPONSE_TIMEOUT}'
primary_visibility_consensus=${REPMGR_PRIMARY_VISIBILITY_CONSENSUS}
pg_ctl_options='-o "--config-file=\"${POSTGRESQL_CONF_FILE}\" --external_pid_file=\"${POSTGRESQL_PID_FILE}\" --hba_file=\"${POSTGRESQL_PGHBA_FILE}\""'
pg_basebackup_options='$waldir_option'
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ postgresql_env_vars=(
REPMGR_PRIMARY_PORT
REPMGR_USE_REPLICATION_SLOTS
REPMGR_MASTER_RESPONSE_TIMEOUT
REPMGR_PRIMARY_VISIBILITY_CONSENSUS
REPMGR_MONITORING_HISTORY
REPMGR_MONITOR_INTERVAL_SECS
REPMGR_DEGRADED_MONITORING_TIMEOUT
Expand Down Expand Up @@ -422,6 +423,7 @@ export REPMGR_PRIMARY_HOST="${REPMGR_PRIMARY_HOST:-}"
export REPMGR_PRIMARY_PORT="${REPMGR_PRIMARY_PORT:-5432}"
export REPMGR_USE_REPLICATION_SLOTS="${REPMGR_USE_REPLICATION_SLOTS:-1}"
export REPMGR_MASTER_RESPONSE_TIMEOUT="${REPMGR_MASTER_RESPONSE_TIMEOUT:-20}"
export REPMGR_PRIMARY_VISIBILITY_CONSENSUS="${REPMGR_PRIMARY_VISIBILITY_CONSENSUS:-false}"
export REPMGR_MONITORING_HISTORY="${REPMGR_MONITORING_HISTORY:-no}"
export REPMGR_MONITOR_INTERVAL_SECS="${REPMGR_MONITOR_INTERVAL_SECS:-2}"
export REPMGR_DEGRADED_MONITORING_TIMEOUT="${REPMGR_DEGRADED_MONITORING_TIMEOUT:-5}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ monitor_interval_secs='${REPMGR_MONITOR_INTERVAL_SECS}'
degraded_monitoring_timeout='${REPMGR_DEGRADED_MONITORING_TIMEOUT}'
data_directory='${POSTGRESQL_DATA_DIR}'
async_query_timeout='${REPMGR_MASTER_RESPONSE_TIMEOUT}'
primary_visibility_consensus=${REPMGR_PRIMARY_VISIBILITY_CONSENSUS}
pg_ctl_options='-o "--config-file=\"${POSTGRESQL_CONF_FILE}\" --external_pid_file=\"${POSTGRESQL_PID_FILE}\" --hba_file=\"${POSTGRESQL_PGHBA_FILE}\""'
pg_basebackup_options='$waldir_option'
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ postgresql_env_vars=(
REPMGR_PRIMARY_PORT
REPMGR_USE_REPLICATION_SLOTS
REPMGR_MASTER_RESPONSE_TIMEOUT
REPMGR_PRIMARY_VISIBILITY_CONSENSUS
REPMGR_MONITORING_HISTORY
REPMGR_MONITOR_INTERVAL_SECS
REPMGR_DEGRADED_MONITORING_TIMEOUT
Expand Down Expand Up @@ -422,6 +423,7 @@ export REPMGR_PRIMARY_HOST="${REPMGR_PRIMARY_HOST:-}"
export REPMGR_PRIMARY_PORT="${REPMGR_PRIMARY_PORT:-5432}"
export REPMGR_USE_REPLICATION_SLOTS="${REPMGR_USE_REPLICATION_SLOTS:-1}"
export REPMGR_MASTER_RESPONSE_TIMEOUT="${REPMGR_MASTER_RESPONSE_TIMEOUT:-20}"
export REPMGR_PRIMARY_VISIBILITY_CONSENSUS="${REPMGR_PRIMARY_VISIBILITY_CONSENSUS:-false}"
export REPMGR_MONITORING_HISTORY="${REPMGR_MONITORING_HISTORY:-no}"
export REPMGR_MONITOR_INTERVAL_SECS="${REPMGR_MONITOR_INTERVAL_SECS:-2}"
export REPMGR_DEGRADED_MONITORING_TIMEOUT="${REPMGR_DEGRADED_MONITORING_TIMEOUT:-5}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ monitor_interval_secs='${REPMGR_MONITOR_INTERVAL_SECS}'
degraded_monitoring_timeout='${REPMGR_DEGRADED_MONITORING_TIMEOUT}'
data_directory='${POSTGRESQL_DATA_DIR}'
async_query_timeout='${REPMGR_MASTER_RESPONSE_TIMEOUT}'
primary_visibility_consensus=${REPMGR_PRIMARY_VISIBILITY_CONSENSUS}
pg_ctl_options='-o "--config-file=\"${POSTGRESQL_CONF_FILE}\" --external_pid_file=\"${POSTGRESQL_PID_FILE}\" --hba_file=\"${POSTGRESQL_PGHBA_FILE}\""'
pg_basebackup_options='$waldir_option'
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ postgresql_env_vars=(
REPMGR_PRIMARY_PORT
REPMGR_USE_REPLICATION_SLOTS
REPMGR_MASTER_RESPONSE_TIMEOUT
REPMGR_PRIMARY_VISIBILITY_CONSENSUS
REPMGR_MONITORING_HISTORY
REPMGR_MONITOR_INTERVAL_SECS
REPMGR_DEGRADED_MONITORING_TIMEOUT
Expand Down Expand Up @@ -422,6 +423,7 @@ export REPMGR_PRIMARY_HOST="${REPMGR_PRIMARY_HOST:-}"
export REPMGR_PRIMARY_PORT="${REPMGR_PRIMARY_PORT:-5432}"
export REPMGR_USE_REPLICATION_SLOTS="${REPMGR_USE_REPLICATION_SLOTS:-1}"
export REPMGR_MASTER_RESPONSE_TIMEOUT="${REPMGR_MASTER_RESPONSE_TIMEOUT:-20}"
export REPMGR_PRIMARY_VISIBILITY_CONSENSUS="${REPMGR_PRIMARY_VISIBILITY_CONSENSUS:-false}"
export REPMGR_MONITORING_HISTORY="${REPMGR_MONITORING_HISTORY:-no}"
export REPMGR_MONITOR_INTERVAL_SECS="${REPMGR_MONITOR_INTERVAL_SECS:-2}"
export REPMGR_DEGRADED_MONITORING_TIMEOUT="${REPMGR_DEGRADED_MONITORING_TIMEOUT:-5}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ monitor_interval_secs='${REPMGR_MONITOR_INTERVAL_SECS}'
degraded_monitoring_timeout='${REPMGR_DEGRADED_MONITORING_TIMEOUT}'
data_directory='${POSTGRESQL_DATA_DIR}'
async_query_timeout='${REPMGR_MASTER_RESPONSE_TIMEOUT}'
primary_visibility_consensus=${REPMGR_PRIMARY_VISIBILITY_CONSENSUS}
pg_ctl_options='-o "--config-file=\"${POSTGRESQL_CONF_FILE}\" --external_pid_file=\"${POSTGRESQL_PID_FILE}\" --hba_file=\"${POSTGRESQL_PGHBA_FILE}\""'
pg_basebackup_options='$waldir_option'
EOF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ postgresql_env_vars=(
REPMGR_PRIMARY_PORT
REPMGR_USE_REPLICATION_SLOTS
REPMGR_MASTER_RESPONSE_TIMEOUT
REPMGR_PRIMARY_VISIBILITY_CONSENSUS
REPMGR_MONITORING_HISTORY
REPMGR_MONITOR_INTERVAL_SECS
REPMGR_DEGRADED_MONITORING_TIMEOUT
Expand Down Expand Up @@ -422,6 +423,7 @@ export REPMGR_PRIMARY_HOST="${REPMGR_PRIMARY_HOST:-}"
export REPMGR_PRIMARY_PORT="${REPMGR_PRIMARY_PORT:-5432}"
export REPMGR_USE_REPLICATION_SLOTS="${REPMGR_USE_REPLICATION_SLOTS:-1}"
export REPMGR_MASTER_RESPONSE_TIMEOUT="${REPMGR_MASTER_RESPONSE_TIMEOUT:-20}"
export REPMGR_PRIMARY_VISIBILITY_CONSENSUS="${REPMGR_PRIMARY_VISIBILITY_CONSENSUS:-false}"
export REPMGR_MONITORING_HISTORY="${REPMGR_MONITORING_HISTORY:-no}"
export REPMGR_MONITOR_INTERVAL_SECS="${REPMGR_MONITOR_INTERVAL_SECS:-2}"
export REPMGR_DEGRADED_MONITORING_TIMEOUT="${REPMGR_DEGRADED_MONITORING_TIMEOUT:-5}"
Expand Down
1 change: 1 addition & 0 deletions bitnami/postgresql-repmgr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ Refer to [issues/27124](https://github.com/bitnami/containers/issues/27124) for
| `REPMGR_USE_REPLICATION_SLOTS` | Replication Manager replication slots | `1` |
| `REPMGR_MASTER_RESPONSE_TIMEOUT` | Time (in seconds) to wait for the master to reply | `20` |
| `REPMGR_MONITORING_HISTORY` | Replication Manager flag to enable monitoring history | `no` |
| `REPMGR_PRIMARY_VISIBILITY_CONSENSUS` | Replication Manager flag to enable consult each other to build a quorum | `no` |
| `REPMGR_MONITOR_INTERVAL_SECS` | Replication Manager interval at which to write monitoring data | `2` |
| `REPMGR_DEGRADED_MONITORING_TIMEOUT` | Replication Manager degraded monitoring timeout | `5` |
| `REPMGR_UPGRADE_EXTENSION` | Replication Manager upgrade extension | `no` |
Expand Down

0 comments on commit f1f784d

Please sign in to comment.