VictoriaMetrics Tuning Fixes // SeriesStore Lab
Zero-Downtime Incremental Backups via vmbackup
Copying a live TSDB directory with rsync corrupts active merges; VictoriaMetrics /snapshot/create freezes hard links in milliseconds for consistent backups.
Measured TSDB & Cardinality Telemetry
Because VictoriaMetrics stores immutable data parts, creating an instant point-in-time snapshot requires zero file copies—only hard links inside storageDataPath/snapshots. vmbackup reads that snapshot and uploads only changed blocks to S3-compatible object storage or a secondary InterServer Storage Slice.
| Subsystem / Signal | Measured Footprint | Operational Impact |
|---|---|---|
| Snapshot Creation Time | < 50 milliseconds | Zero write stalls or ingestion pauses |
| Incremental Daily Delta | 1 - 4% of total size | Uploads only newly merged ZSTD parts |
| Restore Speed | Full NVMe/network speed | vmrestore pulls parts directly into empty dir |
Step-by-Step Diagnostic & Config Remediation
- Test instant snapshot endpoint: Verify curl -s http://127.0.0.1:8428/snapshot/create returns a valid snapshot ID.
- Run vmbackup against snapshot API: Point -snapshot.createURL to :8428/snapshot/create so vmbackup creates and cleans snapshots automatically.
- Verify disaster recovery with vmrestore: Test restoring a snapshot to a staging directory before relying on backups in production.
/usr/local/bin/vmbackup-prod \ -storageDataPath=/var/lib/victoria-metrics-data \ -snapshot.createURL=http://127.0.0.1:8428/snapshot/create \ -dst=s3://your-metrics-backup-bucket/vm-prod/latest
Diagnostic FAQ
Does /snapshot/create double disk space usage?
No. Snapshots use filesystem hard links, consuming almost zero extra disk space until old parts are merged and deleted.
Can vmbackup copy directly to a mounted storage volume instead of S3?
Yes. Pass -dst=fs:///mnt/backup-slice/vm-prod for local or mounted InterServer Storage Slice targets.