Solved

Round Robin DNS and Session Cookies- Will this work on a web server?

Posted on 2009-06-29
4
1,060 Views
Last Modified: 2013-12-14
Hi there,

We are looking for a simple way to add redundancy to a web app.
We are concerned about session cookies.

If we just put each server on a round robin DNS service, will that be sufficient at least for our beta release or will session cookies be a big issue?

I'm guessing that the user caches the DNS of the server and in such a case I would expect that problems are rare. But I could imagine that when they are on the site for over 15 minutes (assuming the DNS refresh is set to 15 minutes) then it will cause big problems.

IDEALLY: Is there a round robin DNS service that is designed for failover and will always redirect the same IP to the same server?

As a work-around, we are thinking: Since we have a centralized database, we centrally save all session data. Then, when a user without a session cookie is found, we check if it exists and log them in.
0
Comment
Question by:the_cyman
4 Comments
 
LVL 16

Accepted Solution

by:
Bruno PACI earned 500 total points
ID: 24737448
Hi,

In the Microsoft world what you're looking for is called NLB cluster (Network Load Balancing). That's the way I would reach the goal if the Web servers are Miscrosoft IIS servers.

I don't know much about non-microsoft worl but surely DNS round robin will not do the job because when you DNS client cache expires you could be routed to a web server that doesn't know anything about you current session (except if you have a process inside your application that can replicate session contexte between web servers).

When you configure NBL cluster you can do thing so that one client IP address will always be routed to one NLB cluster node.

Have a nice day
0
 
LVL 19

Expert Comment

by:bevhost
ID: 24742260
If the cookie session data is stored in a central database, I don't see how it matters which front end server processes each of the http: requests?

You can use BIND 9 DNS server to always hand the same IPs out to selected clients but that's not really round robin.
0
 
LVL 1

Expert Comment

by:Colin_A_Moulder
ID: 24743232
What I would use is Microsoft NLB and Distributed File System to point towards a central depository of web files that can also be updated concurrently.
As for session cookies, it is not an issue because you will be contacting the websites via the NLB cluster address and using host headers.
 
0
 

Author Comment

by:the_cyman
ID: 24817743
Great, thanks guys. Looks like there are services like this one:
http://www.autofailover.com/
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Steve Terp was featured in a video created by CRN about how "Channel Is Crucial To Market Disruption". Click on View source to see the video and article
Learn how the use of a bunch of disparate tools requiring a lot of manual attention led to a series of unfortunate backup events for one company.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

856 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