Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-11-2004, 06:30 PM   #1
DatingGold
$6 PER EMAIL JOiN
 
Industry Role:
Join Date: Feb 2003
Location: California
Posts: 13,185
database question

We are starting two new sites and both have MySQL databases.

Would it better to use:

2 servers for each database with replication

OR

4 servers for both databases with replication

I've gotten different opinions and want to see what GFY techies think.

Thanks!
__________________
9 Years of SOLID payouts and conversions!



ADULT DATING - $100 PPS

LIVE CAMS - $214 PPS

WWW.DATINGGOLD.COM

ICQ: 27442303
DatingGold is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:10 PM   #2
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
I would say 4 with replication. Only because I have seen several companies do it this way as opposed to having dbs on seperate servers.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:21 PM   #3
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
Quote:
Originally posted by DatingGold
We are starting two new sites and both have MySQL databases.

Would it better to use:

2 servers for each database with replication

OR

4 servers for both databases with replication

I've gotten different opinions and want to see what GFY techies think.

Thanks!
1 server with a scsi raid-5 array
Hotswap drives
Dual power inputs
Make sure the card supports on-the-fly reconstruction of the array
multiple nic cards

set up a couple of web servers using DNS Round robin and you're good to go

Last edited by notjoe; 03-11-2004 at 07:23 PM..
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:36 PM   #4
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by notjoe


1 server with a scsi raid-5 array
Hotswap drives
Dual power inputs
Make sure the card supports on-the-fly reconstruction of the array
multiple nic cards

set up a couple of web servers using DNS Round robin and you're good to go
Uh...

This doesn't answer his question at all


But yeah, I'd go with the 4 replicating as well, you'll kick yourself later if one site uses a lot more resources than the other site, and hardware is sitting there idle when needed elsewhere.
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:36 PM   #5
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Depends. What is the read to write ratio for each site? If you're doing relatively few writes you're probably better off with 1 master and 3 slaves. If you're doing lots of writes, go with 2 masters and 2 slaves.

Also, don't overlook the value of http accelerators (reverse caches) on heavily dynamic sites.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:37 PM   #6
lurking
Confirmed User
 
Join Date: Jan 2004
Posts: 868
you shouldn't need more than one dedicated mysql box. fire your programmer, now.
lurking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:38 PM   #7
Joetanto
So Fucking Banned
 
Join Date: Oct 2003
Location: ICQ 306440898
Posts: 653
just steal an idea from someone
Joetanto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:42 PM   #8
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Quote:
Originally posted by lurking
you shouldn't need more than one dedicated mysql box. fire your programmer, now.
Depends on the number of queries and the amount of data stored don't you think?
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:44 PM   #9
BradM
Confirmed User
 
Join Date: Dec 2003
Location: 1123,6536,5231
Posts: 3,397
Quote:
Originally posted by fuzebox

But yeah, I'd go with the 4 replicating as well, you'll kick yourself later if one site uses a lot more resources than the other site, and hardware is sitting there idle when needed elsewhere.
Exactly
Or 1 goes haywire and goes down, youll go SHIT I wish I had another backup.
BradM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-11-2004, 07:48 PM   #10
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
Quote:
Originally posted by NetRodent


Depends on the number of queries and the amount of data stored don't you think?
No, he's right, better to get ONE BIG server to do it all.

It'd be more efficient to run web and database on the same server too!
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2004, 09:34 AM   #11
NetRodent
Confirmed User
 
Join Date: Jan 2002
Location: In the walls of your house.
Posts: 3,985
Quote:
Originally posted by fuzebox


No, he's right, better to get ONE BIG server to do it all.

It'd be more efficient to run web and database on the same server too!
How do you figure one server is better? Replication allows you to tailor each servers parameters to the needs of the client. Some queries run slow and infrequently, others run fast and often, and you've got writes which are a whole different issue. One configuration will probably not work the best for all queries. It also gives you redundancy and allows you to get much more bang for the buck. Do you get more processing power from one $10K server or ten $1k server?

As for web and database on the same server, if you're running a small site it certainly is more efficient. If you're doing any sort of traffic you're best off running them seperate (and probably running seperate webservers for static and dynamic pages). Any savings by running both on the same server are miniscule. Not to mention if you're that concerned with efficiency round robin dns is NOT the way to go.
__________________
"Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
--H.L. Mencken
NetRodent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.