Failover instances of Micetro Central can be configured to build a High Availability (HA) cluster. For more information about fine-tuning the settings for the Central High Availability cluster, refer to Adjusting HA for Micetro Central.
- To run Micetro in High Availability mode, you must be using the MS SQL or PostgreSQL database backend for Micetro. High Availability mode is not available for other database types.
- All participating servers should use the same NTP server. If not, one standby server may start to take over, since the timestamp for the active server will be old, and lead the NTP server to think the active server is offline.
When there are no HA members defined or if Micetro Central has not been configured for HA, a message will appear, indicating further configuration is necessary. This documentation provides instructions on how to configure HA in Micetro for versions 10.2 and greater.
Configuring High Availability on Windows
- On the existing (or designated as primary) server running Micetro
Central, edit the preferences.cfg file by adding the
following:
<ClusterMemberName value="somename"/>somenameis the unique name that will identify the Micetro Central instance in the High Availability cluster, such as “1”, “primary”, or “central1”. - Restart the primary Micetro Central instance from the command
line:
mmcentral.exe –stop mmcentral.exe –start - Log into the Micetro Web Application as “administrator” and go to .
- Select High Availability.
- Enter the name of the first member server to match the name previously given and set the priority to 10.
- Select Add member.
- Restart Micetro Central from the command
line:
mmcentral.exe –stop mmcentral.exe –start - Log into the Web Application and verify that the current server is running with state “Active”.
- Repeat steps 3–6 to add another member to the HA configuration, but now use a
priority of 20 or higher.
-
On the newly added secondary server, install Micetro Central. If it’s already installed, make sure it’s stopped:
-
Open the Services window by pressing Win + R, entering services.msc, and then Enter.
-
Locate the Micetro Central service, right-click on it, and select Stop to make sure it’s not running.
-
- Copy the C:\ProgramData\MenandMice\Central file from the first
server to the second and change the
ClusterMemberNamevalue to contain the name of the secondary that was set up previously. Save the file and exit. - Start Micetro Central on the secondary server:
- Open the Services window by pressing Win + R, typing services.msc, and then Enter.
- Locate the Micetro Central service, right-click on it, and select Start to make sure it’s not running.
- Verify that you now have two servers: one primary, one secondary in .
- Create a round robin DNS name for the High Availability setup. This involves
creating two A records with the same name, each with the IP address of the
primary and secondary server. For
example:
in whichmicetrocentral.example.com A 192.168.2.53 micetrocentral.example.com A 192.168.2.54192.168.2.53is the primary and192.168.2.54is the secondary.- Check whether the round robin name can be resolved, for example, with
Resolve-DNSNameornslookupon the Micetro Central servers.
- Check whether the round robin name can be resolved, for example, with
- Edit your Web Application C:\ProgramData\Men and Mice\Web
Services\preferences.cfg file and add the following
XML-tag:
For example:<DefaultCentralServer value="your round robin record" /><DefaultCentralServer value="micetrocentral.example.com" /> - Restart the Micetro Web Services service through the services.msc.
Configuring High Availability on Linux
- On the existing (or designated as primary) server running Micetro
Central, edit the preferences file in
/var/mmsuite/mmcentral/preferences.cfg by adding
the following to the
file:
<ClusterMemberName value="somename"/>somenameis the unique name that will identify the Micetro Central instance in the High Availability cluster. For example, “1”, “primary”, or “central1”. - Restart the primary Micetro Central
instance:
systemctl restart mmcentral - Log into the Micetro Web Application as “administrator” and go to .
- Select High Availability.
- Enter the name of the first member server to match the name previously given and set the priority to 10.
- Select Add member.
- Restart Micetro
Central:
systemctl restart mmcentral - Log into the Micetro Web Application and verify that the current server is running with state “Active”.
- Repeat steps 3–6 to add another member to the HA configuration, but now use
a priority of 20 or higher.
- On the newly added secondary server, install Micetro Central. If it’s
already installed, make sure it’s stopped by using (as
root):
systemctl stop mmcentral systemctl status mmcentral - Copy the /var/mmsuite/mmcentral/preferences.cfg file from
the first server to the second and change the
ClusterMemberNamevalue to contain the name of the secondary server that was set up previously. Save the file and exit. - Start Micetro Central on the secondary
server:
systemctl start mmcentral - Verify that you now have two servers: one primary and one secondary in the HA cluster.
- Create a round robin DNS name for the High Availability setup. This involves
creating two A records with the same name, each with the IP address of the
primary and secondary server.
For example:
in whichmicetrocentral.example.com A 192.168.2.53 micetrocentral.example.com A 192.168.2.54192.168.2.53is the primary and192.168.2.54is the secondary.- Check whether the round robin name can be resolved, for example,
with
digon the two Micetro Central servers.
- Check whether the round robin name can be resolved, for example,
with
- Edit your Web Application
/var/mmsuite/mmcentral/preferences.cfg file and add
the following
XML-tag:
For example:<DefaultCentralServer value="your round robin record" /><DefaultCentralServer value="micetrocentral.example.com" /> - Restart the Micetro Web Services
service:
systemctl start mmws
Editing HA member options
- Log into the Micetro Web Application and go to .
- Select High Availability in the left sidebar.
- Hover over the server member and use the Row ... menu to
select one of the following options:
- Edit member: Change the name or priority of the server member in the HA cluster.
- Set active: Set the server to be the Active member of the HA cluster manually.
- Remove member: Remove the server member from the HA cluster.
Proceed to Installing Micetro DNS Agents on Windows or Installing Micetro DNS Agents on Linux.