I can maintain it programmatically and was able to do it via hdr(dom) acl match.

I am running into an haproxy config limit of 2047 characters per line

I'd like an acl to match a space delimited string of domains(potentially 
hundreds). Any way to increase this limit? Is it an arbitrary limit imposed by 
haproxy devs or is it a threshold that, if crossed, causes problems?

-Danny

-----Original Message-----
From: Willy Tarreau [mailto:[email protected]] 
Sent: Wednesday, December 5, 2012 5:11 PM
To: Daniel Alfonso
Cc: [email protected]
Subject: Re: domain based load balancing

Hi Daniel,

On Wed, Dec 05, 2012 at 02:18:15PM -0500, Daniel Alfonso wrote:
> Hello,
> 
> I want to load balance hundreds (maybe thousands) of domains to a farm of web 
> servers.
> 
> I want each domain to only ever load on 1 webserver and stay there unless 
> there is a failure.
> 
> I'd like to break this up based on traffic load so all webservers are doing 
> roughly the same work.
> 
> Can this be done practically with just a ton of ACLs?

Yes but maybe not much maintainable.

> Is there a better way of accomplishing this?

Have you thought about hashing the Host header (for example) ? Just an idea, I 
don't know how that fits your need.

Willy


Reply via email to