Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Alain_Demeuse_3's avatar
Alain_Demeuse_3
Icon for Nimbostratus rankNimbostratus
Mar 28, 2019

how to know on which node my request is load balanced

Hello, in irule, how to know on which node my http request is load balanced? Thanks, Alain

 

1 Reply

  • Hi Alain,

    a few techniques which I've used in the past.

    1.) Put an individual

    /node.txt
    file on each of your load balanced web servers. Request this file with your browser session, to see where you're currently load balanced to.

    2.) Add an iRule to your VS to virtualize those

    /node.txt
    requests. Request the given URI with your browser session, to see where you're currently load balanced to.

    when HTTP_REQUEST_SEND {
        clientside {
            if { [HTTP::uri] equals "/node.txt" } then {
                HTTP::respond 200 content [IP::server_addr]
            }
        }
    }
    

    3.) Add an iRule to your VS to include a VIA header to every HTTP response and use a HTTP Analyzers (e.g. Fiddler) to read those VIA headers.

    when HTTP_RESPONSE {
        HTTP::header insert "VIA" "[IP::server_addr]"
    }
    

    4.) Combine all together... πŸ˜‰

    Cheers, Kai