>> Monitor Your Databases Before Problems Develop
Database performance tuning is more art than science, but a few well-placed monitors will come in handy as growth begins to stress your systems. Monitoring servers and applications is difficult in the abstract, hypothetical case because the stress points are not yet know. I’ve seen many standardized monitoring set ups that failed to alert anyone to an impending problem…then a sudden crisis where tons of data was available–but it was all “crisis data”–i.e. no one knew if the numbers were evidence or consequence of a problem.
Setting up a ping monitor of your database server is like asking your doctor to call you if your heart stops beating. You can add in a few other monitors like CPU utilization, memory, number of processes running, etc. but these monitors will not give you much insight into problems beyond the obvious. Every IT manager spend half a day reviewing these tips from SQL Server Performance.com (or see the mysql performance blog) and then start collecting data now so you will have some benchmarking data when scalability and capacity issues come up.
You could follow the advice in the article and run perfmon, but it’s unlikely you will want to run that indefinitely, so you will want to find a way to include this data collection in your general monitoring solution.
If you’re monitoring with Nagios, see these tips and get the check_mssql_health or check_mysql_health plugin. In addition to your nagios customization skills, it helps if you can read German…
If you have Heroix Longitude, you can review the performance monitors pre-configured from the Longitude Help -> application -> Rule Lists menus to understand what these presets are monitoring.
Other application monitoring products may or may not have these capabilities built-in, but it is well worth a few hours as you add your database server to the list of monitored servers to familiarize yourself with what data you can collect–perhaps documenting your set up in a wiki for future reference–so that when your company’s focus turns to database tuning, you have a wealth of data to support your analysis.
Subscribe by RSS







Another great tool for MySQL is mytop from Jeremy Zawdoney — it’s basically a MySQL clone of the top UNIX program.