CSS - add service x.x.x.x weight command

Unanswered Question
Apr 3rd, 2007
User Badges:

Hi, From the Cisco pages I read the following

"The CSS uses the weight for a service when you configure weighted roundrobin load balancing on the content rule. When you assign a higher weight to the service, the CSS redirects more requests to the service."

This suggests to me a server with a weight of 2 will receive twice as much hits as one with a weight of 1.

We have this configuration but the customer sees the server with a weight of 1 getting more hits, this is backed up by the show summary stats on the CSS.

content www.abc.com

vip address

port 443

protocol tcp

advanced-balance sticky-srcip

sticky-inact-timeout 31

add service

add service weight 2

add service weight 2

add service weight 2

add service weight 2

add service weight 2

add service weight 2

balance weightedrr




Service Hits 2784623 2868285 2688701 2763660 5105735 2634987 2733737



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gilles Dufour Tue, 04/03/2007 - 04:11
User Badges:
  • Cisco Employee,


the sticky function will overpass the weighted roundrobin.

So, if the first user open 1 connections with server 1 and the 2nd user open 10 connections with server 2, you will see unequal load on your servers.

This is due to stickyness.


daifous_04 Wed, 04/04/2007 - 00:22
User Badges:

Hi gdufour,

I have the same situation, weightedrr + L3-sticky. if the range is 0 to 10, does it mean 2 weighted more than 1? but however users stick to service with weight 1 tend to open more connections than users stick to service with weight 2, so problem mentioned arise, is that the cause?

I'm still confusing on how to calculate this.


Hao Dai.

michael.e.reid Wed, 04/04/2007 - 00:44
User Badges:


I can't really believe this is the cause, prior to configuring the weights the hits on the box were almost identical (+/- 5%).

Now the server with weight of 1, is almost 50% more than all the other 6 servers, if stickyness was the cause then each of the 7 servers would have differing hits, 6 of the servers are extremely close in hits.

The nature of this application would not cause the a user to open one connection, and another to open 10.



daifous_04 Wed, 04/04/2007 - 18:40
User Badges:

Hi Mike,

I consulted Cisco SE and TAC engineer, they confirmed that higher weight number brings more conns to service. When changing the sticky-mask, it seems to me the sticky-table is updated instantly and conns lay on services by the ratio it meant to be. It works for me on production network anyway, maybe you want to try it if you've got a lab environment.


Hao Dai


This Discussion