[SERVER-28818] Enable configuring RAM usage for MongoDB instance Created: 17/Apr/17 Updated: 27/Oct/23 Resolved: 13/Jun/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Tomak Ksenia | Assignee: | Backlog - Service Architecture |
| Resolution: | Gone away | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Service Arch
|
||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
Quote from docs: We need an instrument to reduce memory (RAM) usage of whole MongoDB subsystem because we should start several services on server. At this moment we can limit only WiredTiger internal cache (storage.wiredTiger.engineConfig.cacheSizeGB config setting). |
| Comments |
| Comment by Ratika Gandhi [ 13/Jun/19 ] |
|
As of |
| Comment by Bruce Lucas (Inactive) [ 09/Mar/18 ] |
|
Hi Tomak, In general it's not possible to place specific limits on the amount of memory used by the operating system for its file system cache on behalf of mongod. However, since you are running on Windows, I suspect you may have been encountering an issue that we fixed in Can you test your workload on a version that includes Thanks, |
| Comment by Boas Enkler [ 08/Mar/18 ] |
|
@Ramon Fernandez an other point which makes this from my point of view a keyfeature is that we need it for running in kubernetes. As a result in some scenarios (e.g. batch imports or other heavy data related operations) mongodb isn't a good solution in k8s scenarios. or is there any way to mimic the cgroup behavior in kubernetes pods? |
| Comment by Tomak Ksenia [ 21/Apr/17 ] |
|
Thanks for your reply. We will track this issue. |
| Comment by Ramon Fernandez Marina [ 20/Apr/17 ] |
|
Thanks for your report tomak_k.s.. The functionality you request is part of our long-term roadmap, so I'm going to use this ticket to keep track of it. Unfortunately this feature won't happen for a while, and until then the only way to limit the amount of memory mongod uses is via operating system tools (e.g.: cgroups on linux). Regards, |