Friday, 22 August 2008 14:33
how to recover corrupted Innodb
Assume you're running MySQL with Innodb tables and you've got
crappy hardware, driver bug, kernel bug, unlucky power failure or
some rare MySQL bug and mysql crash with assertion failure.
So what can you do to recover such a table ?
Read more...
Friday, 22 August 2008 12:59
Recovery beyond data restore
Quite frequently I see customers looking at recovery as on ability
to restore data from backup which can be far from being enough to
restore the whole system to operating state, especially for complex
systems. Instead of looking just at data restore process you better
look at the whole process which is required to bring system to the
working state, including data consistency requirements and times.
This has to be considered for different data loss scenarios which
may happen.
Read more...
Friday, 22 August 2008 12:58
The ultimate tool for generating optimal my.cnf files for
MySQL
There are quite a few “tuning primers” and
“my.cnf generators” and “sample my.cnf
files” online. The ultimate tool for generating an optimal
my.cnf is not a tool. It’s a human with many years of
experience, deep knowledge of MySQL and the full application stack,
and familiarity with your application and your data.
Read more...
Friday, 22 August 2008 12:53
Predicting Performance improvements from memory increase
One common question I guess is how much should I see performance
improved in case I increase memory say from 16GB to 32GB. The
benefit indeed can be very application dependent - if you have
working set of say 30GB with uniform data access raising memory
from 16GB to 32GB can improve performance order of magnitude by
converting very IO bound load to CPU bound, it is well possible to
see limited gains - if your working set already fits in 16GB you
may not see any significant gains upgrading memory to 32GB.
Interesting enough similar can happen for very large working set -
for example if your main queries do full table scan of 100GB table
it does not matter if you have 16GB or 32GB the load is going to be
way too much IO bound anyway.
Read more...
Friday, 22 August 2008 12:48
MySQL Master Master Repliction Tutorial
This tutorial describes how to set up MySQL master-master
replication. We need to replicate MySQL servers to achieve
high-availability (HA). In my case I need two masters that are
synchronized with each other so that if one of them drops down,
other could take over and no data is lost. Similarly when the first
one goes up again, it will still be used as slave for the live one.
Read more...
|