[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haproxy
Subject:    use_backend condition-processing
From:       "bjunity () gmail ! com" <bjunity () gmail ! com>
Date:       2013-06-26 9:20:49
Message-ID: CADNq6W3m5i1YM8pDeiEj6EVwjv_O7vNEbTcdsL2M=6XUTVo1fw () mail ! gmail ! com
[Download RAW message or body]

Hi folks,

i've a question regarding "use_backend" and how conditions are processed.


My Example:


----

 frontend http_in_01

     bind  1.2.3.4:80

     log     global
     option  httplog

     capture request header Host len 32
     capture request header User-Agent len 200

     reqidel ^X-Forwarded-For:.*
     option forwardfor

     option http-server-close


     acl  is_domain_abc.de  hdr_dom(host)  -i  abc.de

     acl  is_regex_matching  url_reg .....
     acl  is_regex_matching  url_reg .....
     acl  is_regex_matching  url_reg ....
     acl  is_regex_matching  url_reg ....
     acl  is_regex_matching  url_reg ....
     .
     .
     ... another 10000 lines  is_regex_matching



     use_backend  webfarm01  if  is_domain_abc.de  !is_regex_matching

---


If the first condition in "use_backend" line is NOT met ( the domain in the
HTTP-Request is not abc.de ),  is the processing for this "use_backend"
line stopped or is the second condition ( the
heavy regex acl)  processed anyway ? (and unnecessarily* *consume
ressources )



-------------------
Bjoern

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi folks,<br><br>i&#39;ve a question regarding \
&quot;use_backend&quot; and how conditions are processed.<br><br><br>My \
Example:<br><br><br>----<br><br> frontend http_in_01<br><br>     bind  <a \
href="http://1.2.3.4:80">1.2.3.4:80</a><br> <br>     log     global<br>     option  \
httplog<br><br>     capture request header Host len 32<br>     capture request header \
User-Agent len 200<br><br>     reqidel ^X-Forwarded-For:.*<br>     option \
forwardfor<br><br>     option http-server-close<br> <br><br>     acl  <a \
href="http://is_domain_abc.de">is_domain_abc.de</a>  hdr_dom(host)  -i  <a \
href="http://abc.de">abc.de</a><br><br>     acl  is_regex_matching  url_reg .....<br> \
acl  is_regex_matching  url_reg .....<br>  acl  is_regex_matching  url_reg ....<br>   \
acl  is_regex_matching  url_reg ....<br>     acl  is_regex_matching  url_reg ....<br> \
.<br>     .<br>     ... another 10000 lines  is_regex_matching<br><br><br><br>     \
use_backend  webfarm01  if  <a href="http://is_domain_abc.de">is_domain_abc.de</a>  \
!is_regex_matching<br> <br>---<br><br><br>If the first condition in \
&quot;use_backend&quot; line is NOT met ( the domain in the HTTP-Request is not <a \
href="http://abc.de">abc.de</a> ),  is the processing for this \
&quot;use_backend&quot; line stopped or is the second condition ( the <br> heavy \
regex acl)  processed anyway ? (and <span class="">unnecessarily</span><b class=""> \
</b>consume ressources \
)<br><br><br></div><div><br></div><div>-------------------<br></div>Bjoern<br><div><br></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic