Description of problem: Values of MaxClients/ServerLimit in performance.conf is overidden by httpd_nolog.conf Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. Create an application with a php cartridge. 2. When a php cartridge is started we see this process launched: /usr/sbin/httpd -C Include /var/lib/openshift/540466bae0223c812e002bcd/php//configuration/etc/conf.d/*.conf -f /var/lib/openshift/540466bae0223c812e002bcd/php//configuration/etc/conf/httpd_nolog.conf -c Include /etc/openshift/cart.conf.d/httpd/*.conf -c Include /etc/openshift/cart.conf.d/httpd/php/*.conf -D FOREGROUND 3.$HTTPD_CFG_FILE follows $HTTPD_CFG_DIR/*.conf, so php/configuration/etc/conf/httpd_nolog.conf follows php/configuration/etc/conf.d/performance.conf. Hence the values of parameters MaxClients and ServerLimit in performance.conf is overidden by static value 60 mentioned in httpd_nolog.file Actual results: The values of MaxClients and ServerLimit in performance.conf gets overidden by static values of httpd_nolog.conf file. Expected results: The values of MaxClients and ServerLimit in performance.conf should take precedence. Additional info: According to https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-php/bin/control#L5-12 httpd_nolog.conf is specified last.
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