packages.wenpai.net/deploy/ansible/roles/wppackages/templates/litestream.yml.j2
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

15 lines
404 B
Django/Jinja

dbs:
- path: {{ db_path }}
min-checkpoint-page-count: 1000
checkpoint-interval: 1m
truncate-page-n: 0
replica:
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
sync-interval: 60s