Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pg10 bump #53

Merged
merged 2 commits into from Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion runner/master/pgsql.d/master.sh
Expand Up @@ -42,7 +42,7 @@ wal_keep_segments = 32
synchronous_standby_names = '${DBHOST_SLAVE}'

#log_statement = 'all'
log_directory = 'pg_log'
log_directory = 'log'
log_filename = 'postgres.log'
logging_collector = on
log_min_error_statement = error
Expand Down
4 changes: 2 additions & 2 deletions runner/master/pgsql.d/slave.sh
Expand Up @@ -46,7 +46,7 @@ until psql -h ${DBHOST} -U moodle initial -c '\q'; do
done

echo "Restoring backup from master"
pg_basebackup -h ${DBHOST} -U moodle -D "${PGDATA}" -P --xlog-method=stream
pg_basebackup -h ${DBHOST} -U moodle -D "${PGDATA}" -P --wal-method=stream

echo "Copying postgresql.conf in place"
cp $PGDATA.orig/postgresql.conf $CONFFILE
Expand All @@ -56,7 +56,7 @@ echo "Configuring $CONFFILE as a slave"
cat << EOF >> $CONFFILE
hot_standby = on

log_directory = 'pg_log'
log_directory = 'log'
log_filename = 'postgres.log'
logging_collector = on
log_min_error_statement = error
Expand Down
4 changes: 2 additions & 2 deletions runner/master/run.sh
Expand Up @@ -435,7 +435,7 @@ then
-e DBNAME=$DBNAME \
-v $SCRIPTPATH/pgsql.d:/docker-entrypoint-initdb.d \
--tmpfs /var/lib/postgresql/data:rw \
postgres:9.6
postgres:10

# Wait few sec, before executing commands.
sleep 10
Expand All @@ -456,7 +456,7 @@ then
-e DBNAME=$DBNAME \
-v $SCRIPTPATH/pgsql.d:/docker-entrypoint-initdb.d \
--tmpfs /var/lib/postgresql/data:rw \
postgres:9.6
postgres:10

# Hack to make gosu work for all users on the slave.
docker exec -u root $DBHOST_SLAVE bash -c 'chown root:postgres /usr/local/bin/gosu'
Expand Down