Forum Discussion
Jan 28, 2015
Hi Meshal,
what about creating two pools? Pools are using the same nodes but listen on the 2 different ports.
ltm pool pool_port_8081 {
members {
10.131.131.101:8081 {
address 10.131.131.101
}
10.131.131.102:8081 {
address 10.131.131.102
}
}
monitor http_head_f5
}
ltm pool pool_port_8082 {
members {
10.131.131.101:8082 {
address 10.131.131.101
}
10.131.131.102:8082 {
address 10.131.131.102
}
}
monitor http_head_f5
}
An iRule may solve the problem by checking the availability of pool_port_8081 first and forwards to pool_port_8082 in case there are no members available on the "primary" pool_port_8081.
when CLIENT_ACCEPTED {
two pools configured (same nodes using different ports)
if { [active_members pool_port_8081] > 0 } {
pool pool_port_8081
} else {
pool pool_port_8082
}
}
Thanks, Stephan