-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Context
Part of load balancer architecture work (see PR #228 for full analysis).
Risk: Low | Reward: High | Code Changes: None
Description
Add Litestream sidecar to the existing StatefulSet for continuous SQLite backup to DigitalOcean Spaces.
Why This is Safe
- Read-only operation on SQLite (uses WAL mode)
- Doesn't affect app behavior
- Provides disaster recovery immediately
- Easiest rollback: just remove the sidecar
Tasks
- Create DigitalOcean Spaces bucket for backups
- Add Litestream credentials to
modbot-envsecret:LITESTREAM_ACCESS_KEY_IDLITESTREAM_SECRET_ACCESS_KEY
- Create
cluster/litestream-config.yamlConfigMap with DO Spaces endpoint - Add Litestream sidecar container to
cluster/deployment.yaml - Test backup/restore in staging
References
- Litestream docs
- PR Architecture analysis: Load balancing with SQLite constraint #228 (architecture analysis)
/notes/LOAD_BALANCER_QUICK_REF.md
Metadata
Metadata
Assignees
Labels
No labels