cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
465
Views
0
Helpful
2
Replies

css url balancing

peter
Level 1
Level 1

Hello,

I'm setting up an CSS to balance http traffic. So far I've got the following setup working:

!*************************** OWNER ***************************
owner CUST

  content WEBAPP
    advanced-balance arrowpoint-cookie
    add service APP01
    add service APP10
    vip address 192.168.1.100
    protocol tcp
    port 8080
    add service APP11
    add service APP02
    add service APP03
    add service APP04
    add service APP05
    add service APP06
    add service APP09
    add service APP07
    active

Now it's just balancing anything hitting tcp/8080 and balancing it on the WEBAPP hosts. There is a need to balance some URL's to other rservers. Here is what I came up with:

!**************************** URQL ****************************
urql TEST
   url 10
   url 10 url "/app/servlet?config=ard1234x"
   domain "192.168.1.100"
   active

!*************************** OWNER ***************************

  content WEBAPPTEST
     balance weightedrr
     advanced-balance arrowpoint-cookie
     add service APP02
     add service APP03
     add service APP04
     vip address 192.168.1.100
     protocol tcp
     port 8080
     url urql TEST

What I am not able to figure out is how I can make sure that just this URL "/app/servlet?config=ard1234x" gets balanced to APP02, APP03, APP04 and the rest of the traffic to the servers in content WEBAPP. Should I make an URQL with a wildcard url? I also think I need to somehow insert mynew WEBAPPTEST content before WEBAPP otherwise it will never hit. Am I right? I'm not in a position where I can just keep fooling around till it works unfortunately...

Any help is welcome!

Gr,

Peter

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

The CSS stops parsing url at the "?".

So matching with urql or url command won't work and I'm not sure if there is any solution with the CSS.

The ACE appliance does allow you to match after the question mark.

Gilles.

That's an easy answer. Thanks a lot! Really helpful! I know that the ACE can do it. We're also using ACE's in a different setup but here we're stuck with a pair of CSS's

The easiest solution right now is to have the customer who we want balanced over the other server is going to be using a different VIP. Then we can just do it as we do now by just balancing everything hitting on tcp/8080.