Re: load balanced configuration

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alex Dean
Date:  
To: Main PLUG discussion list
Subject: Re: load balanced configuration
On May 19, 2010, at 7:47 PM, Bryan O'Neal wrote:

> mysql dump on a cron job. You write the dump pipe it to gzip and set
> the name with the date and life is golden.


mysqldump is great if it's OK for your database to be locked while the
dump is going on. If that's acceptable, it's definitely simple, and
is what I do for lower traffic databases.

For higher-volume DB servers where that's not an option, it's pretty
easy to set up a mysql slave. Then you can take your dumps from the
slave server. You get a completely consistent backup, but your
production database is never down at all. If dumping to SQL takes up
too much disk space, you can also stop the slave server, cp its data
files, and start it back up again.

Look into mysqld_multi. Makes it easy to run multiple instances of
mysql on the same machine. Your slave & master can be on the same
hardware.

http://www.howtoforge.com/mysql_database_replication
http://dev.mysql.com/doc/refman/5.0/en/replication.html
http://dev.mysql.com/doc/refman/5.0/en/mysqld-multi.html

alex
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss