Hide Forgot
Description of problem: We had issues when Satellite server got in swap. We were advised to implement cgroups to limit MongoDB memory usage (will grow forever because depends on host count). 2GB cgroups limit on MongoDB caused this to crash. 4GB is enough and Satellite does not get into swap anymore BUT This works very slow. Version-Release number of selected component (if applicable): 6.2.0 How reproducible: Install all-in-one Satellite. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Satellite works fast. MongoDB not crashed. No Memory leakage. Additional info: OS version is RHEL 6.8
Hi Sasha, Can you attach a foreman-debug of the server where you are observing the memory growth? Is it only mongodb memory that is growing?
Created attachment 1223048 [details] Forebug debug log
Uploaded debug log. Looks like without cgroups only MongoDB is growing memory. 2GB cgroups limit on MongoDB makes it crash after some time. 4GB cgroups limit does not crash MongoDB but server again get in swap of ~1GB and works slowly.
Moving to Pulp component, Tanya, do you happen to know whether this is expected or any other workaround for MongoDB?
My understanding is probably 4GB is not enough for MongoDB for this setup/usage. MongoDB is known to be greedy in terms of memory usage but at the same time it releases it quickly when needed. So if it's MongoDB which goes into swap then I guess it requires more than 4GB as a minimum. There're some docs how to measure what's the minimum for a particular case, maybe worth trying: https://docs.mongodb.com/manual/faq/diagnostics/#how-do-i-calculate-how-much-ram-i-need-for-my-application
Suggest close the issue, may be some online documentation related to this would be enough.
Closing per comment 6