Skip to content

Commit 0cb9c0c

Browse files
committed
Improve
1 parent 8f3d81a commit 0cb9c0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/docker-compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ services:
2121
- ${POSTGRES_DATA_VOLUME:-postgres_data}:/var/lib/postgresql/data
2222
# These parameters are configured for local testing only.
2323
# In production, use PostgreSQL defaults or your own tuned values.
24+
# `wal_sender_timeout/2` is the keepalive timeout for streaming replication.
2425
command: >
2526
postgres
2627
-N 1000
2728
-c wal_level=logical
2829
-c max_wal_senders=100
2930
-c max_replication_slots=100
30-
-c wal_sender_timeout=1s
31+
-c wal_sender_timeout=10s
3132
restart: unless-stopped
3233
healthcheck:
3334
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]

0 commit comments

Comments
 (0)