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 2013/03/17 15:00:03 UTC

[Bug 54657] DNS lookup failure for load balancer member does not stop affected member from receiving and failing requests

https://issues.apache.org/bugzilla/show_bug.cgi?id=54657

mike <do...@bellsouth.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|mod_proxy_balancer          |mod_proxy
            Version|2.2.21                      |2.4.4
           Severity|minor                       |normal

--- Comment #1 from mike <do...@bellsouth.net> ---
just adding notes on how to reproduce this problem with the current latest
version, 2.4.4:

build process:
- mkdir /tmp/apache/
- cd /tmp/apache/
- wget http://www.gtlib.gatech.edu/pub/apache/httpd/httpd-2.4.4.tar.gz
- wget http://www.gtlib.gatech.edu/pub/apache/apr/apr-1.4.6.tar.gz
- wget http://www.gtlib.gatech.edu/pub/apache/apr/apr-util-1.5.1.tar.gz
- wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.tar.gz
- tar xzf httpd-2.4.4.tar.gz
- tar xzf apr-1.4.6.tar.gz
- tar xzf apr-util-1.5.1.tar.gz
- tar xzf pcre-8.32.tar.gz
- mv apr-1.4.6 httpd-2.4.4/srclib/apr/
- mv apr-util-1.5.1 httpd-2.4.4/srclib/apr-util/
- cd /tmp/apache/pcre-8.32/
- ./configure --prefix=/tmp/apache/mypcre
- make && make install
- cd /tmp/apache/httpd-2.4.4/
- ./configure --prefix=/tmp/apache/myapache/ --enable-mods-shared=all
--enable-mpms-shared=all --with-mpm=worker --disable-cgid --enable-proxy=shared
--with-included-apr --with-pcre=/tmp/apache/mypcre/
- make && make install

test config:
/tmp/apache/myapache/conf> cat httpd.conf
ServerRoot /tmp/apache/myapache/
Listen 8080
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule mpm_worker_module modules/mod_mpm_worker.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
<Directory />
    AllowOverride None
    Require all denied
</Directory>
DocumentRoot /tmp/apache/myapache/htdocs
<Directory /tmp/apache/myapache/htdocs>
    AllowOverride None
    Require all granted
</Directory>
ErrorLog logs/error_log
LogLevel warn
<Proxy balancer://api-cluster>
  BalancerMember http://box01:8182/api
  BalancerMember http://box02:8182/api
</Proxy>
ProxyPass /api/ balancer://api-cluster/


- start the server
- reproduce problem by repeatedly doing: curl
http://localhost:8080/api/whatever

-- 
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