Solved

Load Balancer Stickiness

Posted on 2010-09-14
9
1,400 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
 

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now