Willy, 

    To explain my last question "3. Can HAProxy set a default frontend 
service?"  I list a possible configuration below, 


frontend PUBLIC
    bind :80
    acl rec_w7 path_beg /A
    acl rec_w7 path_beg /B
    acl rec_w7 path_beg /B
    ......

   use_backend W7-Backend if rec_w7

    #Default
    #----------------
    acl rec_w6 path_beg /*
    use_backend W6-Backend if rec_w6

    What I want HAProxy does is, if the request does not match any patterns in 
/A, /B, /C, ......  can the traffic be sent to the default, W6-Backend?  Is it 
doable?

Thanks, Q.Xie


________________________________
 From: Willy Tarreau <[email protected]>
To: Qingshan Xie <[email protected]> 
Cc: Lukas Tribus <[email protected]>; "[email protected]" 
<[email protected]>; Nenad Merdanovic <[email protected]> 
Sent: Monday, July 1, 2013 3:26 PM
Subject: Re: Can HAProxy Reverse Proxy SSL to Backend?
 

Hi,

On Mon, Jul 01, 2013 at 03:06:36PM -0700, Qingshan Xie wrote:
> Hello Willy and Lukas, 
> 
> 
>     I have 3 questions regarding HAProxy listed below, Please help.
> 
> 1. Can HAProxy handle 1000 ACL lines in one frontend service? what it's limit?

There is no limit. ACLs by themselves do not hurt, they just consume
a little bit of memory. Using them is what you should care about. That
said, the worst config I have ever seen had 450000 ACLs and as many
"use_backend" rules. It was not very fast as you can imagine :-)

> 2. For 1 process of HAProxy, how many concurrent connections it can handle?

That can be configured in the global section for the process and
in each frontend section or in the default section for the services
themselves, please check the doc for this.

>  Can HAProxy configure Threads?

no.

> 3. Can HAProxy set a default frontend service?

I don't understand what you mean here.

Regards,
Willy

Reply via email to