Skip to main contentDefines how persistent data is stored, backed up, and restored in production environments.
Volume layout
| Service | Default path |
|---|
| TiKV | /data |
| PD | /data |
| Kafka | /var/lib/kafka/data |
| Redis | /data |
| MongoDB | /data/db |
All persistent volumes should be backed by SSD or NVMe storage for production deployments.
Backup strategy
- TiDB: daily backups to secure, off-cluster storage
- Kafka: weekly segment-level backups
- Redis: RDB snapshots every 6 hours (cache data is non-authoritative)
- Backup validation: monthly restore and integrity verification tests
Disaster recovery
- Validate full restore procedures at least once per quarter
- Maintain a minimum of three geographically isolated backup copies
- Run staged disaster recovery simulations such as warm-standby restoration and full cluster rehydration from backups