Forum Discussion

amolari's avatar
amolari
Icon for Cirrus rankCirrus
Jun 05, 2014

LB::reselect sometimes not reselecting

Hi I have such irule part

when LB_FAILED { 
        log local0. "LB Failed [LB::server]" 
        LB::reselect pool Pool-SecGW-crypt 
        log local0. "LB FAILED. Pool member $PoolMember re-selected = [LB::server]"         
        table set -subtable "Source_Map" $ClientIP "[LB::server]" 1200 
} 

when a poolmember goes down, sometimes it works (my LB::server value is showing new poolmember IP), sometimes not (no IP).

I read in the LB::reselect documentation (old, for v9.x) the following "Note that the reselect may not happen immediately; it may wait until the current iRule event is completely finished executing."

Any workaround to have it selected immediately (v11.x)? Thanks Alexandre

2 Replies

  • when a poolmember goes down, sometimes it works (my LB::server value is showing new poolmember IP), sometimes not (no IP).

     

    when no ip, does it not work indeed (e.g. connection is resetted)? or is it only cosmetic?

     

    if it does not work, i think it may not be about the note you mentioned. can you try to call LB::reselect again if LB::server returns null?

     

  • it's not working means,

    log local0. "LB FAILED. Pool member $PoolMember re-selected = [LB::server]"
    shows
    : LB FAILED. Pool member 172.18.136.60 re-selected = /Common/Pool-SecGW-crypt 0
    where it should be
    /Common/Pool-SecGW-crypt  0