ACE Layer 7 Load Balancing.

Unanswered Question
Feb 25th, 2009
User Badges:

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



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
litrenta Thu, 02/26/2009 - 06:58
User Badges:
  • Cisco Employee,

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.



Actions

This Discussion