Repository navigation
Conversation
|
Just so that it's clearly spelled out here as well: I've been running this on a local build and the memory consumption of the maintenance worker seems mostly stable. But this is not a fix for #58791, which is happening due to MWorkers having massive memory consumption and being killed by the oom worker. |
|
@sagetherage I really hate being the bearer of bad news, but #58791 is not fixed by this issue. I am running a local build with this fix and it does not solve the specific problem. |
|
+1 for this patch - we noticed that our salt-master (3002.1) was growing at about 1MByte per minute, even with all the minions and api clients turned off. After applying this patch, it's sat completely stable. |
Only required on salt < 3002.2 - after testing this patch on salt 3002.1, I then updated to salt 3002.2 (without this patch) and that resolved this leak (along with a leak on a salt-proxy). Hurrah! I would suggest that this PR is closed. |
|
Sadly this is still an issue for salt-proxy by the looks of it. Running 3003.2 and my proxies are using 8GB ram and climbing... |
What does this PR do?
Fix memory leaks in Master's Maintenance process
What issues does this PR fix or reference?
Fixes: #58785 #58791 #58813We will be partially reverting the loader changes from 3002 in #58862
This PR is still valid to fix a minor memory leak that happened in the salt master's maintenance process prior to the 3002 release.
Previous Behavior
The methods to clean expired jobs and clean old tokens both created multiple loader instances every time they ran.
New Behavior
Create an object that uses a single instance of the objects which create multiple loaders so that loaders are re-used.
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.