[Feature] Cross-cluster standby instance with config sync (multi-site HA)
Describe the feature
Allow running two (or more) PegaProx instances — e.g. one on cluster A and one on cluster B — that keep their configuration in sync (clusters, credentials, users/RBAC, schedules, alert rules, settings), so that if the instance on cluster A becomes unreachable, the instance on cluster B can immediately be used to manage all clusters.
I'm aware of #559, which was closed as not planned, and I'm deliberately not asking for what was rejected there (CARP/VIP active-active, shared state, leader election). This is a narrower ask:
- One instance is active, the other runs as a standby: UI reachable, config synced, but scheduler/alert/replication background loops disabled so nothing double-fires.
- Sync could be as simple as a periodic encrypted config export/import between peers (or even a manual "export config bundle / import on peer" as a first step).
- Promotion can be manual: a "make this instance active" button/flag on the standby is perfectly acceptable. No automatic failover, no VIP needed.
Use Case
Multi-site / multi-cluster DR. The answer given in #559 — run the PegaProx appliance as a Proxmox-HA-managed VM — protects against a node failure, but not against the failure of the cluster or site the appliance lives on. If cluster A (hosting PegaProx) goes down entirely, I lose the management plane for cluster B, C, ... at exactly the moment I need it most (e.g. to run DR drills, restores, or migrations targeting the surviving clusters).
A synced standby on cluster B means the management plane survives the loss of any single cluster/site, which matches how PegaProx is positioned (multi-cluster, DR drills, cross-cluster replication).
Alternatives considered
- Proxmox HA for the appliance VM (the #559 answer): covers node failure only, not cluster/site failure.
- Scheduled appliance replication to cluster B + boot replica on failure: works, but the replica boots as a stale active instance — schedules and alert loops fire immediately on possibly outdated config, and there's no clean way to run it continuously as a warm standby for validation.
- Manually maintaining a second instance with duplicated config: config drift makes it unreliable exactly when it's needed.
How important is this for you?
Would improve my workflow significantly — it's the main gap when positioning PegaProx as the management plane for multi-site Proxmox environments.
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before (related: #559, closed not-planned — this proposal is scoped down to address the objections raised there)
Thanks, this is well thought through — and good call splitting it cleanly from #559, that distinction's fair. A warm standby with the background loops off + a config export/import between peers (manual promote) is a sane shape, and it sidesteps what got #559 rejected. Chunky architectural one though, so I won't promise timing — but it's on the list to weigh for the roadmap.
Big ones like this move up the list a lot faster with a bit of sponsorship btw — https://opencollective.com/pegaprox 💛
— Marcus
This ships in 1.3.0, which is out now. A new High Availability tab in the settings pairs PegaProx instances into a group of up to four: one leader that runs all automation and holds the configuration, members it can make active to serve users, and warm standbys. A standby pulls the shared configuration every 30 seconds by default, shows the clusters live and read only, and none of its scheduler, alert or replication loops act, so nothing fires twice. Promotion is a manual, confirmed step on the standby, much like you sketched it. The docs are at https://docs.pegaprox.com/pegaprox-ha/overview/
If PegaProx saves you some time, a small contribution at https://opencollective.com/pegaprox keeps it going.
Marcus