lvm-pvc-snapshot: cut retention 7->3 days (reduce sdc thin-pool CoW IOPS + free ~1TB)
All checks were successful
ci/woodpecker/push/default Pipeline was successful
All checks were successful
ci/woodpecker/push/default Pipeline was successful
Part of the sdc IOPS-reduction work (code-oflt). 462 daily thin snapshots (66 PVCs x 7d) drive ~10-34 w/s of thin-pool metadata (tmeta) CoW writes on the contended sdc spindle and pin ~2TB in the 70%-full pool. Halving to 3 days roughly halves both. Instant-restore window shrinks 7->3d; daily-backup still keeps 4 weeks of file-level PVC history, so DR coverage is unchanged. Deployed to the PVE host via scp (these host scripts are scp-deployed, not TF-managed). Doc updated in .claude/CLAUDE.md. Refs: code-oflt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
256122ff5b
commit
4473b469e3
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ set -euo pipefail
|
|||
VG="pve"
|
||||
THINPOOL="data"
|
||||
SNAP_SUFFIX_FORMAT="%Y%m%d_%H%M"
|
||||
RETENTION_DAYS=7
|
||||
RETENTION_DAYS=3 # 7->3 (2026-06-29, code-oflt): fewer thin snapshots = less tmeta CoW write-IOPS on sdc + ~1TB freed; daily-backup keeps 4wk file-level history
|
||||
MIN_FREE_PCT=10
|
||||
PUSHGATEWAY="${LVM_SNAP_PUSHGATEWAY:-http://10.0.20.100:30091}"
|
||||
PUSHGATEWAY_JOB="lvm-pvc-snapshot"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue