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-14-2012, 06:55 AM   #1
longdongsilver
Confirmed User
 
Join Date: Aug 2003
Posts: 378
server experts - how would you set this up

We have 2 servers, same spec. Each server has 2 ssd drives. These servers can be linked through a virtual rack.

I was told it would be best to do this but not sure it looks correct.

Server 1

main website - drive1
mysql data base replicated (from drive 2 on server 2) - drive 2


Server 2

mysql data base master - drive 1

mysql replicated - drive 2


we have a small nas too for backing up the main site and data base daily.


The mysql is growing rather large.

Is this a strange way of doing things?



what is the difference between say mysql replicated, or master and slave say and having the 2 drives in server2 just put in a raid 1 config??

I have no idea really about this kind of thing.



Sorry just to make it clear what i meant in the last part...

on server 2 - why not just put the database on a raid 1 to replicate it. Why has he put DB replicated (slave) for drive 2.

Is not backing up a db the same as replicating it?



I would have thought just do it like this

Server 1 -

main site - drive 1
main site - drive 2

in raid 1


server 2
mysql - drive1
mysql- drive 2

in raid 1

nas storage

mysql backed up and website backed up.

Last edited by longdongsilver; 03-14-2012 at 07:09 AM.. Reason: discribed better
longdongsilver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 07:43 AM   #2
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
honestly, if you don't really know what you are doing you shouldn't try, especially with valuable data like databases but simply ask your host. You shouldn't be doing their work in the first place, let them set it up.

Not sure what you mean with virtual rack. If the servers have 4 solid state drives with consecutive serials you have another problem by the way, assuming the SSDs don't break down in between they will likely all wear out around the same time What SSDs are you using?
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 07:57 AM   #3
longdongsilver
Confirmed User
 
Join Date: Aug 2003
Posts: 378
Quote:
Originally Posted by AdultEUhost View Post
honestly, if you don't really know what you are doing you shouldn't try, especially with valuable data like databases but simply ask your host. You shouldn't be doing their work in the first place, let them set it up.

Not sure what you mean with virtual rack. If the servers have 4 solid state drives with consecutive serials you have another problem by the way, assuming the SSDs don't break down in between they will likely all wear out around the same time What SSDs are you using?
thanks for your reply,

I think they are intel 320 series ssd

I am not sure if they have consecutive serial numbers, yes that is worrying i will try to find out if they have.

Our host does not do full management, we hired a server admin on a recommendation from a friend.

However i was just trying to see if what he is suggesting makes any sense. Im sure it does and that its just it makes no sense to me as i know nothing about servers really at all.

He seems to think that this set up could allow us to do the backups to nas without stopping the master db. I think that is what he was saying.

The virtual rack just means the servers are networked together.

From what i am starting to understand, simply copying a db (backing it up) is not the same as replication. Seems its not like just a giant file.
longdongsilver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:09 AM   #4
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
Quote:
Originally Posted by longdongsilver View Post
He seems to think that this set up could allow us to do the backups to nas without stopping the master db. I think that is what he was saying.
Well you can always run a mysqldump and then scp it over to a different host or do the mysqldump on the remotehost directly (depending if you have networking enabled for mysql).

If you can't have locked tables etc you should setup replication where server 1 is the master and server 2 is the slave, this is done through binary logs so each write query is performed on both servers. You can perform reads on either one of the servers. In this case you also opt to make the backups on the slave so your master is always able to perform queries.

Quote:
Originally Posted by longdongsilver View Post
From what i am starting to understand, simply copying a db (backing it up) is not the same as replication. Seems its not like just a giant file.
A mysqldump is an export file with all the queries in it to recreate a database, tables and data. Replication is where all queries on a master are replicated to a slave so both hosts contain the same data (if in sync of course).
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:10 AM   #5
oscer
Confirmed User
 
Industry Role:
Join Date: Jan 2001
Location: Baltimore
Posts: 2,834
Unless your Trying to keep a "HOT SPARE" I would have just put the drives in raid 1 and done a good MYSQL backup often , Use one server for SQL if you are very SQL intensive and one server for Web and Data ... Just my thoughts
__________________
XR Networks
Dedicated | VPS | Shared Hosting
ICQ 42602565
oscer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:23 AM   #6
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Everything you've mentioned sounds questionable.

I don't see why he'd want to replicate the database on the same server. He may have a good reason, but that's not normal and you didn't post a reason. Since it's already replicated to server #2, and hot backup tools exist, backing up from the third replucate isn't a good answer, not when you're talking about DOUBLING the writes. My GUESS is that he may be trying to spread the load across both drives way. If so, that's one of the most naive methods I've seen.

Is there any reason to say the database on this drive, the site on this other? You'd get better performance and far better flexibility with either RAID or LVM, so either process can use both drives as needed. When the DB is busy, it has both drives, when site has several large downloads, it can use both. When the site grows, it can use space on both, or adding another to the pool is simple.

As you said, replication is NOT backup. With a backup, when he makes a mistake and messed up the database by forgetting the WHERE clause, he can restore it from that morning's backup. If a hacker wipes it out, just restore. Replication, like RAID, is real time - you just have two copies of garbage.

Your backup is protects you when there is a fire, an FBI raid, etc. You can use the backup to get running with another host. That's one reason the NAS provided by your host isn't a proper backup. If they go like Alphared, Acronoc, etc., or have a fire like The Planet, you're out of business. Thousands of servers were taken out by the fire at The Planet. What good does that NAS do you when it melts in the same fire that melts your server? Proper backups, backups for your business, must be:
Automatic (or they won't be done regularly)
Tested (recently one host pointed us to the "backups" - they had stopped working 20 months prior.)
Offsite (fire, FBI, host doesn't pay $50,000 bandwidth bill, etc.)
Rotated (a midnight backup is worthless is you got hacked at 11:45)
QUICKLY restorable (tape backups can take days to get a single file)

Those are the key attributes of proper backups, the kind that keep you from going out of business when shit happens, and shit WILL eventually happen. They are the essential characteristics to measure a backup proposal by and compare to an enterprise grade system such as Clonebox.

Last edited by raymor; 03-14-2012 at 08:26 AM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:25 AM   #7
AdultEUhost
ORLY?
 
AdultEUhost's Avatar
 
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
Quote:
Originally Posted by oscer View Post
Unless your Trying to keep a "HOT SPARE" I would have just put the drives in raid 1 and done a good MYSQL backup often , Use one server for SQL if you are very SQL intensive and one server for Web and Data ... Just my thoughts
I wouldn't do RAID1 with SSD drives, chances that your raid controller die are more likely before the SSD drive. Besides your drives are gonna wear out at pretty much the exact same moment.
__________________
ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014
AdultEUhost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:30 AM   #8
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by AdultEUhost View Post
honestly, if you don't really know what you are doing you shouldn't try, especially with valuable data like databases but simply ask your host. You shouldn't be doing their work in the first place, let them set it up.
Trust the professionals yes, trust but verify. Don't hire a "pro" and pay them to do a bunch of stupid, creating problems for you. I think the OP is spot on to get a proposal from the admin, then run it by people like you and I to check it for reasonableness.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:44 AM   #9
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
raid on SSD is pointless. Ditch the replica from drive 2 server 2 as well as it doesn't make a lot of sense.
I would put a copy of the website on the second server as well so you have two identical servers just in case one of them goes bust.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 08:46 AM   #10
Barefootsies
Choice is an Illusion
 
Barefootsies's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Land of Obama
Posts: 42,635
:2cents

Cue all 'masters of the universe'... my way is better than your way, you're an idiot, etc..

__________________
Should You Email Your Members?

Link1 | Link2 | Link3

Enough Said.

"Would you rather live like a king for a year or like a prince forever?"
Barefootsies is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-14-2012, 10:22 AM   #11
longdongsilver
Confirmed User
 
Join Date: Aug 2003
Posts: 378
thanks guys, for all of your input on this. I am going to ask the tech to just read this thread and see if he can explain more of why he is doing it the way he suggested.
longdongsilver 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.