Solved

Load balancing ASP.NET WIndows 2003 while preserving session state.

Posted on 2008-10-22
4
1,327 Views
Last Modified: 2013-12-02
I have an interesting question.

We recently setup a web farm using 2 web servers and 1 database server on a Zeus shared load balancer using round robin traffic shaping. Our sessions are stored via cookie on the user's local machine. The problem we're running into is, given that the load balancer treats HTTP and HTTPS as separate requests, sometimes a user may start at one machine, and end up at the second machine when they call up an HTTPS page, or vice versa.

I know the best option is to store session data in the database to avoid the issues with HTTP/HTTPS, but are there any other options? For example, would Windows NLB solution be a viable option to preserve session state, or are there other load balancers that can do some form of cookie based load balancing, or..

Essentially, I'm trying to determine if there's an option to properly load balance 2 Windows Server 2003 Standard web servers while avoiding the issues caused with changing servers during HTTP/HTTPS switchovers, etc.

If that makes sense.
0
Comment
Question by:jmoriarty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 51

Assisted Solution

by:Ted Bouskill
Ted Bouskill earned 150 total points
ID: 22792916
Round robin is not a good solution.  Other than the problems you are having there is also an issue that if you need to reboot one server (to install an update) there is issues as well.

With Windows NLB you can create sticky sessions using Affinity.  You don't have to change anything in your application and it 'Works'!
0
 
LVL 3

Assisted Solution

by:mickdoc
mickdoc earned 150 total points
ID: 22797022
Windows Load Balancing is your best bet then.

By default your affinity (stickiness for another word) is set to "Single" (default setting). This means that your subnet that you are connecting from will always (well, pretty much always) hit the same webserver in the cluster unless that server is out for some reason.

This will allow your session state to stay on the one server.
0
 

Accepted Solution

by:
CarlosAfonso earned 200 total points
ID: 22914529
Windows Load Balance can be your best solution, but it have some limitations, it works only when all servers are on the same subnet (same mask) you ill set a VIP (virtual IP) then your DNS points only to the VIP.

If I whant to load balance beteen 2 or more datacenters for geographic and network redundancy, Windows load Balance do not solve my problem.

Then DNS round robin and ASP.NET session server or SQL session managemnt will be the right solution for your web application.
0
 

Author Comment

by:jmoriarty
ID: 23009171
Thank you for all the responses. We're just going to end up going the database session route I think, that seems to have the best long term redundancy/capability.

Thanks!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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