Bug 1798668
Summary: | Configure default MongoDB WiredTiger cache to be 20% of RAM in the Satellite server | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | sthirugn <sthirugn> | |
Component: | Installation | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | Devendra Singh <desingh> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 6.6.0 | CC: | aperotti, desingh, egolov, ktordeur, mmccune, smajumda, spetrosi, wclark, wpinheir, zhunting | |
Target Milestone: | 6.8.0 | Keywords: | PrioBumpField, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | foreman-installer-2.1.0-0 | Doc Type: | Known Issue | |
Doc Text: |
Cause:
Mongod process with wiredTiger engine consumes up to half of RAM in Satellite6
Consequence:
The aggressive default memory usage limits other processes or can cause OOM killer to kill the mongod process
Workaround (if any):
Override custom-hiera.yml configuring WiredTiger cache size to be 20% of the physical RAM in the server. More info in https://access.redhat.com/solutions/4505561
Result:
The cache size limit lets mongo not consume more than 20% of the physical RAM in the server.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1851158 (view as bug list) | Environment: | ||
Last Closed: | 2020-10-27 13:00:15 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1399395 |
Description
sthirugn@redhat.com
2020-02-05 18:45:30 UTC
Created redmine issue https://projects.theforeman.org/issues/29425 from this bug Created redmine issue https://projects.theforeman.org/issues/29426 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29426 has been resolved. Build Version: 6.8 Snap3 Verification point: * Changes reflected in /usr/share/foreman-installer/config/foreman.hiera/tuning/common.yaml --- lookup_options: postgresql::server::config_entries: merge: hash .... .... .... mongodb::server::config_data: storage.wiredTiger.engineConfig.cacheSizeGB: "%{facts.kafo.scenario.custom.mongo_cache_siz}" * Satellite Server has actual Memory(In KiB): 19931328 The default configured cache memory in mongod.conf(/etc/opt/rh/rh-mongodb34/mongod.conf): storage.wiredTiger.engineConfig.cacheSizeGB: 3.8 * db.serverStatus().mem { "bits" : 64, "resident" : 2906, "virtual" : 4680, "supported" : true, "mapped" : 0, "mappedWithJournal" : 0 } KiB Mem : 19931328 total, 1913628 free, 11558312 used, 6459388 buff/cache KiB Swap: 1048572 total, 989180 free, 59392 used. 7845296 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 28733 mongodb 20 0 4793152 2.8g 9268 S 0.0 14.9 48:31.17 mongod It seems implementation is working fine @sthirugn, Can you please confirm the above validation is sufficient? The above validation is sufficient, looks good. Verified. (In reply to Devendra Singh from comment #10) > Build Version: 6.8 Snap3 > > Verification point: > > * Changes reflected in > /usr/share/foreman-installer/config/foreman.hiera/tuning/common.yaml > > --- > lookup_options: > postgresql::server::config_entries: > merge: hash > .... > .... > .... > mongodb::server::config_data: > storage.wiredTiger.engineConfig.cacheSizeGB: > "%{facts.kafo.scenario.custom.mongo_cache_siz}" The parameter name above looks incorrect - it should be `facts.kafo.scenario.custom.mongo_cache_size` - `e` is missing in your paste, typo? Upstream code is here for reference - https://github.com/theforeman/foreman-installer/blob/develop/config/foreman.hiera/tuning/common.yaml#L27 (In reply to sthirugn from comment #13) > (In reply to Devendra Singh from comment #10) > > Build Version: 6.8 Snap3 > > > > Verification point: > > > > * Changes reflected in > > /usr/share/foreman-installer/config/foreman.hiera/tuning/common.yaml > > > > --- > > lookup_options: > > postgresql::server::config_entries: > > merge: hash > > .... > > .... > > .... > > mongodb::server::config_data: > > storage.wiredTiger.engineConfig.cacheSizeGB: > > "%{facts.kafo.scenario.custom.mongo_cache_siz}" > > The parameter name above looks incorrect - it should be > `facts.kafo.scenario.custom.mongo_cache_size` - `e` is missing in your > paste, typo? > > Upstream code is here for reference - > https://github.com/theforeman/foreman-installer/blob/develop/config/foreman. > hiera/tuning/common.yaml#L27 yes, it was a typo in the paste from my-side # cat /usr/share/foreman-installer/config/foreman.hiera/tuning/common.yaml --- lookup_options: postgresql::server::config_entries: merge: hash ....... ....... mongodb::server::config_data: storage.wiredTiger.engineConfig.cacheSizeGB: "%{facts.kafo.scenario.custom.mongo_cache_size}" Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.8 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4366 *** Bug 1791853 has been marked as a duplicate of this bug. *** |