feat(metrics): move VM redundancy into the app, off mayastor-repl5 #24
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/vm-ha"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Redundancy for metrics lived entirely in the storage layer: one vmsingle on a repl5 volume. That is 5 storage replicas of a single point of failure - lose the pod or its data and there is no second VM.
Changes
kubernetes.io/hostname. Two copies on one node is not redundancy, it is two copies that die together. 5 workers, 2 replicas, always satisfiable.serviceNameis immutable, so this needs the STS recreated - which the repl1 change needs anyway.Known and deliberate
victoriametrics-0keeps its existing repl5 PVC - a StatefulSet reuses a PVC whose name already matches. Onlyvictoriametrics-1gets a repl1 volume. Moving replica 0 off repl5 means dropping its PVC and restoring from the S3 backup; separate step, and safe now that vmbackup is verified.victoriametrics-1starts empty and fills forward. vmsingle has no peer repair, so it will not backfill history from replica 0.Rollout note
The STS must be deleted with
--cascade=orphanto change the immutable fields. That is safe now: PR #21 setwhenDeleted: Retain, so the PVC is not garbage-collected with it.