Forum Discussion

Born_7758's avatar
Icon for Nimbostratus rankNimbostratus
Aug 16, 2011

Receiving two consecutive responses

Hello all,



Can someone please help understand what I need to do in this situation:




I want to send a request and I should receive two postbacks. The only problem is that I am only getting one of the post backs. If I want to get two postbacks to the same server do I need a source address persistence profile or do I need something else?










8 Replies

  • If you are dealing with postbacks then you should already have some type of persistence to insure that you are communicating to the same server with a stateful application.



    What is your current LTM configuration for this application?
  • I have 3 nodes in one pool. I have an iRule that modifies the URI and sends the request to the server based off of what the URI is.
  • OK. Makes sense so far.



    What about the configured Persistence on the Virtual Server?



    As long as you have some type of server persistence configured you should not be having the issue that you are describing.
  • There wasn't a persistence profile configured. I am going to try using a source address persistence profile and see if that'll fix my problem.
  • Is there a way to log all traffic going through the Load balancer? Or do I have to specify what I would like to be logged by using the log local command?
  • Using the log command is one option (probably the easiest without having to sort through extra information).



    The other option is to use a TCPDump.
  • Colin_Walker_12's avatar
    Historic F5 Account
    When you say "all traffic going through ..." do you mean all the HTTP requests and responses? That's definitely doable via the log command. I'd check out something like: Click Here



  • I found this iRule on another post for logging. Can someone break it down for me in laymen's terms?



    when HTTP_REQUEST {


    set the URL here, log it on the response


    set url [HTTP::header Host][HTTP::uri]


    set vip [IP::local_addr]:[TCP::local_port]





    when HTTP_RESPONSE {


    set client [IP::client_addr]:[TCP::client_port]


    set node [IP::server_addr]:[TCP::server_port]


    set nodeResp [HTTP::status]



    log connection info


    log "Client: $client -> VIP:$vip$url -> Node: $node with response $nodeResp"