Forum Discussion

paulpatriot_129's avatar
paulpatriot_129
Icon for Nimbostratus rankNimbostratus
Aug 24, 2017

irule sending to wrong pool when should be going to default pool defined in GUI

I have a question we currently have an irule to forward specific traffic to a pool of servers and then the GUI set to another pool. The problem were seeing is intermittently traffic is going to the irule pool when it should be hitting the defined GUI default pool. We are running version 12.1.2 is there a known bug with this version?

 

5 Replies

  • Here is the irule we applied: when HTTP_REQUEST { if { ( [HTTP::uri] starts_with "/test1/" ) or ( [HTTP::uri] starts_with "/tester2/") or ( [HTTP::uri] starts_with "/tester3/") } { use pool test_pool } }

     

    Everything else should default to the defined default GUI Pool

     

  • We aren't running Oneconnect are you suggesting we should be running this on all VIP's utilizing irules?

     

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    It will help with your specific requirement. If you set the mask to 255.255.255.255 then you should be fine.

     

  • Hi Paul,

    you may turn on OneConnect on your Virtual Server to enable per HTTP-Request balancings and automatic failbacks to the default pool after each single request (as already explained by Nathan).

    If OneConnect is not suitable for your environment/application, then you could specify the default_pool within an

    } else {
    clause...

    when HTTP_REQUEST {
        if { ( [HTTP::uri] starts_with "/test1/" )
          or ( [HTTP::uri] starts_with "/tester2/" )
          or ( [HTTP::uri] starts_with "/tester3/" ) } then {
            pool test_pool
        } else {
            pool default_pool
        }
    }
    

    Note: For further reading on this topic you may check out K9800 [click me]

    Note: If you've already enabled OneConnect and running BIG-IP 11.5.3 HF2, and 12.0.0 through 12.0.0 HF3, them you may be a victim of OneConnect related bug [click me]

    Cheers, Kai