Skip to content

Commit 8d73363

Browse files
committed
fix: increase restore timeout
1 parent 4d80f70 commit 8d73363

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/workers/crunchy_bridge_restore.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ Requires=zfs-mount.service
249249
Type=forking
250250
User=postgres
251251
Group=postgres
252-
# Long timeout (2 hours) to allow WAL replay for large databases (e.g., 1TB+ databases can take 30+ minutes)
253-
ExecStart=${PG_BIN}/pg_ctl start -t 7200 -D ${DATA_DIR} -l ${DATA_DIR}/postgresql.log
252+
# Long timeout (4 hours) to allow WAL replay for large databases
253+
ExecStart=${PG_BIN}/pg_ctl start -t 14400 -D ${DATA_DIR} -l ${DATA_DIR}/postgresql.log
254254
ExecStop=${PG_BIN}/pg_ctl stop -D ${DATA_DIR} -m fast
255255
ExecReload=${PG_BIN}/pg_ctl reload -D ${DATA_DIR}
256256
KillMode=mixed
257257
KillSignal=SIGINT
258-
TimeoutStartSec=7200
258+
TimeoutStartSec=14400
259259
TimeoutStopSec=300
260260
Restart=on-failure
261261
RestartSec=5s

0 commit comments

Comments
 (0)