Forum Discussion
jaikumar_f5
Jan 08, 2021MVP
Mmm, haven't tested it, try this logic & let us know,
where, 90_pool will have your node 1 & 2, & 10_pool will have node 3 & 4.
Using the random operator & multiplying it with 100, so we can get a whole number ranging 1 - 100.
Its same like ratio load balancing. But not exactly. But I hope the results would be similar.
when CLIENT_ACCEPTED {
set random [expr int(rand()*100)]
if { $random > 10 } {
pool 90_pool
persist source_addr 255.255.255.255 3600
} else {
pool 10_pool
persist source_addr 255.255.255.255 1800
}
}