Forum Discussion
dlg_23340
Mar 13, 2012Cirrus
LB::select hangs
With the following irule, LB::select hangs sometimes. Sometimes this works, sometimes it doesn't, and I don't know why.
when HTTP_REQUEST {
pool pool1
log local0. " starting"
log local0. " [L...
satya07hyd_8175
Nimbostratus
what was the worked around? I'm getting similar issue, but its has intermittently.
about 75% of the requests hangs.
satya07hyd_8175
Jun 09, 2014Nimbostratus
but in my irule i use LB::select to generate a token , which will be further used to persist connection
ltm rule myirule {
when HTTP_REQUEST {
pool my-host-pool
if {[HTTP::header exists LB-TOKEN]}{
set sid [HTTP::header value "LB-TOKEN"]
log local0. "sid = $sid"
if { $sid = "null" }{
log local0. "SID NULL !"
set hex_sid ""
scan [LB::select] %s%s%s%s%d command current_pool command2 current_member current_port
scan [ split $current_member "." ] "%d%d%d%d" ip1 ip2 ip3 ip4
set ip3_hex [format "%02x" $ip3]
set ip4_hex [format "%02x" $ip4]
set port_hex [format "%04x" $current_port]
append hex_sid $ip3_hex $ip4_hex $port_hex
log local0. "hex_sid = $hex_sid , modifying header"
HTTP::header replace "LB-TOKEN" $hex_sid
log local0. "header_sid_value = [HTTP::header value LB-TOKEN] $current_member $current_port"
pool $pool_name member $current_member $current_port
} else {
persist uie $sid
}
}
}
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