Load Balancing in ASP
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17128
Printed Date: 29 March 2026 at 5:15pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Load Balancing in ASP
Posted By: PrivateEye
Subject: Load Balancing in ASP
Date Posted: 03 November 2005 at 7:10am
I am going to develop an ASP application with IIS and MS SQL Server
2000. I have my own servers including web server, database server etc.
My website is expecting 10,000 continuous active hits on web server for
4 hours. I want to discuss that how I can design the application so
that the website may not be down at any time. Suggestions at ASP, IIS,
and MS SQL Server level are required. Also if I should install any
other server software?
------------- The Judgement Day
|
Replies:
Posted By: Gullanian
Date Posted: 03 November 2005 at 9:37am
Easiest solution would be just to have a big really fancy server.
As for load balancing with ASP I'm not really sure how. As long
as your code is efficiently written and the server is good enough there
shouldn't be any problems. The things I think help with
optimisation most in ASP are:
1) Most important thing is to always remember to close
connections and drop objects after use, otherwise they hang around in
memory and the server can crash/slow down a lot.
2) When looping through large sets of data, use rs.getRows.
Speeds up some pages by 5 seconds. Good practise to use as much
as you can
3) Debugger, make sure Option Explicit is on each page. Also you
would probably want the buffer set so that it processes the page before
feeding anything out.
4) ASP breaks (as in the <% and %>) slow down code a bit.
ASP optimisation has been written about extensivly, check google for more tips.
|
Posted By: PrivateEye
Date Posted: 03 November 2005 at 10:11am
Thanx and what about the Microsoft Transaction Server, is it a best
practise to use under circumstances I mentioned above? I am studying
its reference material on Microsoft website about building COM based
objects. Am I going on right track?
------------- The Judgement Day
|
Posted By: dpyers
Date Posted: 03 November 2005 at 7:30pm
Most load balancing is done through network "appliances" - hardware
that communicates with an agent on the server that's monitoring
performance. The network hardware then routes requests to the least
busy server and monitors session state so all requests for that session
go to the same server. Often you have to include additional session
handling code though just in case the hardware screws up a session.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: PrivateEye
Date Posted: 04 November 2005 at 10:20am
ahan good, pls can anyone give me possible network diagram so that I can identify hardware which I may purchase.
------------- The Judgement Day
|
Posted By: michael
Date Posted: 04 November 2005 at 2:49pm
A simple solution would be 2+ Servers, installed with Windows Server 2003 Enterprise Edition and enable load balancing with failover. Then you essentially have a IIS Server Farm and you need to make sure how you code your asp trying to avoid session object because they may get lost when one user fails over to another server. If you use asp.net you can confiure a Session Server where session information is saved on a SQL Server or a dedicated Session Server Application thus I don't think you can do something like this with classic asp. There is plenty information on how to implement a solution like that on technet @microsoft.com
------------- http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker
|
Posted By: PrivateEye
Date Posted: 05 November 2005 at 11:18am
I have done perfect in coding my classic ASP application, but I am
worried about how to deploy it. What hardware and kind of server
software should I buy?
------------- The Judgement Day
|
|