You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2015/10/21 13:58:51 UTC

[Bug 58512] New: balancer-manager losing settings on reload

https://bz.apache.org/bugzilla/show_bug.cgi?id=58512

            Bug ID: 58512
           Summary: balancer-manager losing settings on reload
           Product: Apache httpd-2
           Version: 2.4.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
          Assignee: bugs@httpd.apache.org
          Reporter: bugreport@lamp-solutions.de

Following settings are applied in the VHost.conf:

        ProxyRequests Off
        ProxyVia Off
        ProxyPreserveHost On

        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>

        <Proxy balancer://mycluster>
            BalancerMember http://192.168.11.31 loadfactor=8 retry=10
            BalancerMember http://192.168.11.32 loadfactor=7 retry=10
            BalancerMember http://192.168.11.33 loadfactor=10 retry=10
            BalancerMember http://192.168.11.34 loadfactor=5 retry=10
            BalancerMember http://192.168.11.35 loadfactor=10 retry=10
            BalancerMember http://192.168.11.36 loadfactor=8 retry=10
        </Proxy>

        ProxyPass /balancer-manager !
        ProxyPass / balancer://mycluster/

This settings worked very well with apache2.2 for about 5 years. And were
migrated to apache 2.4.7 on Ubuntu 14.04 LTS.

It's all fine, but sometimes it happens that some admins exclude some
balancer-members or change the loadfactor according the needings at the moment.

Problem:

When reloading the apache-service, e.g. through "logrotate" or simply an
adaption in the configuration, the settings defined in the balancer-manager are
going lost.
A similar issue had been reported in "44736" for apache2.2 and had been
resolved.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 58512] balancer-manager losing settings on reload

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58512

Chris <bu...@lamp-solutions.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |WORKSFORME

--- Comment #2 from Chris <bu...@lamp-solutions.de> ---
Hi Yann,

thank you! Works as expected.

I had the 2.2 bug in mind so I was confused.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 58512] balancer-manager losing settings on reload

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58512

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Yann Ylavic <yl...@gmail.com> ---
You should use "BalancerPersist on" ([1]).
There were many improvements on mod_proxy_balancer in 2.4, one of those is
dynamic configuration via the balancer-manager, which does not persist by
default.

[1] https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#balancerpersist

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org