Server health monitoring observes how a server reacts to the operating load and tracks its responsiveness to the client requests. The purpose of this monitoring is to prevent server failures by ensuring that the server always retains sufficient capacity to conduct the required tasks. Most of the standard health monitoring tools support remote server monitoring through the HTTP and HTTPS protocols.
CA SDM automatic failover feature exposes the following HTTP based standard interfaces:
Follow these steps:
Note: Ensure that Tomcat is using JRE 1.7 and ensure that the Tomcat is not using the port number that is configured for the CA SDM components.
The HealthServlet.war file is deployed in the webapps folder. To confirm the deployment, verify that the HealthServlet folder is created in the same webapps folder.
After the successful deployment, the health servlet is ready to perform the health checks. It includes checking the status of the SLUMP and health of the CA SDM processes that are defined in the health.xml file. Find the health.xml file in the following location:
TOMCAT_HOME/webapps/HealthServlet/WEB-INF/classes
For example, webengine process is defined in the pdm_startup.i file as follows:
#define WEBENGINE(_TAG,_HOST,_SLUMP_NAME,_DOMSRVR, _CFG, _WEBDIRECTOR, _RPC_NAME)
The webengine process is defined in the pdm_startup file as follows:
WEBENGINE(webengine, $NX_LOCAL_HOST, web:local, domsrvr, $NX_ROOT/bopcfg/www/web.cfg, "", "rpc_srvr:%h")
From the example, we can find out that the tagname for webengine process is webengine.
Important! If you are creating a new process, the existing process is commented out in the pdm_startup file and new entries are created. Ensure that you look for the tagname in the new process entries.
Important! If you customize health.xml, ensure that the XML does not have any errors and that you restart Tomcat to reflect the changes that are made to the XML.
http(s)://Background_server_name:port_number/HealthServlet/GetHealth
Important! We recommended you to configure the failover servlet on SSL with the access privileges given only to predefined users. This is also applicable while configuring third-party tool to initiate failover.
http(s)://Standby_server_name:port_number/HealthServlet/FailoverServlet
You have enabled auto-failover.
AA-Server-Status: All OK!
AA-Server-Role: BG
AA-Server-Status: NOT OK!
AA-Server-Role: BG
Copyright © 2013 CA.
All rights reserved.
|
|