mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 06:48:11 +08:00
4.2.3-debian-10-r40 release
This commit is contained in:
@@ -18,7 +18,7 @@ RUN chmod g+rwX /opt/bitnami
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/pgpool/postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="pgpool" \
|
||||
BITNAMI_IMAGE_VERSION="4.2.3-debian-10-r39" \
|
||||
BITNAMI_IMAGE_VERSION="4.2.3-debian-10-r40" \
|
||||
PATH="/opt/bitnami/postgresql/bin:/opt/bitnami/common/bin:/opt/bitnami/pgpool/bin:$PATH" \
|
||||
POSTGRESQL_CLIENT_CREATE_DATABASE_NAME="" \
|
||||
POSTGRESQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
|
||||
|
||||
@@ -279,11 +279,11 @@ pgpool_healthcheck() {
|
||||
-h "${PGPOOL_TMP_DIR}" -p "${PGPOOL_PORT_NUMBER}" -tA -c "SHOW pool_nodes;" >/dev/null; then
|
||||
# look up backiends that are marked offline
|
||||
for node in $(PGPASSWORD="${PGPOOL_POSTGRES_PASSWORD}" psql -U "${PGPOOL_POSTGRES_USERNAME}" -d postgres \
|
||||
-h "${PGPOOL_TMP_DIR}" -p "${PGPOOL_PORT_NUMBER}" -tA -c "SHOW pool_nodes;" | grep "down"); do
|
||||
-h "${PGPOOL_TMP_DIR}" -p "${PGPOOL_PORT_NUMBER}" -tA -c "SHOW pool_nodes;" | grep "down" | tr -d ' ' ); do
|
||||
node_id=$(echo "${node}" | cut -d'|' -f1)
|
||||
node_host=$(echo "${node}" | cut -d'|' -f2)
|
||||
if PGPASSWORD="${PGPOOL_POSTGRES_PASSWORD}" psql -U "${PGPOOL_POSTGRES_USERNAME}" -d postgres \
|
||||
-h "${node_host}" -p "${PGPOOL_PORT_NUMBER}" -tA -c "SELECT 1" >/dev/null; then
|
||||
if [[ $(PGCONNECT_TIMEOUT=3 PGPASSWORD="${PGPOOL_POSTGRES_PASSWORD}" psql -U "${PGPOOL_POSTGRES_USERNAME}" \
|
||||
-d postgres -h "${node_host}" -p "${PGPOOL_PORT_NUMBER}" -tA -c "SELECT 1" || true) == 1 ]]; then
|
||||
# attach backend if it has come back online
|
||||
pgpool_attach_node "${node_id}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user