Forum Discussion
iRule to verify node is member of pool and passing the pools health check
- Sep 09, 2019
when SERVER_CONNECTED {
set TargetNode [table lookup tbltst[TCP::local_port]]
set ActiveNode [active_members -list test-pool]
if {$TargetNode eq "" } {
return
}
if {$ActiveNode contains $TargetNode } {
node $TargetNode
}
}
How is this table updated, and why isn't a health monitor good enough?
when SERVER_CONNECTED {
table set "tbltest[TCP::remote_port]" [IP::remote_addr] indefinite
}
If there is already an entry from the last successful connection, the rule skips the health monitor on the pool. I'd like the rule to double check that the server is healthy and in the pool.
Recent Discussions
Related Content
* 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