Solved

Load Balancer Stickiness

Posted on 2010-09-14
9
1,408 Views
Last Modified: 2012-05-10
Hi Experts,

There is some debate at our office whether the persistent profile rule we've set up within our F5 load balancer is working.

I would please like to know how can test that session stickiness is either working or not working.

I have found this article: http://www.testingreflections.com/node/view/4041

Are there any other tests we can use to settle the debate?

Thanks in advance!
0
Comment
Question by:JFranks22
  • 5
  • 4
9 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 33675990
What persistent profile did you use?

If it is a iRule please post the iRule also.
0
 

Author Comment

by:JFranks22
ID: 33676039
Is this information stored in the logs? Can you verify how to locate this?
0
 
LVL 57

Expert Comment

by:giltjr
ID: 33676090
Um, no.  Do you have admin access to the F5?  

If you don't then you need to get the admins involved.

 
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:JFranks22
ID: 33676376
Hi quiltjr,
Thanks for weighing in.
My load balancer admin has unfortunately just left - I know he was trying the various Persistence Profiles.
The question we have is more of a general question. For any load balancer (F5 or other), how would you go about testing that a persistent profile rule is working?
Surely you don'y want to go live with an application that relies on persistent sessions without first testing that the sessions are sticky - "How" is the question?
 
 
0
 
LVL 57

Expert Comment

by:giltjr
ID: 33676515
The answer really depends.   There are various ways to do session stickiness, called persistence in the F5.

Typically if you require session stickiness you will get errors in the application when they clients get routed to the incorrect server.  So when you are doing your testing, are you getting errors because you are being routed to the wrong back-end server?


0
 

Author Comment

by:JFranks22
ID: 33677152
Ok, let's assume we do have Admin access to F5 (which we do).
Would you please explain how we could verify that the "Cookie Persistence using the HTTP Cookie Insert method" for example was maintaining persistent state.
 
 
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 33678229
The easiest way is to run a packet trace or use Fiddler2 from the client and verify that the cookie always has the same value.

You could also run tcpdump on the F5 on both the inside (server side) and outside (client side) interfaces and verify that the session continues to send the requests to the same host.
0
 

Author Closing Comment

by:JFranks22
ID: 33682893
Thank you!
0
 
LVL 57

Expert Comment

by:giltjr
ID: 33684398
Thanks.

You could code an iRule that logs the value of the cookie on HTTP_REQUESTS and the logs the IP address of the server that is responding on HTTP_RESPOND events.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question