Bug 1128010
| Summary: | mongodb preallocates journal files adding over 30 seconds to install time | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yanping Zhang <yanpzhan> |
| Component: | ImageStreams | Assignee: | Miciah Dashiel Butler Masters <mmasters> |
| Status: | CLOSED EOL | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.2.0 | CC: | bmeng, jdetiber, jialiu, jokerman, libra-bugs, libra-onpremise-devel, lmeyer, mfisher, mmasters, mmccomas, rmillner, rthrashe, tiwillia, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1021726 | Environment: | |
| Last Closed: | 2017-01-13 22:19:07 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: | 1021726 | ||
| Bug Blocks: | |||
|
Description
Yanping Zhang
2014-08-08 06:08:32 UTC
Add info:The bug exists on ose 2.1.z/2014-08-06.1. I thought maybe the pre-create script just didn't get updated for SCL version. But it did: https://github.com/openshift/enterprise-server/blob/enterprise-2.1/cartridges/openshift-origin-cartridge-mongodb/bin/mkjournal Nothing important fails if it's broken, you just don't get this optimization. It looks like the fix for this defect was shipped in RHBA-2014:0600 "Red Hat OpenShift Enterprise 2.1.1 bug fix and enhancement update" and would also have been included in RHSA-2014:1796 "Moderate: Red Hat OpenShift Enterprise 2.2 Release Advisory". QE, can you verify that the defect does not exist in OpenShift Enterprise 2.2? Checked on ose 2.2 puddle OpenShiftEnterpriseErrata/2.2/2015-09-18.2/.
Steps to test:
1.# time rhc cartridge add mongodb-2.4 -a phptest
Adding mongodb-2.4 to application 'phptest' ... done
mongodb-2.4 (MongoDB 2.4)
-------------------------
Gears: Located with php-5.4
Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/
Database Name: phptest
Password: 5tSBGmZDejKR
Username: admin
MongoDB 2.4 database added. Please make note of these credentials:
Root User: admin
Root Password: 5tSBGmZDejKR
Database Name: phptest
Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/
real 1m9.335s
user 0m0.652s
sys 0m0.198s
2.# rhc ssh phptest cat app-root/logs/mongodb.log |grep prealloc
Warning: the RSA host key for 'phptest-domzyp.ose22-auto.com.cn' differs from the key for the IP address '10.66.79.203'
Offending key for IP in /root/.ssh/known_hosts:49
Matching host key in /root/.ssh/known_hosts:65
Are you sure you want to continue connecting (yes/no)? yes
note: noprealloc may hurt performance in many applications
Mon Sep 21 11:04:29.179 [initandlisten] options: { auth: true, bind_ip: "127.8.160.130", command: [ "run" ], config: "/var/lib/openshift/domzyp-phptest-1/mongodb//conf/mongodb.conf", dbpath: "/var/lib/openshift/domzyp-phptest-1/mongodb/data/", nohttpinterface: "true", noprealloc: "true", pidfilepath: "/var/lib/openshift/domzyp-phptest-1/mongodb/pid/mongodb.pid", quiet: "true", smallfiles: "true" }
From the test results, when add mongodb to app, though noprealloc is applied in mongodb, the adding time is still more than 30 seconds.
OpenShift Enterprise v2 has officially reached EoL. This product is no longer supported and bugs will be closed. Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3. https://www.openshift.com/container-platform/ More information can be found here: https://access.redhat.com/support/policy/updates/openshift/ |