How to Convert a Secondary Manager into a Primary Manager or Vice Versa?

To convert a secondary manager into a primary manager or vice versa, do the following:

  1. Stop both the primary and secondary managers.
  2. Then, login to the system hosting the secondary manager, which you want to convert to a primary manager.
  3. Proceed to edit the eg_managers.ini file in the <EG_INSTALL_DIR>\manager\config directory of the secondary manager. In the file, remove all sections except the [MANAGER_SETTINGS] section. Then, save the file.
  4. Then, run the setup_cluster.bat (or setup_cluster.sh file, depending upon the operating system on which the secondary manager is running) on the secondary manager. In the process, configure this secondary manager as the primary manager.
  5. After setup successfully completes, start the new primary manager.
  6. Then, connect to the primary manager via a browser, and login to it as an admin user to check if you can access the eG admin interface. If you can, then its a clear indicator that the primary manager has been successfully configured.
  7. Next, login to the system hosting the old primary manager, so you can convert it into the secondary manager.
  8. Proceed to edit the eg_managers.ini file in the <EG_INSTALL_DIR>\manager\config directory of the old primary manager. In the file, remove all sections except the [MANAGER_SETTINGS] section. Then, save the file.
  9. Then, run the setup_cluster.bat (or setup_cluster.sh file, depending upon the operating system on which the old primary manager is running). In the process, configure the old primary manager as the secondary manager.
  10. After setup successfully completes, start the new secondary manager.
  11. Once the procedure is complete, all eG agents will start reporting to the new primary manager by default.