Forum Discussion
Chris1269
Nimbostratus
Jan 07, 20211 FastL4 VIP, 2 pools, ratio loadbalancing and 2 src persist profiles.
Hi all, I would like to know if this is possible as I can't see a clean way of doing it. What we need: 1 FastL4 VIP Pool 1: 90% of connections use Node 1 Node 2 src a...
jaikumar_f5
Noctilucent
Jan 08, 2021Mmm, 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
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects