Configuring High Availability for Micetro Central - Installation Guide - Micetro - 26.2.0

Micetro Installation Guide

ft:locale
en-US
Product name
Micetro
Version
26.2.0

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.

Note:
  • 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

  1. On the existing (or designated as primary) server running Micetro Central, edit the preferences.cfg file by adding the following:
    <ClusterMemberName value="somename"/>

    somename is the unique name that will identify the Micetro Central instance in the High Availability cluster, such as “1”, “primary”, or “central1”.

  2. Restart the primary Micetro Central instance from the command line:
    mmcentral.exe –stop
    mmcentral.exe –start
  3. Log into the Micetro Web Application as “administrator” and go to Admin > Configuration.
  4. Select High Availability.
  5. Enter the name of the first member server to match the name previously given and set the priority to 10.
  6. Select Add member.
    The input fields for the name of the first member server and its priority value.
  7. Restart Micetro Central from the command line:
    mmcentral.exe –stop
    mmcentral.exe –start
  8. Log into the Web Application and verify that the current server is running with state “Active”.
  9. Repeat steps 3–6 to add another member to the HA configuration, but now use a priority of 20 or higher.
    The High availability data grid, displaying the HA cluster members, their priorities, states, and last seen timestamps.
  10. 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.

  11. Copy the C:\ProgramData\MenandMice\Central file from the first server to the second and change the ClusterMemberName value to contain the name of the secondary that was set up previously. Save the file and exit.
  12. 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.
  13. Verify that you now have two servers: one primary, one secondary in Tools > Manage High availability.
  14. 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:
    micetrocentral.example.com A 192.168.2.53
    micetrocentral.example.com A 192.168.2.54
    in which 192.168.2.53 is the primary and 192.168.2.54 is the secondary.
    • Check whether the round robin name can be resolved, for example, with Resolve-DNSName or nslookup on the Micetro Central servers.
  15. Edit your Web Application C:\ProgramData\Men and Mice\Web Services\preferences.cfg file and add the following XML-tag:
    <DefaultCentralServer value="your round robin record" />
    For example:
    <DefaultCentralServer value="micetrocentral.example.com" />
  16. Restart the Micetro Web Services service through the services.msc.
Note: Repeat these steps for each High Availability failover you'd like to add. The priority for each failover member should be unique and higher than the primary.

Configuring High Availability on Linux

  1. 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"/>

    somename is the unique name that will identify the Micetro Central instance in the High Availability cluster. For example, “1”, “primary”, or “central1”.

  2. Restart the primary Micetro Central instance:
    systemctl restart mmcentral
  3. Log into the Micetro Web Application as “administrator” and go to Admin > Configuration.
  4. Select High Availability.
  5. Enter the name of the first member server to match the name previously given and set the priority to 10.
  6. Select Add member.
    The input fields for the name of the first member server and its priority value.
  7. Restart Micetro Central:
    systemctl restart mmcentral
  8. Log into the Micetro Web Application and verify that the current server is running with state “Active”.
  9. Repeat steps 3–6 to add another member to the HA configuration, but now use a priority of 20 or higher.
    The High availability data grid, displaying the HA cluster members, their priorities, states, and last seen timestamps.
  10. 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
  11. Copy the /var/mmsuite/mmcentral/preferences.cfg file from the first server to the second and change the ClusterMemberName value to contain the name of the secondary server that was set up previously. Save the file and exit.
  12. Start Micetro Central on the secondary server:
    systemctl start mmcentral
  13. Verify that you now have two servers: one primary and one secondary in the HA cluster.
  14. 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:

    micetrocentral.example.com A 192.168.2.53
    micetrocentral.example.com A 192.168.2.54
    in which 192.168.2.53 is the primary and 192.168.2.54 is the secondary.
    • Check whether the round robin name can be resolved, for example, with dig on the two Micetro Central servers.
  15. Edit your Web Application /var/mmsuite/mmcentral/preferences.cfg file and add the following XML-tag:
    <DefaultCentralServer value="your round robin record" />
    For example:
    <DefaultCentralServer value="micetrocentral.example.com" />
  16. Restart the Micetro Web Services service:
    systemctl start mmws
Note: Repeat these steps for each High Availability failover you’d like to add. The priority for each failover member should be unique and higher than the primary.

Editing HA member options

  1. Log into the Micetro Web Application and go to Admin > Configuration.
  2. Select High Availability in the left sidebar.
  3. 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.