Forum Discussion
misya_62197
Nimbostratus
16 years agoPersist Hash CARP with Ratio or weight
I've already implement persist hash carp, but the new proxy pool members have different performance. Can LTM do hash carp with ratio applied to members? I tried set ratio number in pools but traffic s...
Nat_Thirasuttakorn
Employee
15 years agonot sure if it is a good idea but I think you can try something like
- adding ip alias on servers. for example if you want to double traffic on new server, you may add 1 more IP (or port) and add that as new member. so your pool configuration may look like
pool x member {
1.1.1.1:80
1.1.1.2:80
1.1.1.3:80
1.1.1.3:81
}
i think disadvantage of this method is it may not good if you need ratio like 8:9
.
- another idea is to have a fake pool member ip and reselect it to the right one in LB_SELECTED (or LB_FAILED)
let say, you have only 2 server 1.1.1.1 and 1.1.1.2, you may add 2 more fake ip to archive 3:1 ratio
pool x member {
1.1.1.1:80
1.1.1.2:80
1.101.1.1:82 (fake ip)
1.101.1.1:83 (fake ip)
}
then in LB_SELECTED, reselect it to actual one
if { [LB::server addr] eq "1.101.1.1" } {
LB::reselect pool x member 1.1.1.1:80
}
these ideas are not tested.
Nat