Skip to content

Commit 47de0d1

Browse files
committed
chore(postgres): set max_connections = 1024
1 parent 4b986ab commit 47de0d1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ wal_level = archive
55
archive_mode = on
66
archive_command = 'envdir "${WALG_ENVDIR}" wal-g wal-push %p'
77
archive_timeout = 60
8+
max_connections = 1024
89
EOF
910

1011
# ensure $PGDATA has the right permissions
@@ -36,6 +37,7 @@ archive_mode = on
3637
archive_command = 'envdir "${WALG_ENVDIR}" wal-g wal-push %p'
3738
archive_timeout = 60
3839
listen_addresses = '*'
40+
max_connections = 1024
3941
EOF
4042
cat << EOF > "$PGDATA/pg_hba.conf"
4143
# "local" is for Unix domain socket connections only

0 commit comments

Comments
 (0)