Project: MongoDB configure cacheSizeGB based on memory requests/limits

Created on 25 Apr 2019  路  2Comments  路  Source: kubedb/project

According to the docs the cacheSizeGB should be based on the resource limits of the container:
```
If you run mongod in a container (e.g. lxc, cgroups, Docker, etc.) that does not have access to all of the RAM available in a system, you must set storage.wiredTiger.engineConfig.cacheSizeGB to a value less than the amount of RAM available in the container. The exact amount depends on the other processes running in the container.
````
https://docs.mongodb.com/manual/reference/configuration-options/

Right now if you run mongodb instances using kubedb in a "shared" kubernetes cluser, multiple containers take about 50% of the available memory of the system for cache. This will lead to container crashes or oom problems.

feature_request

Most helpful comment

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.62. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 2 comments

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.62. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Was this page helpful?
0 / 5 - 0 ratings