Forum Discussion
Born_7758
Nimbostratus
Aug 16, 2011Receiving 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
- Michael_Yates
Nimbostratus
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? - Born_7758
Nimbostratus
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. - Michael_Yates
Nimbostratus
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. - Born_7758
Nimbostratus
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. - Born_7758
Nimbostratus
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? - Michael_Yates
Nimbostratus
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_12Historic F5 AccountWhen 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
Colin - Born_7758
Nimbostratus
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 local0.info "Client: $client -> VIP:$vip$url -> Node: $node with response $nodeResp"
}
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
