cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
636
Views
5
Helpful
5
Replies

ACE Layer 7 Load Balancing.

allen.malanda_2
Level 1
Level 1

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

5 Replies 5

litrenta
Level 3
Level 3

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.

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,

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,

if you use regex you should perhaps try this one to match.

http://sfaweb/sfaadmin?(.*)

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/

It would be:

match http url /sfaadmin/.*

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: