Installing eG Manager on Windows Cluster
For high availability (HA) purposes, you can install the eG manager on a Windows cluster. This involves installing the eG manager on a 'shared drive' of the cluster, mounting that drive on one/more secondary nodes, and running the eG manager service on those nodes. You can run the eG manager service on as many secondary nodes as you want, depending upon the level of high availability you need. This way, if the eG manager on the primary fails, then the eG manager service on one of the secondary nodes will take over, thereby providing users with uninterrupted monitoring and alerting services.
The key pre-requisites for this HA configuration are as follows:
-
All cluster nodes running the eG manager service should be in the same domain.
-
The eG database should be accessible from all cluster nodes that are engaged in delivering high availability for the eG manager.
The broad steps for installing the eG manager on a 2-node Windows cluster are as follows:
-
Install the eG manager on the primary node of the cluster; in the process, make sure that a 'shared drive' of the Windows cluster is chosen as the 'destination folder' of the eG manager.
-
Stop the eG manager service.
-
Move the 'shared drive' to the secondary node of the cluster;
-
Run the eG manager service on the secondary node;
-
Create a new role to configure High Availability for the eG manager, on any node of the cluster.
-
Proceed to configure the eG database for the eG manager.
-
Configure the URL for accessing the eG manager
Each of these steps are detailed below.
Installing eG Manager on Primary Node
The basic procedure for this is the same as that which you will follow to install the eG manager on any Windows server. To know how to achieve this, refer to Installing the eG Manager.
The only difference is that, when prompted for the host name / IP address of the eG manager, you should take care to select the 'host name' of the primary node (see Figure 1), and not its IP address.
Figure 1 : Selecting the host name of the primary node and not its IP address
Secondly, when asked to specify where the eG manager is to be installed, you should only pick a 'shared drive' on the cluster (see Figure 2), as this drive will be accessible to all nodes in the cluster.
Figure 2 : Installing the eG manager on a 'shared drive' of the cluster
Once the eG manager installation ends, you will be prompted to configure the eG database. PAUSE SETUP HERE by closing the database configuration window.
Stopping the eG Manager on Primary Node
After installing the manager on the primary node, DO NOT PROCEED TO CONFIGURE THE EG DATABASE. Instead, simply stop the eG manager on the primary node. For that, do the following:
-
Login to the primary node of the cluster.
-
Open the Services window and look for the eGurkhaTomcat service. Once you find it, right-click on that service and pick the Stop option to stop the service.
Figure 3 : Stopping the eG Manager service on the primary node
Moving Shared Drive to the Secondary Node
For this, do the following:
-
Login to any node in the cluster.
-
Launch the Failover Cluster Manager using Control Panel -> Administrative Tools.
Figure 4 : Launching Failover Cluster Manager
-
Once the Failover Cluster Manager opens, expand the cluster node in the tree-structure in the left pane of Figure 5 that appears. Then, expand the Storage sub-node within, and then click the Disks node therein. The right panel will then change to display the cluster disks.
Figure 5 : Selecting the cluster disk to move to secondary node
-
From the list of cluster disks in the right panel, choose the disk / shared drive where the eG manager is installed. By default, the Primary Node will be the Owner Node of this cluster disk. Now, from the Actions pane that appears in the far right, click on the Move Available Storage option. From the menu that pops out, pick the Select Node option. Figure 6 will then appear.
Figure 6 : Pick the Select Node option to move chosen disk to another node
-
From the Move Available Storage dialog box in Figure 6, pick the secondary node to which you want to move the shared drive and click OK. When Figure 7 appears, check if the Owner Node of the cluster disk you moved has changed to the secondary node of the cluster.
Figure 7 : Check if the Owner Node of cluster disk is the secondary node
Note:
If the eG manager is to run on more than one secondary node, then steps 2-5 above needs to be followed for each such node.
Running the eG Manager Service on the Secondary Node
For this, follow the steps below:
-
Login to the secondary node as an administrator.
-
Open the Windows command prompt and switch to the cluster disk / shared drive (where the eG manager is installed) that you moved to the secondary node.
-
Then, switch to the eGurkha\lib directory, and issue the following command:
mgrdebugoff.bat
-
If the command executes successfully, the output of Figure 8 will appear, indicating that the eG manager service (eGurkhaTomcat) has been started on the secondary node.
Note:
If the eG manager is to run on more than one secondary node, then steps 1-4 above needs to be followed on each such node.
Creating a Role Using the Failover Cluster Manager
Next, proceed to create a role for the eG manager application in any node of the cluster. For that, follow the steps below:
-
Login to any node in the cluster.
-
Launch the Failover Cluster Manager from Control Panel -> Administrative Tools. Figure 9 will then appear.
Figure 9 : The Failover Cluster Manager
-
Now, proceed to create a new role. For that, expand the node representing the cluster in the tree-structure in the left panel of Figure 10, right-click on the Roles sub-node within, and pick the Configure Role option from the menu that pops out.
-
Figure 11 will appear. Click Next to begin role creation.
-
Figure 12 will then appear. From the list box in Figure 12, select the type of role for which you want to configure high availability. To configure HA for the eGurkhaTomcat service of the eG manager, first select Generic Service as the role type from this list box. Then, click Next.
Figure 12 : Selecting service for which HA is to be configured
-
Figure 13 will then appear. Select the eGurkhaTomcat service from the list box in Figure 13 and click Next.
Figure 13 : Selecting eGurkhaTomcat service as the service for which HA is to be configured
-
Figure 14 will then appear. Here, provide a unique Name for the new role and click Next. This is the name the clients will use in order to access the eGurkhaTomcat service on the cluster.
-
This will invoke Figure 15. From Figure 15, select the 'shared storage' that you want to assign to the clustered role. This storage will be shared by all nodes in the cluster. Here, make sure that you choose the 'shared drive' on which the eG manager has been installed. After selecting the shared storage volume, click Next to proceed.
-
Figure 16 will then appear. Click Next here to move on.
Figure 16 : Clicking Next without configuring registry keys to be replicated
-
Figure 17 will then appear. Review the properties you have configured for the new role. Make sure you copy IP address displayed against DHCP address on, and the role name displayed alongside this IP address in Figure 17 to clipboard or an editor. This is necessary because, when setting up the eG manager, you would have to include the IP address or role name in the URL of the manager. If you are satisfied with your specifications, click Next.
Figure 17 : Reviewing and confirming the new role's attributes
-
If the role is successfully created, Figure 18 will appear. Click Finish to exit the wizard.
Figure 18 : Clicking Finish to exit the wizard after successful role creation
-
The role you created will now appear in the Roles panel of the Failover Cluster Manager.
Figure 19 : The new role being displayed in the Roles panel of the Failover Cluster Manager
Configuring the eG Database
Now, log into the primary node, and proceed to configure the eG database. For that, follow the steps detailed in Configuring the eG Database .
Configuring the URL for Accessing the eG Manager
After configuring the eG database, proceed to configure the basic manager settings (see Figure 20), as explained in Configuring the Basic Manager Settings.
Figure 20 : Configuring the URL for accessing the manager
When configuring the eG Manager URL, make sure that you specify the URL in the following format
http://<RoleName_of_eG_Manager_in_ClusterManager>.<Domain_Name>:<PortNumber>
For instance, in the example illustrated by Figure 20 above, role name is: egmgrwincluster. If egdev.local is the domain name and the eG manager port is 7077, the eG Manager URL will be:
http://egmgrwincluster.egdev.local:7077
For an SSL-enabled manager, the URL will be:
https://egmgrwincluster.egdev.local:7077
Finally, click the Update button in Figure 20 to save the changes.