Hello Thomas,
Thanks for your help..
I'm using HA-2 only.
but i have to know which files to be modified.. and where to place the
cradmin script. I just workout with apache first., but if i append your
script in the init file, it's not working.
please tell me what are the files to be modified for enabling the
monitor of a service.
i gone through your scripts you gave, i think http have predefined
script for that in "/usr/lib/ocf/resource.d/heartbeat/apache".
the only thing i have to know is that the CIB file configuration. (where
to place that xml file)
Thanks
Jayaprakash S
Thomas Glanzmann wrote:
Hallo,
We in the implementation of heartbeat with squid. we done the script for
starting squid during heartbeat takeover. But when the service (squid in
this case) is stopped, the heartbeat will not takeover. I saw that there
are some resource monitoring solutions are available, but i don't know how
to configure them. I have attached the sample configuration files for your
reference.
Please provide a solution for monitoring the service.
I am pretty new to the topic, but I think you are using HA-1 and
Resource Monitoring - the infrastructure that you need to monitor if a
service is running - is only available with HA-2. I have configured such
a setup with HA-2. It is more or less this:
cibadmin -U -X '
<configuration>
<resources>
<primitive class="ocf" provider="heartbeat" type="tomcattg"
id="tomcat">
<operations>
<op name="monitor" interval="60s" timeout="120s"
start_delay="1m" id="monitor-tomcat"/>
</operations>
</primitive>
</resources>
<constraints/>
</configuration>
'
One thing that is very important is the "monitor operation" this isn't
configured automatically. You also need a OCF Ressource Agent which
supports the monitor operation. I have attached an OCF Agent which does
exactly do this for tomcat you could adopt it for squid.
Thomas
------------------------------------------------------------------------
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems