Operating System - HP-UX
1827844 Members
1265 Online
109969 Solutions
New Discussion

Re: Basic Cluster Question

 
Kathir Lakshmanan
Honored Contributor

Basic Cluster Question

Running HP Openview OVO 8.x on MCSG 11.16
The Cluster control files were created by the Openview Installation Software. Everything is working fine. But the cntl file was created with just one service

SERVICE_NAME[0]="test_service"
SERVICE_CMD[0]="/etc/cmcluster/test/test.mon"
SERVICE_RESTART[0]="-r 1"

The test.mon points to three diff monitor files one for oracle and two are openview relates with lists of processes.

In this scenario, is it a good practice to have multiple services instead of just one? What is the advantage / disadvantage of having multiple services Vs Single Service?

I know very little about clustering, Just looking for some best practice and whether I should continue with one service or go for multiple services...

-Kathir
5 REPLIES 5
Stephen Doud
Honored Contributor

Re: Basic Cluster Question

A service is a trigger for Serviceguard.
If the service has failed (the monitor script exitted because it did not detect a critical process), it will cause (after the sole restart allowed) Serviceguard to move the package to the other server (conditional on AUTO_RUN and Node Switching parameter settings at the time).

Whether you configure multiple process names in a single Service, or 3 Services each monitoring it's own process makes no difference - if any of the critical processes ceases to exist, SG will react the same way and fail the package over.
Therefore, for ease of managment - let one monitor watch all 3 processes.
Steven E. Protter
Exalted Contributor

Re: Basic Cluster Question

Shalom,

My answer is that it depends.

If you have three processes that need the be monitored and all three are required then all three should be monitored by one monitor that tries to correct any problems it finds.

Your run requirements determine how to set up the monitor.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kathir Lakshmanan
Honored Contributor

Re: Basic Cluster Question

Thanks, As I understood, all the mon service require is a return code of 0. If the return code is non zero then it tries to restart and if the restart attempt is failed then it fails over to the other node.

Two questions,

When I specify '-r 1' for restart where it does it look for the restart script?

If the one service I defined calls 3 monitor scripts and those three scripts are monitoring roughly 6 Oracle Processes and 20 Openview Processes and 1 OV communication process.

Instead of this one service, If I group the processes and create multiple services, is there any advantage like, the individual services can be restarted so that the whole application doesnt have to be restarted?

-Kathir
Kevin Wright
Honored Contributor

Re: Basic Cluster Question

The service cmd is the script that restarts.. when processes are not found to be running, the service cmd exits, and then restarts per the parameter until it is 0, then fails and halts the package.
Kathir Lakshmanan
Honored Contributor

Re: Basic Cluster Question

Thanks Kevin..