Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Web server sharing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JBB
n00b
n00b


Joined: 07 May 2004
Posts: 51
Location: New Zealand

PostPosted: Fri Aug 27, 2004 3:31 am    Post subject: Web server sharing Reply with quote

I work for a company which runs a fairly trafficked group of e-commerce sites and we're having occasional trouble with server overloading.

Aside from general site optimization, what are the best hardware methods for reducing server load? We currently run a fairly high-end Opteron machine but adding another server to the mix is a possibility. What are the options for sharing load between servers? (Keeping in mind that, being e-commerce sites, it's important that the client maintains the connection with the machine they originally reached.)

We run Apache, MySQL and PHP on Linux.
Back to top
View user's profile Send private message
lwithers
Guru
Guru


Joined: 31 Dec 2003
Posts: 300
Location: Reading, UK

PostPosted: Fri Aug 27, 2004 4:07 am    Post subject: Reply with quote

You could move the d/b backend to another server and keep the apache and PHP stuff on the original server. Should be easy to set up and, of course, you should see an immediate improvement in speed.
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Aug 27, 2004 4:20 am    Post subject: Reply with quote

Putting the database on another server would probably be the standard action.

If it seems like your hardware should be able to handle it, then you may want to try to locate the bottleneck. Databases tend to munch on RAM.. maybe your hard disks just aren't fast enough (need more raid or scsi).. yadda, yadda.

Lots of complex MySQL calls can really bog you down. Especially complex searches through large tables. If you haven't spent some time getting things right, someone may be able to point you to a good site. Of course a good server might be cheaper than a good programmer! At least for a small business.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Aug 27, 2004 5:31 am    Post subject: Reply with quote

Completely agree with the two previous posts, splitting the database off will give you the most performance increase.

In fact I just did it for a customer of ours resently. They went from 3 web servers with the mysql db on server #3 to the 3 servers and a dedicated database. The performance increase has been immense. They ran a very large db and it was constantly fighting Apache for the same resources.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum