P. 1
Real World Web Performance Scalability MySQL Edition

Real World Web Performance Scalability MySQL Edition

4.75

|Views: 280|Likes:
Published by yejr

More info:

Published by: yejr on Apr 27, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/14/2011

pdf

text

original

•Binary logs!
•Keep track of “changes since the last
snapshot”
•Use replication to Another Site

(doesn’t help on “for $table = @tables { truncate $table }”)

•On small databases use mysqldump

(or whatever similar tool your database comes with)

•Zmanda MySQL Backup

packages the different tools and options

Backup Big Databases

•Use mylvmbackup to snapshot and archive
•Requires data on an LVM device (just do it)
•InnoDB:

Automatic recovery! (ooh, magic)

•MyISAM:

Read Lock your database for a few seconds before
making the snapshot

(on MySQL do a “FLUSH TABLES” first (which might be slow) and then a
“FLUSH TABLES WITH READ LOCK” right after)

•Sync the LVM snapshot elsewhere
•And then remove the snapshot!
•Bonus Optimization:
Run the backup from a replication slave!

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->