This commit is contained in:
Bernhard Radermacher
2026-02-23 15:59:17 +01:00
parent b3033cee07
commit 314194a6dd
3 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
pgpool2 \ pgpool2 \
postgresql-client \ postgresql-client \
# netcat \ iproute2 \
&& \ && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

View File

@@ -4,6 +4,8 @@ set -Eeo pipefail
sudo service ssh start sudo service ssh start
sudo service pgpool2 start
while true while true
do do
echo "$(date)" echo "$(date)"

View File

@@ -12,7 +12,7 @@ backend_weight1 = 1
backend_data_directory1 = '/var/lib/postgresql/data' backend_data_directory1 = '/var/lib/postgresql/data'
backend_flag1 = 'ALLOW_TO_FAILOVER' backend_flag1 = 'ALLOW_TO_FAILOVER'
enable_pool_hba = on enable_pool_hba = on
logdir = '/var/log/pgool' logdir = '/var/log/postgresql'
sr_check_user = 'pgpool' sr_check_user = 'pgpool'
sr_check_password = 'secret' sr_check_password = 'secret'
health_check_period = 10 health_check_period = 10
@@ -20,4 +20,3 @@ health_check_user = 'pgpool'
health_check_password = 'secret' health_check_password = 'secret'
recovery_user = 'pgpool' recovery_user = 'pgpool'
recovery_password = 'secret' recovery_password = 'secret'
recovery_1st_stage_command = 'basebackup.sh'