sheepy.org - sheepy goings on...

  • blog
  • about
  • other
Home

monitoring

MySQL Monitoring

cornet — Thu, 2007-02-01 22:58

Database monitoring is a must if unless you like living on the edge.

Here are some tools to help monitor MySQL so you don't get any nasty surprises:


The MySQL Graph Collection for cacti

Cacti is a great tool for monitoring, giving you pretty
graphs allowing you to easily spot sudden and long term trends.

It takes some setting up but well worth it.

I do not currently know how much extra load this will put on a database but I don't expect
it to be much. Expect and updated post once I've done some testing.

mytop

mytop is a console based monitoring tool by Jeremy Zawodny
who helps look after Yahoo's MySQL databases.

It is basically a clone of top for MySQL and is useful for seeing, in real time, what is
happening on you MySQL server.

innotop

innotop is much like mytop with but specifically for InnoDB tablespace. It can show loads of things
such as
transactions,
deadlocks and
statistics

MySQL Report

This tool does nothing other than take the output of SHOW STATUS and puts it into a more readable form.
The main thing is not necessarly the tool itself but the documentation
that goes through a sample report and explains it line by line.

This tool is extreamely use for for quickly diagnosing problems related to high load on a database.

Other Notes

You really should monitor the size of your InnoDB table space and also individual table sizes.
Its often the case that tables which grow rapidly contain redundant or old data eating up space
and reducing the performance of the server.

I have yet to find a nice script that will do this for you, especially when you have 100s or 1000s of tables,
although it shouldn't be that tricky to hack one together.

  • monitoring
  • mysql
  • cornet's blog
  • Add new comment
Syndicate content

Syndicate

Syndicate content

Twitter Updates

    Follow me on Twitter

    Bookmarks

    Bytemark Hosting
    Ubuntu Logo Debian Powered

    • blog
    • about
    • other