diff --git a/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434c..69dab0c1d244 100644 --- a/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -506,6 +506,8 @@ reconnect_attempts='${REPMGR_RECONNECT_ATTEMPTS}' reconnect_interval='${REPMGR_RECONNECT_INTERVAL}' log_level='${REPMGR_LOG_LEVEL}' priority='${REPMGR_NODE_PRIORITY}' +monitoring_history='${REPMGR_MONITORING_HISTORY}' +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}' diff --git a/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index de1cda3e209b..ff2570292bd8 100644 --- a/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/12/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -117,6 +117,8 @@ postgresql_env_vars=( REPMGR_PRIMARY_PORT REPMGR_USE_REPLICATION_SLOTS REPMGR_MASTER_RESPONSE_TIMEOUT + REPMGR_MONITORING_HISTORY + REPMGR_MONITOR_INTERVAL_SECS REPMGR_DEGRADED_MONITORING_TIMEOUT REPMGR_UPGRADE_EXTENSION REPMGR_FENCE_OLD_PRIMARY @@ -420,6 +422,8 @@ 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_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}" export REPMGR_UPGRADE_EXTENSION="${REPMGR_UPGRADE_EXTENSION:-no}" export REPMGR_FENCE_OLD_PRIMARY="${REPMGR_FENCE_OLD_PRIMARY:-no}" diff --git a/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434c..69dab0c1d244 100644 --- a/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -506,6 +506,8 @@ reconnect_attempts='${REPMGR_RECONNECT_ATTEMPTS}' reconnect_interval='${REPMGR_RECONNECT_INTERVAL}' log_level='${REPMGR_LOG_LEVEL}' priority='${REPMGR_NODE_PRIORITY}' +monitoring_history='${REPMGR_MONITORING_HISTORY}' +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}' diff --git a/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index de1cda3e209b..ff2570292bd8 100644 --- a/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/13/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -117,6 +117,8 @@ postgresql_env_vars=( REPMGR_PRIMARY_PORT REPMGR_USE_REPLICATION_SLOTS REPMGR_MASTER_RESPONSE_TIMEOUT + REPMGR_MONITORING_HISTORY + REPMGR_MONITOR_INTERVAL_SECS REPMGR_DEGRADED_MONITORING_TIMEOUT REPMGR_UPGRADE_EXTENSION REPMGR_FENCE_OLD_PRIMARY @@ -420,6 +422,8 @@ 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_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}" export REPMGR_UPGRADE_EXTENSION="${REPMGR_UPGRADE_EXTENSION:-no}" export REPMGR_FENCE_OLD_PRIMARY="${REPMGR_FENCE_OLD_PRIMARY:-no}" diff --git a/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434c..69dab0c1d244 100644 --- a/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -506,6 +506,8 @@ reconnect_attempts='${REPMGR_RECONNECT_ATTEMPTS}' reconnect_interval='${REPMGR_RECONNECT_INTERVAL}' log_level='${REPMGR_LOG_LEVEL}' priority='${REPMGR_NODE_PRIORITY}' +monitoring_history='${REPMGR_MONITORING_HISTORY}' +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}' diff --git a/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index de1cda3e209b..ff2570292bd8 100644 --- a/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/14/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -117,6 +117,8 @@ postgresql_env_vars=( REPMGR_PRIMARY_PORT REPMGR_USE_REPLICATION_SLOTS REPMGR_MASTER_RESPONSE_TIMEOUT + REPMGR_MONITORING_HISTORY + REPMGR_MONITOR_INTERVAL_SECS REPMGR_DEGRADED_MONITORING_TIMEOUT REPMGR_UPGRADE_EXTENSION REPMGR_FENCE_OLD_PRIMARY @@ -420,6 +422,8 @@ 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_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}" export REPMGR_UPGRADE_EXTENSION="${REPMGR_UPGRADE_EXTENSION:-no}" export REPMGR_FENCE_OLD_PRIMARY="${REPMGR_FENCE_OLD_PRIMARY:-no}" diff --git a/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434c..69dab0c1d244 100644 --- a/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -506,6 +506,8 @@ reconnect_attempts='${REPMGR_RECONNECT_ATTEMPTS}' reconnect_interval='${REPMGR_RECONNECT_INTERVAL}' log_level='${REPMGR_LOG_LEVEL}' priority='${REPMGR_NODE_PRIORITY}' +monitoring_history='${REPMGR_MONITORING_HISTORY}' +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}' diff --git a/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index de1cda3e209b..ff2570292bd8 100644 --- a/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/15/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -117,6 +117,8 @@ postgresql_env_vars=( REPMGR_PRIMARY_PORT REPMGR_USE_REPLICATION_SLOTS REPMGR_MASTER_RESPONSE_TIMEOUT + REPMGR_MONITORING_HISTORY + REPMGR_MONITOR_INTERVAL_SECS REPMGR_DEGRADED_MONITORING_TIMEOUT REPMGR_UPGRADE_EXTENSION REPMGR_FENCE_OLD_PRIMARY @@ -420,6 +422,8 @@ 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_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}" export REPMGR_UPGRADE_EXTENSION="${REPMGR_UPGRADE_EXTENSION:-no}" export REPMGR_FENCE_OLD_PRIMARY="${REPMGR_FENCE_OLD_PRIMARY:-no}" diff --git a/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434c..69dab0c1d244 100644 --- a/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -506,6 +506,8 @@ reconnect_attempts='${REPMGR_RECONNECT_ATTEMPTS}' reconnect_interval='${REPMGR_RECONNECT_INTERVAL}' log_level='${REPMGR_LOG_LEVEL}' priority='${REPMGR_NODE_PRIORITY}' +monitoring_history='${REPMGR_MONITORING_HISTORY}' +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}' diff --git a/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index de1cda3e209b..ff2570292bd8 100644 --- a/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/16/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -117,6 +117,8 @@ postgresql_env_vars=( REPMGR_PRIMARY_PORT REPMGR_USE_REPLICATION_SLOTS REPMGR_MASTER_RESPONSE_TIMEOUT + REPMGR_MONITORING_HISTORY + REPMGR_MONITOR_INTERVAL_SECS REPMGR_DEGRADED_MONITORING_TIMEOUT REPMGR_UPGRADE_EXTENSION REPMGR_FENCE_OLD_PRIMARY @@ -420,6 +422,8 @@ 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_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}" export REPMGR_UPGRADE_EXTENSION="${REPMGR_UPGRADE_EXTENSION:-no}" export REPMGR_FENCE_OLD_PRIMARY="${REPMGR_FENCE_OLD_PRIMARY:-no}" diff --git a/bitnami/postgresql-repmgr/README.md b/bitnami/postgresql-repmgr/README.md index 8e0c53e05d55..233f272466c6 100644 --- a/bitnami/postgresql-repmgr/README.md +++ b/bitnami/postgresql-repmgr/README.md @@ -637,6 +637,8 @@ Refer to [issues/27124](https://github.com/bitnami/containers/issues/27124) for | `REPMGR_PRIMARY_PORT` | Replication Manager cluster primary node port | `5432` | | `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_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` | | `REPMGR_FENCE_OLD_PRIMARY` | Replication Manager fence old primary | `no` |