ACE URL based Loadbalance

Answered Question
Jun 21st, 2008
User Badges:

hi my name yunchouljung in korea


i have a question about ACE module.

i want to use URL based Cache Redirection

ACE must redirect only a .GIF and .JPG Image file to Cache Server.

But Cache Server Cached a .PNG, .swf, and so on in a cache server log

SO i asked that any other missed configuration blow.

reqular expression or any other.


and in congiguration .*.gif "*" is a asterisk is right?

my configuration is below.


class-map type http loadbalance match-any L7SLBCLASS

2 match http url .*\.gif

3 match http url .*.gif

4 match http url .*[.]gif

policy-map type loadbalance first-match L7SLBPOLICY

class L7SLBCLASS

serverfarm Cache_FARM backup BYPASS

class class-default

forward

policy-map multi-match L7SLB_POLICY

class WEB

loadbalance vip inservice

loadbalance policy L7SLBPOLICY

interface vlan 80

description Client_LAN

ip address 192.168.80.1 255.255.255.0

no icmp-guard

access-group input PERMIT_ALL

access-group output PERMIT_ALL

service-policy input MGMT

service-policy input L7SLB_POLICY

no shutdown



Correct Answer by Gilles Dufour about 9 years 3 days ago

the regular expression is ok.

The problem is that by default persistence rebalance is turned off on ACE.

Since a TCP connection contains multiple HTTP requests and by default only the first one is used to decide where to forward the traffic, you can get any type of requests going to your caches.


The solution is to enable persistence rebalance with a parameter-map.


parameter-map type http HTTP-PARAM

persistence-rebalance


Then apply this parameter-map to your multimatch policy.


Gilles.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Gilles Dufour Sun, 06/22/2008 - 21:57
User Badges:
  • Cisco Employee,

the regular expression is ok.

The problem is that by default persistence rebalance is turned off on ACE.

Since a TCP connection contains multiple HTTP requests and by default only the first one is used to decide where to forward the traffic, you can get any type of requests going to your caches.


The solution is to enable persistence rebalance with a parameter-map.


parameter-map type http HTTP-PARAM

persistence-rebalance


Then apply this parameter-map to your multimatch policy.


Gilles.

Actions

This Discussion