Forum Discussion
Exploitation_Ca
Oct 23, 2013Nimbostratus
IRULES - LB::reselect
Hello,
I want integrate this irule on my loadbalancer.
But you can say me if this irule is totaly correct?
Because I dont know how "lb::reselect" will react.
When my request arrive on my node, if...
Exploitation_Ca
Oct 30, 2013Nimbostratus
hello,
When "lb::down" command is executed. Normaly on "network map" i can see my node is down or no?
Because when my irule is active on my pool.
All request is retry and i haven't error during my load test.
But all node up on "network map". There is no down node
My new code is correcte or no?
when HTTP_REQUEST {
set poolname "TEST"
set fqdn "TEST.com"
if { [string tolower [HTTP::host]] equals $fqdn }
{
set request_headers [HTTP::request]
pool $poolname
}
}
when HTTP_RESPONSE {
set currentnode [LB::server addr]
set portnumber "80"
if { ([HTTP::status] == 500) or ([HTTP::status] == 404) or ([HTTP::status] == 503) }
{
LB::down pool $poolname member $currentnode $portnumber
HTTP::retry $request_headers
log "Server $poolname $currentnode $portnumber down!"
}
}
thank you.
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