locked
iis 7 Load balancing RRS feed

  • Question

  • User1764045043 posted

    Hello IIS team.

     <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    My name is Wayne A Lambright; I run three somewhat popular sites. http://UsedMotorHome.com Http://ImageDeposit.com & http://sfsurvey.com   All programmed in ASP Classic using sql server 2000.  You should hear the ribbing I get from my Linux/php friends, but what they don’t know is that for the most part, my sites have worked flawlessly for nearly five years now.  I have been thinking about the future as traffic grows my server load is ever increasing and I need the ability to Load balance.

     <o:p></o:p>

    In my words load balancing means that I just ad more server running [windows 2003 server enterprise] and it will just share the load.

     <o:p></o:p>

    Will this new version of iis be able to load balance a site programmed in asp classic?  

     <o:p></o:p>

    My understanding of dot net is that you can choose to deploy on the windows server enterprise, which allows the ability to load balance, but it will not load balance for sites programmed in ASP classic.  In this new version of iis will it load balance ASP classic?
    Thursday, May 25, 2006 11:33 AM

All replies

  • User989702501 posted
    Sorry, but I don't quite get you. when you said load balancing - you are referring to NLB, right? If yes, this is pure network layer protocol which does not really care about the application, and I have NLB that running huge asp application for years.
    Thursday, May 25, 2006 11:46 PM
  • User-2026410440 posted
    Hi Wayne!

    Glad you're having such great success with IIS / ASP.  Don't let those Linux/PHP "friends" get to you.  They don't know what they're missing. :)

    You can definetly load balance IIS6 (and IIS5 for that matter) running on Windows 2000.  All editions of Windows 2003 come with NLB - network load balancing - which is the ability for Windows to act as a simple load balancer and share the load of incoming traffic across machines.  This is a low cost way to scale-out your application as demand grows.

    One thing to consider, however, is what to do with any application / session state.  Classic ASP stores session state in memory that only one process can access.  As soon as you scale the sites onto more than one machine, you can no longer guarantee that each incoming request for a particular user session is landing on the same machine, which means the client may suddenly 'lose state' between requests.  This is why we recommend that you not use the built-in session support in ASP for these kinds of scenario.  Instead we recommend you use SQL or another database to store this kind of data. 

    ASP.NET has more sophisticated ways for dealing with state.  If you are ready to move your applications to ASP.NET, just do a search for "asp.net session state" in your favorite search engine, and you'll find lots of info, or ask around in the forums.asp.net. 

    With regards to session state - both for classic ASP and ASP.NET, there are no changes in IIS7, so whatever you do today on IIS6 will continue to work just fine.


    Best of luck!


    bill
    Thursday, May 25, 2006 11:51 PM
  • User-823196590 posted
    Are you doing any file upload in your apps?  If so, you'll have to consider how you handle file storage or replication.
    Friday, May 26, 2006 9:05 AM
  • User1001868398 posted

    I love that people are talking about Load Balancing. I have tried everything to make my application to load balance with a few computers. I had many problems using NBL, DNS balancing, or Cisco balancing, so I had to build my own. The main problem is to keep the session state between servers, when a user was not using "sticky IP" will move from a computer to another and lose the session. I follow all rules from Microsoft to avoid this problem without any sucess:

    http://alpascual.com/blog/al/archive/2006/04/14/148.aspx

    After a few tries and many nightmares, got to write my own using a normal redirect like http://www1.domain.com so I can redictect changing the number. Of course this is not how I would like to set it up as if the bookmark the address they'll always go to the same computer :-(

    Now with IIS7 they may be a different easier way to do the work.

    Cheers

    Al

    Friday, May 26, 2006 2:04 PM
  • User1001868398 posted

    Bill,

     

    Thanks for your links, I started working on a new Load Balancer for IIS7.

    http://alpascual.com/blog/al/archive/2006/05/26/179.aspx

    I would like you know how it goes.

    Cheers

    Al

    Friday, May 26, 2006 3:48 PM
  • User1365816255 posted

    Hey,

    I thought I would go ahead and add as well that we deal a webcast in the IIS Webcast Series on using Microsoft's NLB in 2K3.  In fact, we discussed how session state is a challenge in these environments and showed ho to successfully use ASP.NET's session state service.  This might be intersting to you.

    Here is the direct link

    Thanks,

    Chris

    Friday, May 26, 2006 11:28 PM
  • User-823196590 posted
    Can't follow your link ... SQL Server does not exist or access denied ...
    Tuesday, May 30, 2006 8:07 AM
  • User1764045043 posted

    Hi Bill, thanks for the feedback.

     <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    This is fantastic news; I’ll have to investigate maintaining sate with the sql server.   The fact I can load balance with all editions of windows 2003 is also great news. 

     <o:p></o:p>

    If you know of any out of the box solutions to do this with the sql server please pass along a link.

     <o:p></o:p>

    I want to say thanks to Bill and all the others that posted to this thread, you might not realize the positive change you created by your responses to this question [load balancing] You have forever changed my business in a positive way.  
    Tuesday, May 30, 2006 10:16 AM
  • User-2026410440 posted

    Bill,

     

    Thanks for your links, I started working on a new Load Balancer for IIS7.

    http://alpascual.com/blog/al/archive/2006/05/26/179.aspx

    I would like you know how it goes.

    Cheers

    Al

     

    Albert, this is awesome!  I can't wait to see how it goes!  Be sure and let me know if there is anything we can do to help.

    Tuesday, May 30, 2006 1:09 PM
  • User1001868398 posted

    Bill,

    I have released the source code for the component.

    http://alpascual.com/blog/al/archive/2006/07/23/232.aspx

    Check it out

    Thanks

    Al

    Thursday, July 27, 2006 2:08 PM
  • User-2026410440 posted

    very cool!  thanks for sharing your work with the community!  later this year we hope to be able to provide a portal on iis.net for these type of modules to make it even easier for the community to find solutions. 

    thanks again for building such a great module for IIS7!

    bill

    Sunday, July 30, 2006 12:32 PM
  • User-823196590 posted

    Yes, wonderful.

    Have you also posted this in an appropriate IIS 7 forum?

    Monday, July 31, 2006 8:16 AM
  • User1001868398 posted

    Fantastic, let me know when that happens.

    Cheers

    Al

    Monday, July 31, 2006 10:43 AM
  • User1001868398 posted

    http://alpascual.com/files/folders/sample_files/entry248.aspx

    Sorry about that, I changed the hosting company and I lost quite a lot, find it on the above link

    Thursday, November 2, 2006 11:39 AM