02-25-2009 07:13 AM
Hello
I am trying to configure ACE to load balance base on the user URL. If it matches the specific URL, the traffic will be sent to server farm 1 else the traffic will be sent to server farm 2. Below is my configuration. Please let me know if this will work.
Thanks,
Server Farm Config:
serverfarm host SF_L7_SFAAdmin
description L7 load balancing for SFA Admin
predictor leastconns slowstart 5400
rserver RS_VC_PROD_2
inservice
serverfarm host SF_SFA
description load balancing
predictor leastconns slowstart 5400
rserver RS_VC_PROD_1
inservice
Sticky Config:
.1
sticky http-cookie ACE-cookie SFAADMIN_COOKIE
cookie insert
timeout 480
serverfarm SF_L7_SFAAdmin
.2
sticky ip-netmask 255.255.255.255 address source SFA_IP_STICKY
timeout 480
serverfarm SF_SFA
L7 Load Balance
class-map type http loadbalance match-any CM_L7_SFAADMIN
description SFA Admin L7 Load Balancing
match http url http://SAFWeb/SFAAdmin/*
Policy Config.
policy-map type loadbalance first-match PM_LB_SFA_APP
description Load Balance Policy for SFA_WEB
class CM_L7_SFAADMIN
sticky-serverfarm SFAADMIN_COOKIE
class class-default
sticky-serverfarm SFA_IP_STICKY
policy-map multi-match PM_MULT_SFA_APP
class VIP_SFA_WEB
loadbalance vip inservice
loadbalance policy PM_LB_SFA_APP
loadbalance vip icmp-reply active
02-26-2009 06:58 AM
Your config concept is correct, howvever your url match is wrong, don't include the host portion in the url the match statement would be:
match http url SFAAdmin/*
this implies that you will have a / and at leat one character after / following
SFAAdmin
if there might be nothing after SFAAdmin you want to do:
match http url SFAAdmin.*
if you want to loadbalance on host portion you would use a match on the host header not url.
02-26-2009 08:46 AM
Hello,
Please correct me if I am wrong.
http://sfaweb/sfaadmin/report/home.aspx, http://sfaweb/sfaadmin/default.aspx or http://sfaweb/sfaadmin/sales/invoice.aspx can be accomplishing by using match http url sfadmin/* command.
Thanks,
03-09-2009 01:53 PM
Hello,
I am still having problem with ACE L7 loadbalancing. Can someone please assist?
Please correct me if I am wrong.
http://sfaweb/sfaadmin/report/home.aspx, http://sfaweb/sfaadmin/default.aspx or http://sfaweb/sfaadmin/sales/invoice.aspx can be accomplishing by using match http url sfadmin/* command.
Thanks,
03-11-2009 05:27 AM
if you use regex you should perhaps try this one to match.
http://...sfadmin(Something else or not)
If you are not familiar with regex you could do your tests with: http://www.weitz.de/regex-coach/
11-11-2009 11:06 AM
It would be:
match http url /sfaadmin/.*
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide