Multi Master Replication Manager (MMM): installing monitoring node

In this recipe, we will configure the monitoring node with details of each of the hosts, and will tell it to start monitoring the cluster.

How to do it...

Edit /etc/mysql-mmm/mmm_common.conf to change the details for each host and its username and password.

Within this file, define default interfaces, PID and binary paths, and username / password combinations for the replication and MMM agents. For our example cluster, the file looks like this:

<host default> cluster_interface eth0 pid_path /var/run/mmmd_agent.pid bin_path /usr/bin/mysql-mmm/ replication_user mmm_replication replication_password changeme agent_user mmm_agent agent_password changeme monitor_user mmm_agent monitor_password ...

Get High Availability MySQL Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.