You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: make _has_memory_headroom function more configurable #69884
Originally posted by do3meli July 6, 2026
The function _has_memory_headroom is actually checking if the system has less than 95% of the total memory available free. If so it will return true and otherwise it will return false:
The problem with this is, that salt-minion jobs get queued up on nodes that have a huge amount of memory still free. Let's say you have 2TB memory nodes. 5% memory headroom on such a system would be 102.4 GB. I guess that should be more than enough for salt ;-) Therefore i suggest to have the following to adjustments:
make the memory limit in percent configurable: instead of using 95 as hardcoded in the code substitute this with a variable that can be configured via minion config.
enhance the condition in a way that it is also possible to use a pre defined (via config of minion) number of memory that needs to be available (for example 5 GB). If that is set, i guess it would be preferred over the percent that is defined.
Activity
Add scenario tests for minion memory headroom (saltstack#69884)
Add configurable/cgroup-aware minion memory headroom check
Merge pull request #70038 from dwoz/dwoz/fix/69884-memory-headroom-co…
Add configurable/cgroup-aware minion memory headroom check
Add scenario tests for minion memory headroom (#69884)