pool¶
Description¶
Syntax¶
pool <pool_name> [member <addr> [<port>]]
pool <pool_name> [member <addr>:<port>]
#v12 change for GTM pool - add CNAME
pool [CNAME] <poolName> [member <memberName>]
Examples¶
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool my_pool
}
}
when HTTP_REQUEST {
if { [HTTP::uri] ends_with ".gif" } {
if { [LB::status pool my_Pool member 10.1.2.200 80] eq "down" } {
log "Server $ip $port down!"
pool fallback_Pool
} else {
pool my_Pool member 10.1.2.200 80
}
}
}
when HTTP_REQUEST {
if { [HTTP::uri] ends_with ".gif" } {
pool my_Pool member 10.1.2.200 80
}
}
when LB_FAILED {
pool my_Pool
LB::reselect
log "Selected server [LB::server] did not respond. Re-selecting node from myPool"
}
Comments¶
mm AT e-sport.com writes:¶
doug-brenner AT uiowa DOT edu writes on 7/12/2006:¶
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/sc/" } {
pool pool_sc
} else {
pool $default_pool
}
}
deb AT f5 DOT com writes on 10/25/2006:¶
rlandrito AT gmail DOT com writes on 8/24/2006:¶
pool <pool_name>
pool <pool_name> [member <addr> <port>]
j.calhoun AT f5 DOT com writes on 1/27/2009:¶
edh writes on 06/18/2010:¶
In 9.3.1 and 10.1, if you specify a pool with a member but no port, you actually get stuck to the selection of the last pool member in the list regardless of the pool member’s status. This means that you cannot select a pool member with any affinity to a particular IP address. What would be better would be that the member IP would act as a filter against the selection list. There are a number of use cases where that would be very useful!
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.