1 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 address persistence profile: 3600 (client IP x persists to node 1 or 2 for 3600 seconds)

Pool 2: 10% of connections use

Node 3

Node 4

src address persistence profile: 1800 (client IP x persists to node 3 or 4 for 1800seconds)

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  
   }
}