Bug 1138522
Summary: | Values of MaxClients/ServerLimit in performance.conf is overidden by httpd_nolog.conf | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jaspreet Kaur <jkaur> |
Component: | ImageStreams | Assignee: | Timothy Williams <tiwillia> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.2.0 | CC: | adellape, bleanhar, gpei, jdetiber, jokerman, lmeyer, maszulik, mfojtik, mmccomas, tiwillia |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-php-1.34.1.1-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
The values for `MacClients` and `ServerLimit` were hard-coded into the httpd_nolog.conf file for the PHP cartridge. The load order specified to load httpd_nolog.conf last, so specifying a custom `MaxClients` or `ServerLimit` variable was not possible as these configurations would always be overwritten by httpd_nolog.conf. This bug fix updates the PHP cartridge to change how configuration files are passed to httpd from using `-C` (load before reading configuration files) to `-c` (load after reading configuration files). As a result, custom `MaxClients` and `ServerLimit` variables can now be defined in PHP cartridges.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-30 16:36:08 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: |
Description
Jaspreet Kaur
2014-09-05 05:06:36 UTC
Hello, Do we have any updates on this for our customer. Please let me know the current status of the bug. Regards, Jaspreet https://github.com/openshift/origin-server/pull/6221 should resolve this. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/a3538f56b7275106874297407dffc636a58e0d87 Bug 1138522 - Ensure performance.conf is processed after httpd_nolog.conf https://bugzilla.redhat.com/show_bug.cgi?id=1138522 Use the '-c' directive to ensure that $OPENSHIFT_PHP_DIR/configuration/etc/conf.d/* files (including performance.conf) are processed into configuration after httpd_nolog.conf. This will allow directives in the configuration files in $OPENSHIFT_PHP_DIR/configuration/etc/conf.d/* to overwrite directives in httpd_nolog.conf. Checked with puddle 2.2/2015-09-15.1, only got openshift-origin-cartridge-php-1.33.1.1-1.el6op.noarch on the env, waiting openshift-origin-cartridge-php-1.34.1.1-1.el6op to test this bug. Verify this bug with openshift-origin-cartridge-php-1.34.1.1-1.el6op.noarch. After creating a php-5.4 app, check the values of MaxClients and ServerLimit in performance.conf: [app1-yes.ose22-auto.com.cn yes-app1-1]\> cat php/configuration/etc/conf.d/performance.conf <IfModule prefork.c> ServerLimit 17 MaxClients 17 </IfModule> It didn't get overridden by the value of MaxClients and ServerLimit in php/configuration/etc/conf/httpd_nolog.conf 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, 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://rhn.redhat.com/errata/RHSA-2015-1844.html |