Forum Discussion
F5 Load Balancer - persistence configuration requirement
Hi,
I have two servers with 6 instances of Webshpere application server on each i.e., 2 Severs and 12 instances in total and using F5 load balancer to route the traffic using Round Robin load balancing method.
Now, we have soap api calls from the client which sends some request to the load balancer and then the LB routes it the any instance as per availability. But, sometimes the session which is started on one instance, if any other call happens for the same session and it routes to different instance, the calls gets error out stating Invalid SessionID.
for this we need to maintain some form of stickyness at the Load Balancer. Request any help in form of configurations/screenshots as to how to implement stickyness at LB to maintain persistence for the session which has been started at one instance, later any request for the same session goes to that particular instance only.
Regards, Sudhanshu
- sudhanshuagrawa
Nimbostratus
One thing to add. The application on which the LB is routing the request generates a sessionID for each startSession call and the client using soap api is using this sessionID to make subsequent calls.
- Jad_Tabbara__J1
Cirrostratus
Hi,
You have many persistence profiles on the F5 if you have the LTM license.
If your clients supports cookie (example browsers) you can use "cookie" persistence profile for the "Default Persistence Profile" and then choose the "source_addr" persistence for the "Fallback Persistence Profile". Indeed, if client does not support "cookie" (example fatclient) it will use the fallback method.
In this manner you will ensure that all client traffic goes to the same node for a same session.
To configure this go to "Local Traffic ›› Virtual Servers : Virtual Server List ›› vs-name" choose the second tab "Resources" and choose "cookie" and "source_addr" for persistence profiles.
Hope it helps
Please give me a feedback
Regards
It would require you to create an irule to route the traffic depending upon the value of the session ID you are mentioning.
- sudhanshuagrawa
Nimbostratus
Hi Amy,
Thank you for the response.
Is there any way to capture this SessionID which the application is sending to the client at the Load Balancer F5 BigIPServer.
Can you suggest how to capture this value and write an iRule to implement stickyness.
Thanks & Regards
- Amresh008
Nimbostratus
It would require you to create an irule to route the traffic depending upon the value of the session ID you are mentioning.
- sudhanshuagrawa
Nimbostratus
Hi Amy,
Thank you for the response.
Is there any way to capture this SessionID which the application is sending to the client at the Load Balancer F5 BigIPServer.
Can you suggest how to capture this value and write an iRule to implement stickyness.
Thanks & Regards
- Amresh008
Nimbostratus
It would require you to create an irule to route the traffic depending upon the value of the session ID you are mentioning.
- sudhanshuagrawa
Nimbostratus
Hi Amy,
Thank you for the response.
Is there any way to capture this SessionID which the application is sending to the client at the Load Balancer F5 BigIPServer.
Can you suggest how to capture this value and write an iRule to implement stickyness.
Thanks & Regards
You would require to capture the traffic using wireshark or any other sniffer to get the session ID details. You can use the following commands on F5 to get the packet captured and analyse it using wireshark:-
tcpdump -s0 -ni 0.0:nnnp -w /var/tmp/test_app.pcap
I would suggest, first to enable cookie persistence and then check the load balancing, whether it meets your requirement or not.There are chances that it can be supported.
The persistence irule will depend upon the kind of session ID that gets generated. Let me know the format and I shall try to create one for you.
- sudhanshuagrawa
Nimbostratus
Thank you Amy. Will get back to you in case of any help.
- Amresh008
Nimbostratus
You would require to capture the traffic using wireshark or any other sniffer to get the session ID details. You can use the following commands on F5 to get the packet captured and analyse it using wireshark:-
tcpdump -s0 -ni 0.0:nnnp -w /var/tmp/test_app.pcap
I would suggest, first to enable cookie persistence and then check the load balancing, whether it meets your requirement or not.There are chances that it can be supported.
The persistence irule will depend upon the kind of session ID that gets generated. Let me know the format and I shall try to create one for you.
- sudhanshuagrawa
Nimbostratus
Thank you Amy. Will get back to you in case of any help.
- Amresh008
Nimbostratus
You would require to capture the traffic using wireshark or any other sniffer to get the session ID details. You can use the following commands on F5 to get the packet captured and analyse it using wireshark:-
tcpdump -s0 -ni 0.0:nnnp -w /var/tmp/test_app.pcap
I would suggest, first to enable cookie persistence and then check the load balancing, whether it meets your requirement or not.There are chances that it can be supported.
The persistence irule will depend upon the kind of session ID that gets generated. Let me know the format and I shall try to create one for you.
- sudhanshuagrawa
Nimbostratus
Thank you Amy. Will get back to you in case of any help.
- sharad_383485
Nimbostratus
Hi Sudhashu did this problem resolve, i am facing a similar issue using cookie persistence
Recent Discussions
Related Content
* 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