Forum Discussion
Tim_90553
Nimbostratus
Jun 04, 2009Which pool is used?
I found this example on using LB::select. I want to know how does the system know which pool from which to pick a member?
when HTTP_REQUEST {
log local0. "lbserveraddr: [LB::server addr]"
check if serverside connection had previously been established
if { [LB::server addr] eq "" }{
if no serverside connection had previously been established, force one
so the iRule has the info required to insert a destination-specific header
eval [LB::select]
}
switch [LB::server addr] {
"172.16.5.80" { HTTP::header replace Host www1.customer.com }
"172.16.5.81" { HTTP::header replace Host www2.customer.com }
"172.16.5.82" { HTTP::header replace Host www3.customer.com }
}
}
- AndrewO_4840
Nimbostratus
Presumably since the rule doesn't define the pool to use, the connection is load balanced from the default pool defined for the virtual.
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