Forum Discussion
Kiyoshi_kobayas
Nimbostratus
Nov 12, 2014iRule load balancing redirect with a pool
I'd like to make an iRule that works as load balancing redirect with a pool.
This pool works fine when the virtual server without any iRule. But this iRule gets error at line 4 { arra set ...}.
Thi...
shaggy_121467
Cumulonimbus
Nov 12, 2014i'm intrigued by your LB-method logic - [$::Counter1 % $cc]
i have a similar iRule in which i use LB::select in HTTP_REQUEST to select a member from a pool and compose my redirect with that result:
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 404 "No servers" noserver
} else {
set sel_mem [LB::select]
HTTP::redirect "http://[getfield $sel_mem " " 4]:[getfield $sel_mem " " 5][HTTP::uri]"
- Kiyoshi_kobayasNov 13, 2014
Nimbostratus
Thanks! This irule works fine.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
