Networking Forums

Networking Forums > Computer Networking > Linux Networking > Load Balancing "Apache + MySQL" for online exams!

Reply
Thread Tools Display Modes

Load Balancing "Apache + MySQL" for online exams!

 
 
Roshan Sumbaly
Guest
Posts: n/a

 
      12-23-2006, 07:30 AM
I am new to this field of load balancing and would require some help.
We have a PHP + MySQL based online exam software which conducts simple
online exams (in the form of Multiple Choice Answers). The software
uses MySQL backend and Apache web server. We had a mock test and
realised that the minute the number of students logging in increased to
beyond 30, the computer became slow and finally couldn't withstand it.
Beyond 30 students sitting at once the PHP pages failed to load and
students couldn't log in. Luckily this was the mock exam!!

The solution as we got from our Computer Science faculty is "load
balancing". We are willing to setup multiple servers hosting Apache and
let students log in. The current solution we thought of was that make
batches of 30 students and make them connect to one server, etc. But
then we are dealing with 500 students. And it is not liable to do
something like this.

We also heard about DNS Load Balancing. Will this help? The issue is we
don't want a student's test answers to be stored in various computers.
It should be that once a student connects to one server, he should be
on that server itself. (We don't mind replicating all the databases of
Questions/Answers as well as students' info on all the server
computers)

If DNS load balancing is not the solution, then is LVS (Linux Virtual
Server) the right answer? If yes, which LVS (we went through the site
to find various versions of LVS (LVS- NAT or LVS-TUN or LVS-DR?).
We have Red Hat Linux 9 installed on the computers. Will LVS work with
them?

Thanking you in advance,
Wishing everyone a happy and prosperous New Year,


PS : I am a student in my 3rd year and have taken up an elective (in
college) of implementing "New Load Balancing Algorithms". Could anyone
please mention a framework/API on which I could implement these new
"load balancing" algorithms written by my Sir? Am well conversant with
C/C++/Perl.

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      12-23-2006, 08:46 AM
On 2006-12-23, Roshan Sumbaly <(E-Mail Removed)> wrote:
> realised that the minute the number of students logging in increased to
> beyond 30, the computer became slow and finally couldn't withstand it.


30 concurrent users? Unless your system is a 8080 with 4 Kb of ram,
I'd say that you have some problems in the connection tracking.

Davide

--
I never really understood how there could be things that would drive you
insane just because you knew them until I run into Windows.
--Peter da Silva on alt.sysadmin.recovery
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      12-23-2006, 11:52 AM
In comp.os.linux.networking Davide Bianchi <(E-Mail Removed)>:
> On 2006-12-23, Roshan Sumbaly <(E-Mail Removed)> wrote:
>> realised that the minute the number of students logging in increased to
>> beyond 30, the computer became slow and finally couldn't withstand it.


> 30 concurrent users? Unless your system is a 8080 with 4 Kb of ram,
> I'd say that you have some problems in the connection tracking.


Seconded, there is something completely wrong with the setup.

The OP might like to get someone who knows what he is doing to
login and drill down the problem to what it is about. Running sar
should give first hints without checking manually all time,
though it might just be obvious from 'dmesg'/'free'/'top' and
alike?

Still we don't know anything about the system in question, though
it sounds the OP "Computer Science faculty" suggestion isn't
that clever...

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 191: Just type 'mv \* /dev/null'.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables load balancing using "nth" jessica6 Linux Networking 1 02-05-2008 05:14 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
Mysql-Cluster and Load Balancing with ldirectord rascasoft@tiscali.it Linux Networking 3 05-16-2005 09:14 AM
PLB or LVS for load balancing apache Dominik Hofer Linux Networking 0 03-26-2005 08:34 AM



1 2 3 4 5 6 7 8 9 10 11