If you create two separate pools and place one member in each, this will work just fine providing you assign the ‘main’ pool as the default pool for the VS and disable the slow ramp time and priority group activation for each pool;
when CLIENT_DATA {
if { [active_members main_pool] != 0 } {
pool main_pool
}
else {
pool backup_pool
}
}
If Datagram LB doesn’t do it for you and you use the iRule it’ll need to be CLIENT_DATA as CLIENT_ACCEPTED is only triggered once for the ‘lifetime’ of a UDP connection, which could be quite long if the UDP profile idle-time doesn’t expire.
do you mean that LB Datagram option will instruct F5 not create connection table for UDP ?no, connection entry is created to handle return packet. anyway, load balancing decision will be made on every packet even source ip and port is same.
if you do not want bigip to create connection entry, you can set idle timeout immediate in udp profile but you have to create another virtual server to handle return packet.
Posted By What Lies Beneath on 11/28/2012 04:20 AM
If you create two separate pools and place one member in each, this will work just fine providing you assign the ‘main’ pool as the default pool for the VS and disable the slow ramp time and priority group activation for each pool;
when CLIENT_DATA { if { [active_members main_pool] != 0 } { pool main_pool } else { pool backup_pool } }
Hi steve,
We made a simple test. It seemed that the “pool” command could not work in CLIENT_DATA event, it can only work in CLIENT_ACCEPT event.
Below is irule for testing. The test was made in BIG-IP with version 11.3. Any suggestions? thx!
when CLIENT_ACCEPTED {
log local0. “CLIENT_ACCEPTED: from [IP::client_addr]:[UDP::client_port] to vip [IP::local_addr]:[UDP::local_port]”
pool Pool1
}
when CLIENT_DATA {
log local0. “CLIENT_DATA: from [IP::client_addr]:[UDP::client_port] to vip [IP::local_addr]:[UDP::local_port]”
It seemed that the “pool” command could not work in CLIENT_DATA event, it can only work in CLIENT_ACCEPT event.it is a known issue which has not been fixed yet.
ID420176 - UDP irule command pool in client_data will be no effect even in datagram_LB mode