
12-27-2005, 04:08 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Feb 2004
Posts: 69
|
|
Website too large for one server... what now?
As the title implies, our website is too large for one dual Xeon 2.8 / 2 GB RAM / 2 x 78 SCSI, etc.
We've actually put our website over two servers and updated the 2nd database somewhat weekly.
The website is very database intensive and I am wondering what our options would be in expanding. Budget is a concern and getting a dedicated load balancer from TP seems a bit too pricey for us right now.
I have looked up some information and it seems like we have a few solutions...
1) DNS round robin
2) load balancer dedicated hardware
3) load balancing with software on server
We think apache + mysql could both use some more help but how would the data be kept in sync? Two servers would most likely be the best for us right now but do we setup two servers with the same data and keep it in sync or one dedicated mysql server and one apache be more effective? How would the we connect an apache server with the mysql server, with a private switch?
As you can see we have no experience with multiple server solutions and need some help with it. Any insight would be helpful. Thanks!
|

12-27-2005, 04:43 AM
|
|
Junior Guru
|
|
Join Date: Oct 2002
Posts: 229
|
|
The best setup would be to split apache and mysql on different servers.
You can interconnect them through a private net or if its not too much
traffic between the two a regular connection will do as well.
|

12-27-2005, 08:08 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Mar 2002
Location: UK
Posts: 458
|
|
Use a separate database server, and tune MySQL as best you can. You can use round-robin DNS to balance between the two webservers.
If the database is read-only then it should be easy enough to have multiple database servers and update both, otherwise you are into database server clustering which is a whole different ballgame...
__________________
Chris at TDMWeb.com
Windows & Linux hosting and fully managed dedicated servers with great customer service!
UK-based but serving the world...
|

12-27-2005, 08:28 AM
|
|
Managed Hosting Expert
|
|
Join Date: Jan 2004
Location: North Yorkshire, UK
Posts: 4,163
|
|
Two machines:
One frontend for Apache
One backend for MySQL
Stick them both in the same vLan and you're sorted.
__________________
█ Dan Kitchen | Technical Director | Razorblue
█ ddi: (+44) (0)1748 900 680 | e: dkitchen@razorblue.com
█ UK Intensive Managed Hosting, Clusters and Colocation.
█ HP Servers, Cisco/Juniper Powered BGP Network (AS15692).
|

12-27-2005, 09:25 AM
|
|
Web Hosting Master
|
|
Join Date: Aug 2001
Location: Matrix
Posts: 2,469
|
|
host on a sun based server ?
__________________
CPHosting - Web Hosting Experts Since 1998.
United States | Europe | Singapore | Australia
Visit Us! www.cphosting.com
|

01-07-2006, 09:49 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Feb 2004
Posts: 69
|
|
Thanks for the input guys:
With the one apache and one mysql server.. a person accessing the website would be going to the apache server and say we're in The Planet (connected the server with a switch) would that mean that our server is down to 2000 GB a month instead of the 4000 GB from both servers?
Also what are some places you guys would recommend for dual xeons or opterons?
we are considering
ThePlanet (but they have server availability issues)
Ev1servers
Serverwizards (they do all our management right now)
Serverplace (they seem cheap but are in GNAX?)
|

01-07-2006, 11:01 PM
|
|
WHT Addict
|
|
Join Date: May 2005
Posts: 155
|
|
On this cases i would strongly recommend to use cluster.
|

01-07-2006, 11:20 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Oct 2004
Location: Tampa, Florida
Posts: 80
|
|
Do like they say, split them out. If your site is database intensive be sure to get a "private link" between the servers. Not everybody does this, Rackspace does but 1and1.com for instance doesn't. Just check with whoever you go with otherwise you'll be paying for the bandwidth between the servers and that's not cool. Your bandwidth won't be reduced by much if any just becuase your going to one frontend server maybe two. Your still going to have just as many people coming to the site as before.....hopefully more right so you'll end up with 4000GB from one server instead.
|

01-08-2006, 05:19 AM
|
|
WHT Addict
|
|
Join Date: Oct 2004
Posts: 150
|
|
I would start off with what the others have suggested. One frontend web server and 1 DB server and see if that helps.
If that doesnt improve performance much there are companies that make really nice LAMP clustering solutions such as http://www.continuent.com/ With their setup you can have load balancing, fail over, and split the apache and MySQL load across 2 or more servers. Fully redundant, fast, and works well.
There are a few hosting providers that offer this, but it isn't cheap so that may be out of your league right now.
|

01-08-2006, 05:26 AM
|
|
Web Hosting Guru
|
|
Join Date: Nov 2004
Location: Lausanne, Switzerland
Posts: 260
|
|
Quote:
|
Originally Posted by packetm0nkey
I would start off with what the others have suggested. One frontend web server and 1 DB server and see if that helps.
If that doesnt improve performance much there are companies that make really nice LAMP clustering solutions such as http://www.continuent.com/ With their setup you can have load balancing, fail over, and split the apache and MySQL load across 2 or more servers. Fully redundant, fast, and works well.
There are a few hosting providers that offer this, but it isn't cheap so that may be out of your league right now.
|
That's what I would do too. 
|

01-09-2006, 10:04 AM
|
|
Junior Guru
|
|
Join Date: Sep 2005
Posts: 181
|
|
Ditto for 1 apache server, and one database server. Get a Private switch and you should have the bandwidth/transfer caps, of both servers. Users would connect to the apache server, and all data between the two servers wouldn't count against your bandwidth.
I am pretty sure, if I read their order forms right, you could get this setup from layered tech (and many other dedicated hosting companies).
-Jason
__________________
Have you considered Semi-dedicated Hosting? 4 - 8 accounts per server. Less overhead than VPS, better performance for the price.
DopeDomains.com - 15,000 New Domains a day. indexed by Pagerank, backlinks, Hits, and Length.
|

01-09-2006, 12:47 PM
|
|
Newbie
|
|
Join Date: Apr 2005
Posts: 5
|
|
Quote:
|
Originally Posted by Chainsaw76
Ditto for 1 apache server, and one database server. Get a Private switch and you should have the bandwidth/transfer caps, of both servers. Users would connect to the apache server, and all data between the two servers wouldn't count against your bandwidth.
I am pretty sure, if I read their order forms right, you could get this setup from layered tech (and many other dedicated hosting companies).
-Jason
|
Yep, LayeredTech does this. I am considering going with this route myself on LT.
|

01-09-2006, 01:52 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Feb 2004
Location: Alabama
Posts: 41
|
|
Quote:
|
Originally Posted by noreason296
As the title implies, our website is too large for one dual Xeon 2.8 / 2 GB RAM / 2 x 78 SCSI, etc.
We've actually put our website over two servers and updated the 2nd database somewhat weekly.
|
When you say your website is too large for one server, do you mean
1. Out of disk space? TP offers servers with more SCSI Drives.
2. Out of bandwidth? TP offers another 1000GB for $300 per month last time I looked. If you have a lot of graphics, you might move them to another server.
3. The disk is too busy? Add another SCSI drive or Upgrade the server with another GB or two of memory, which it can use as a disk cache. More memory will also help if you're using swap space. Another SCSI drive will mean that more disk I/O operations can be in progress at once.
4. Out of CPU? IIRC, They do have Dual 3.2 Xeon servers which you might be able to get as an existing user. I'm not sure if the FSB is faster on the 3.2.
You might get a server management company like Acunett ( http://www.acunett.com/management/) to optimize your server. There are quite a few things that can be tuned to improve server and database performance.
-- David
|

01-09-2006, 02:11 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Feb 2004
Location: Alabama
Posts: 41
|
|
Quote:
|
Originally Posted by mmxsaro
Yep, LayeredTech does this. I am considering going with this route myself on LT.
|
Look at their Layer 4 offerings. I'd love to try one of those.
- 4 Opterons (either 4 842 single cores or 2 265 Dual Cores)
- Up to 8 GB of ram. On the 2 x 265 system, this is only $175 per month.
- Up to 4 SCSI drives of 73GB, 146GB, or 300GB.
- They have some nice bandwidth upgrades too.
I've never dealt with LayeredTech, so I don't know how good they are, but they have some interesting offerings.
-- David
|

01-09-2006, 02:30 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Mar 2005
Posts: 67
|
|
you can squeeze a lot from one server, if you have time for tuning. i mean A LOT. Analyze your statistics, look how many requests to your DB hits the cache, look how much of the cache is actually used.
if you use linux, install mtop and watch closely, then tweak my.cnf. If you dont know how, pay someone who can do it.
I'm pretty sure, that _IF_ this server was never tweaked you can have even 200% or more performance boost. (it can be even 500% or more, if default settings are not good for you)
You can also tweak apache a lot.
You can change scripts on your page that you are using, maybe there are a lot of SELECT * from something; statements.
There are a lot of possibilites, buying yet another server might not be always the best solution.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|