Your SlideShare is downloading. ×
0
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Server Load Balancing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Server Load Balancing

1,632

Published on

Server crashing is a nightmare. Take care before that happens !

Server crashing is a nightmare. Take care before that happens !

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,632
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Balancing the load on Servers In connection with Online Exams - Ramesh Kumar B
  • 2. Managing Server Load &amp; Avoid Crashing <ul><li>Managing servers is a huge task when it comes to declaring results. </li></ul><ul><li>We offer multiple ways to handle the load. </li></ul><ul><ul><ul><ul><li>Hardware solution </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Software solution </li></ul></ul></ul></ul>
  • 3. Managing Server Load - Software <ul><li>Hardware Requirements: </li></ul><ul><ul><li>Dual XEON processors </li></ul></ul><ul><ul><li>4 GB RAM </li></ul></ul><ul><ul><li>Same System configuration for all web servers in web farm. </li></ul></ul><ul><ul><li>T1 Line/ Excellent backbone </li></ul></ul><ul><li>Software requirements: </li></ul><ul><ul><li>Web farm with 4 or more Windows 2003/2008 servers </li></ul></ul><ul><ul><li>Asp.net 2.0 or later version with AJAX </li></ul></ul><ul><ul><li>SQL Server 2000/2005 </li></ul></ul><ul><ul><li>Load balancing </li></ul></ul>
  • 4. <ul><li>Mirror and Client based approach </li></ul><ul><li>DNS-based approach </li></ul><ul><li>Dispatcher based approach </li></ul><ul><li>Server based approach </li></ul>Load Balancing Techniques
  • 5. Managing Server Load – DNS Based <ul><li>Servers with min 4 Gb RAM &amp; Dual Xeons </li></ul><ul><li>100 Mbps port </li></ul><ul><li>Multiple Servers- Internet Service Provider (ISP) maps all servers </li></ul><ul><li>DNS based Load balancing &amp; round robin with flexibility to add or remove a node whenever required. </li></ul>
  • 6. Server Scheduling <ul><li>Round-Robin Scheduling </li></ul><ul><ul><li>Treat all real servers as equals regardless of number of connections or response time </li></ul></ul><ul><li>Weighted Round-Robin Scheduling </li></ul><ul><ul><li>Servers of different processing capacities. </li></ul></ul><ul><ul><li>Each server can be assigned a weight </li></ul></ul><ul><li>Least connection scheduling </li></ul><ul><ul><li>Direct requests to the server with the least number of active connections </li></ul></ul><ul><li>Weighted Least connection scheduling </li></ul><ul><ul><li>Superset of the least connection scheduling </li></ul></ul><ul><ul><li>Performance weight can be assigned to each server </li></ul></ul><ul><ul><li>The server with a higher weight value will receive a larger percentage of active connection </li></ul></ul>
  • 7. Managing Server Load - Software <ul><li>Software solution </li></ul><ul><li>Use Ajax technologies and features of asp.net </li></ul><ul><ul><li>(some applications running on Ajax – google maps, gmail, Outlook express web version) </li></ul></ul><ul><ul><li>Non Ajax - may take 40+ seconds to pull 800 K data from server to the client machine </li></ul></ul><ul><ul><li>Ajax – May take 10 seconds to pull 80 K data (equivalent to 800K) for the same query. </li></ul></ul><ul><li>Keep the results page simple. Don’t use images. </li></ul>
  • 8. Managing Server Load - Software Marks Memo Template loaded Multiple XML result files loaded to cache on the server When candidate enters the Admit card number, get relevant data and replace placeholders.
  • 9. Managing Server Load - Software <ul><li>Coding: </li></ul><ul><ul><li>Initial screen loaded as marks memo template with placeholders for actual marks details. </li></ul></ul><ul><ul><li>All the results data exported into multiple XML files based on the hall ticket range. </li></ul></ul><ul><ul><li>All XML files loaded into Cache at the time of first request. </li></ul></ul><ul><ul><li>All subsequent queries use the cached XML files to speed-up the process. </li></ul></ul><ul><ul><li>No database queries needed as the data is already in XML format. </li></ul></ul><ul><ul><li>When the user enters hall ticket No. and submits the form, the request should be processed using AJAX style instead of traditional page refresh. This will avoid the load on web server and decrease the network traffic. </li></ul></ul><ul><ul><li>Place holders in marks memo template are replaced with marks/rank/candidate values returned by web server using JavaScript or ASP.net AJAX model. </li></ul></ul>
  • 10. Managing Server Load - Software <ul><li>Software solution </li></ul><ul><li>Phased delivery of results – SMS, Email and Web </li></ul><ul><ul><ul><li>Send results by SMS at 5 PM </li></ul></ul></ul><ul><ul><ul><li>Send results by emails at 5 PM </li></ul></ul></ul><ul><ul><ul><li>Declare results on multiple servers at 7 PM </li></ul></ul></ul><ul><li>Same results data on different websites </li></ul><ul><ul><ul><li>Client websites </li></ul></ul></ul><ul><ul><ul><li>Your websites </li></ul></ul></ul><ul><ul><ul><li>Partner websites </li></ul></ul></ul><ul><ul><ul><li>Call center </li></ul></ul></ul>

×