Solved

Load Balancer Stickiness

Posted on 2010-09-14
9
1,412 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

749 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