CMON
1.1.4 - the Cluster Monitor and Manager has recently been
released and here is a little how to about how to install from
binary and source (at the end), deployment etc. If you use RPMs,
you should follow the install guide here.
1. Download the cmon binary package to a monitoring host
Currently there are binaries available for Linux 64-bit and
32-bit (statically linked) and works for MySQL Cluster 7.0.9 and
later 7.0.x versions and also 7.1.x.
In this case the monitoring host will be on 'ndb05' (IP address
10.0.1.5) - see 9. Suggested Deployment for a picture describing
the setup.
The Monitoring machine should have installed:
Sometimes you know for sure. And sometimes you wonder: Is this
server part of a replication system? And, most specifically, is
it an active slave?
The completeness of the answer depends on how much visibility you
have on the server.
If you can ask the DBA, and possibly have access to the server
data directory and configuration file, you can get a satisfactory
answer. But if your access is limited to SQL access, things get a
bit more complicated.
If you have the SUPER or REPLICATION_CLIENT privilege, then it's
easy, at least in the surface.
SHOW SLAVE STATUS will tell you if the slave is running. An empty
set means that the server was not configured as a slave.
The answer is not absolute, though. You need to read the output
of SHOW SLAVE STATUS to understand if replication is under
way.
For example, what is the difference between these two
listings?
## listing 1 …
[Read more]
If you're already using an SNMP monitoring tool like OpenNMS, mysql-agent is a great way to add a number of
graphics using Net-SNMP. However mysql-agent has a small bug that
drove me crazy. I will try to highlight the process on how I
discovered it (and hence fix it) since it involved learning about
SNMP, how to diagnose it and eventually, once all the pieces came
together, how simple it is to write your own agents.
Although versions are not that important, just for the sake of
completeness we were using CentOS 5.5, MySQL 5.5.8 Community
RPMs, Net SNMP version 5.3.22 and OpenNMS Web Console
1.8.7.
The Problem
I …
CRIB is a CentRal Information Base for MySQL, a long time coming project since I worked on it on and off for a few weeks and now I decided it’s time to hand it over to the global MySQL community.
So, what is CRIB?
CRIB is a central database which collects information about all your MySQL instances which you set as clients. It is monitoring in a way, but not the typical number of connections, memory, index usage, table scans, cpu usage and such, but rather consists of a repository where, if you have tens, hundreds or even thousands of clients, you can see where a particular user was created, where a certain database name features or which tables does a database consists of. It also features a script which logs table sizes periodically (customizable) so you can graph disk usage over time and be able to forecast future disk space requirements easily.
Download the latest code with: bzr branch lp:crib
First …
[Read more]
You may have read a previous post of mine, back in April this
year, where I wrote about using the MySQL 5.5 Audit interface to
SQL Statement monitoring. There was a bunch of comments and some
ideas, but not much happened. Until now that is.
Hereby I release the first version of SQLStats, which is a much
enhanced version of what I described in the previous post. This
is a MySQL Plugin for MySQL 5.5 that allows you to monitor the
most recently executed, and the most frequently executed
statements using 2 INFORMATION_SCHEMA tables. The thing is not
very complex, to be honest, but it does do the job. So what was
the job then? Well, looking at what this plugin does, it goes
something like this:
- Allows you to monitor ALL SQL statements executed by the server.
- The SQL statements are "normalized", …
I think most people will agree that one of the biggest advantages of MySQL Community Server is that it’s free. Being free doesn’t get you a multi-million user community though; MySQL offers a great array of transactional engines, advanced high-availability features, robust I/O performance, and it powers many of the top-500 internet sites. When it […]
One... *billion* emails!
One *Billion* Emails
In email marketing there are senders of all shapes and sizes, from small businesses using self-serve ESPs to the largest web properties self-sending to massive user bases. While only a few senders will reach or exceed volumes of one billion messages per month, the tools and practices needed to achieve such a volume level are applicable to all senders who want to succeed in email marketing.
Who Am I?
My name is Mike Hillyer (click here for bio and social links). I manage a team of Sales Engineers for Message Systems, a leading provider of digital messaging solutions for both senders and receivers. In my work over the last several years I have helped a number of …
[Read more]A new version of Kontrollbase – the enterprise monitoring, analytics, reporting, and historical analysis webapp for MySQL database administrators and advanced users of MySQL databases – is available for download. There are several upgrades to the reporting code with improved alert algorithms as well as a new script for auto-archiving of the statistics table based […]
One role of a MySQL consultant is to review an existing production system. Sometimes you have sufficient time and access, and other times you don’t. If I am given a limited time here is a general list of things I look at.
- Review Server architecture, OS, Memory, Disks (including raid and partition type), Network etc
- Review server load and identify physical bottleneck
- Look at all running processes
- Look specifically at MySQL processes
- Review MySQL Error Log
- Determine MySQL version
- Look at MySQL configuration (e.g. /etc/my.cnf)
- Look at running MySQL Variables
- Look at running MySQL status (x n times)
- Look at running MySQL INNODB status (x n times) if used
- Get Database and Schema Sizes
- Get Database Schema
- Review Slow Query Log
- Capture query sample via SHOW FULL PROCESSLIST (locked …