Multiple MySQL Multi Master clusters on one monitoring host

17 views
Skip to first unread message

Question

unread,
Oct 12, 2009, 3:51:33 AM10/12/09
to MySQL Multi Master Manager Development
Hi,

I would like to know how I can configure MMM to monitor multiple MySQL
clusters on one host.

What I've found:
http://groups.google.com/group/mmm-devel/browse_thread/thread/777c94b4e85b4428#
http://groups.google.com/group/mmm-devel/browse_thread/thread/c9f01e9703adc09e
http://mysql-mmm.org/mmm1:how-to-use

The first one is almost the same as my question but it did not give
any configuration pointers. The second one states that it is possible
and the third one is how to use mmm_control with multiple MySQL
clusters.

So can someone please give me some sample configuration files to
configure MMM with multiple clusters?

Istvan Podor

unread,
Oct 12, 2009, 12:43:47 PM10/12/09
to mmm-...@googlegroups.com
Hi there,

Its just as easy as you can read there.

On the mashine you run the monitoring node, just copy the current
mmm_mon.conf to mmm_mon_othercluster.conf

Configure your other cluster's configuration file just as you did with
the original one.

Dont forget to change the PORT of which this mmm control instance will
listen to!

If you got that, configure the agents to your othercluster and start
up. But here comes the bad news, I don't remember how to start up with
different clusters in mmm1.2 but at last you can make a copy of the
init script and modify that one.

If you done with this you can execute mmm_control @othercluster show,
and the word you give after the @ sign that will point to mmm_monitor_
$HERE.conf . I hope you can understand what I just wrote down.

Regards,
Istvan

Scott

unread,
Oct 13, 2009, 11:30:24 AM10/13/09
to MySQL Multi Master Manager Development
So the

On the client side, you don't have to touch anything if you've already
got a running setup. On the monitoring server, you're going to have
as many sets of config files as you have clusters, with each set of
config files having "_$CLUSTERNAME" as a suffix. The 2 main things to
watch out for in the config files are agent_port and bind_port. If
you don't have agent_port in your config file (something I missed at
first), mmm won't see the clients and they'll always be HARD_OFFLINE.
Also, bind_port has to be unique for each cluster. If you're using
the included init script, you need a copy of that for each cluster.
Make sure you edit the "CLUSTER" variable and you should be good to
go.

All this is assuming you already know how to setup mmm without
multiple clusters.

Cheers,
Scott

On Oct 12, 3:51 am, Question <hessin...@gmail.com> wrote:
> Hi,
>
> I would like to know how I can configure MMM to monitor multiple MySQL
> clusters on one host.
>
> What I've found:http://groups.google.com/group/mmm-devel/browse_thread/thread/777c94b...http://groups.google.com/group/mmm-devel/browse_thread/thread/c9f01e9...http://mysql-mmm.org/mmm1:how-to-use
Reply all
Reply to author
Forward
0 new messages