Avatar of jasonslogan
jasonslogan

asked on 

Load balancer session timeout

Is there a downside to making a load balancer hold a session for a connected computer for an hour?  The only thing I can think of is if the web server they are connected to for that time fails they lose their session and have to log in again because they would be connected to a different web server after that.

I've tried storing the sessions in a db and in a shared folder and neither are great solutions.  DB server gets overloaded with requests and very occasionally the data doesn't replicate fast enough to the other db servers. The file sharing sometimes doesn't work either.  Not sure why but it was quirky so I quit.
Hardware FirewallsRouters

Avatar of undefined
Last Comment
the_endjinn
ASKER CERTIFIED SOLUTION
Avatar of the_endjinn
the_endjinn
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jasonslogan
jasonslogan

ASKER

Do load balancers have a way to retain the session if a web server fails?
Avatar of the_endjinn
the_endjinn
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't believe that is possible as the session info is against the web application, although I guess that depends on what web server you are running as some can be set up as distributed services. It's possible some of the top end application and content aware load balancers can manage session info. You may need to re-engineer the site code with this in mind however.
Routers
Routers

A router is a networking device that forwards data packets between computer networks. Routers perform the "traffic directing" functions on the Internet. The most familiar type of routers are home and small office cable or DSL routers that simply pass data, such as web pages, email, IM, and videos between computers and the Internet. More sophisticated routers, such as enterprise routers, connect large business or ISP networks up to the powerful core routers that forward data at high speed along the optical fiber lines of the Internet backbone. Though routers are typically dedicated hardware devices, use of software-based routers has grown increasingly common.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo