| Author |
Topic Search Topic Options
|
PrivateEye
Groupie
Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
|
Post Options
Thanks(0)
Quote Reply
Topic: Load Balancing in ASP 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?
Edited by PrivateEye - 03 November 2005 at 7:13am
|
|
The Judgement Day
|
 |
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
PrivateEye
Groupie
Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
PrivateEye
Groupie
Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
michael
Senior Member
Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
PrivateEye
Groupie
Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
|
Post Options
Thanks(0)
Quote Reply
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
|
 |