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

advanced-balance and weighting

aolabisi
Level 1
Level 1

Hello,

I'd like to assign weights to services, but it says in the documentation that this works for weighted round-robin load-balance algorithm. will this work for an advance-balance scenario? i.e. will the config below work?

content Serv1-Rule

add service Serv-1

add service Serv-2 weight 2

add service Serv-3 weight 4

protocol tcp

redundant-index 1

port 80

advanced-balance arrowpoint-cookie

vip address 12.18.27.20

active

thanks,

dayo

2 Replies 2

Gilles Dufour
Cisco Employee
Cisco Employee

the way it works, is that the CSS tries to do an advanced-balance decision.

In your case, the CSS looks for a cookie ARPT=...

If this CSS can't make an advanced-balance decision (ie: there is no cookie) it will make a basic balancing decision.

This is where you can use a weight.

So, your config is good except that you didn't specify the basic loadbalancing method so the CSS will do roundrobin.

You need to configure something like 'balance weightedrr'

Gilles.

thanks Gilles. just so I'm clear, you're suggesting I have the following config?

content Serv1-Rule

add service Serv-1

add service Serv-2 weight 2

add service Serv-3 weight 4

protocol tcp

redundant-index 1

port 80

balance weightedrr

advanced-balance arrowpoint-cookie

vip address 12.18.27.20

active