Designing High Availability Solutions with HP Serviceguard and HP Integrity Virtual Machines

26
Figure 14 shows a representation of the Serviceguard VM guest application monitoring architecture. The VM guest
package in the figure is the Serviceguard package, which contains the cmappmgr services and the VM guest service.
Figure 14: Serviceguard VM guest application monitoring architecture
The key components of the Serviceguard VM guest application monitoring include:
Application managerscmappmgr (1 per VM guest application) run as services controlled by the VM guest
package (multiple cmappmgr services can be configured in one VM package; one for each guest application to
be monitored)
Application servercmappserver (1 per VM guest) run as a process in the VM guest to monitor the applications
assigned to an application manager
In this architecture, the application managers and application server communicate via secure socket layer connections
using the Java Secure Socket Extension.
The application manager cmappmgr initiates and maintains a connection with the application server process
cmappserver in the monitored VM guest using TCP/IP port 5315 for communications. Its primary function is to
launch and monitor processes on the VM guest by:
Sending requests to cmappserver to execute specified processes
Sending periodic polling messages to cmappserver to check the status of the monitored process
cmappmgr also performs the following functions:
Writing error messages to Serviceguard package log file and syslog
Exiting with a reason code from terminating monitored process
Exiting when monitored process exits
cmappmgr can be configured to run either as a Serviceguard monitored service or invoked by the customer-defined
scripts (for Legacy packages) or external scripts (for Modular packages) of the VM guest package on the VM host cluster.
VM Guest Package
VM Host
Primary Node Standby Node
VM Host
VM guest package failover
cmappmgr app1
cmappmgr app2
hpvmsg_mon
VM Guest
cmapp server app1
app2
Serviceguard Cluster
VM Guest Package
VM Host
Primary Node Standby Node
VM Host
VM guest package failover
cmappmgr app1
cmappmgr app2
hpvmsg_mon
VM Guest
cmapp server app1
app2
VM Guest Package
VM Host
Primary Node Standby Node
VM Host
VM guest package failover
cmappmgr app1
cmappmgr app2
hpvmsg_mon
VM Guest
cmapp server app1
app2
Serviceguard Cluster