packages.wenpai.net/litestream.yml
Scott Walkinshaw be9b02e8d4
Fix database is locked errors by tuning WAL checkpointing for Litestream (#94)
Disable app-side auto-checkpointing so Litestream is the sole checkpoint
owner, and configure Litestream to use only non-blocking checkpoints.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-04 10:37:27 -05:00

14 lines
393 B
YAML

dbs:
- path: ${DB_PATH}
min-checkpoint-page-count: 1000
checkpoint-interval: 1m
truncate-page-n: 0
replicas:
- type: s3
bucket: ${LITESTREAM_BUCKET}
endpoint: ${R2_ENDPOINT}
access-key-id: ${R2_ACCESS_KEY_ID}
secret-access-key: ${R2_SECRET_ACCESS_KEY}
force-path-style: true
retention: 24h
snapshot-interval: 24h