project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Feature] - Warning for Maintainance-Mode when RAM would reach e.g >90% of other Nodes

Open cybrwerk opened this issue 4 months ago • 1 comments

Describe the feature

When placing a node into Maintenance Mode, Pegaprox should perform a pre-check to estimate whether the remaining cluster nodes have sufficient free RAM to accommodate all running VMs.

If the migration would cause one or more target nodes to exceed a configurable threshold (e.g. 90% RAM utilization), a warning should be displayed before Maintenance Mode is entered.

The warning should not necessarily block the operation but should clearly inform the administrator that the cluster may become overcommitted after the migrations.

Use Case

A common maintenance workflow is to evacuate all VMs from a node before performing updates or hardware maintenance.

In clusters with limited spare capacity, enabling Maintenance Mode can unintentionally push one or more nodes into very high memory utilization, potentially affecting performance or causing migration failures.

A pre-flight warning allows administrators to make an informed decision before starting the maintenance operation.

Alternatives considered

None.

How important is this for you?

This would improve the safety and predictability of Maintenance Mode operations, especially in production clusters with high memory utilization. It helps administrators identify capacity issues before migrations begin and reduces the risk of overcommitting the remaining nodes.

Checklist

  • [x] I have searched existing issues and discussions to make sure this hasn't been requested before

cybrwerk avatar Jul 09 '26 18:07 cybrwerk

Makes sense. Right now the evacuator picks the least-loaded target per VM when it drains a node, but there's no up-front check that warns you the remaining nodes will be tight before you even flip on maintenance — so in a capacity-crunched cluster you can end up finding out the hard way through a failed migration halfway through. A non-blocking pre-flight "this would push node X past ~90% RAM" warning is a sensible add, we'll take a look at it. No promise on timing.

PegaProx runs on sponsoring — tip jar at https://opencollective.com/pegaprox if it saves you a rough maintenance window.

Cheers, Marcus

mkellermann97 avatar Jul 10 '26 11:07 mkellermann97