On Fri, Mar 05, 2010 at 02:45:07PM -0800, Praveen Patnala wrote:
> Hi,
>
> I am working on a design to do load balancing for a cluster of servers based
> on URLs.
>
> My URLs are for e.g -
> http://mydomain.com/request?type=xxx
> http://mydomain.com/request?type=yyy
>
> I want to do URL load balancing based on the 'type' attribute. Sp for type
> 'xxx' it can goto backend_farm_x and type 'yyy' it can goto backend_farm_y..
>
> Can someone please help me what kind of rule is it it preferable - url_reg,
> url_sub, path_reg, path_sub? If anyone can point me to such samples rule, it
> will be useful.
well, in my opinion, using acls such as below should work :
acl type_xxx url_reg \?type=xxx
acl type_yyy url_reg \?type=yyy
> I starrted off with these rules but it didn't work -
What confuses me below is that most of those ACLs try to match "xxx" in
the path and not in the query string as in the example above. You can't
use any path_* acls to match a query string because the path stops before
the question mark.
Regards,
Willy