[Linux-cluster] [PATCH] resource check time override

Lon Hohberger lhh at redhat.com
Tue Dec 5 20:45:00 UTC 2006


I've got a patch which allows one to override the hard-coded resource
check timings actions in cluster.conf.  It lets you do what you could
previously only do by hand-editing the resource-agents on a per-resource
basis:

<rm>
  <resources>
    <script name="rarrr" file="./rg_test">
      <action name="status" interval="120"/>
    </script>
  </resources>

  <service name="test12" autostart="0">
    <action name="status" interval="120"/>
    <script ref="rarrr"/>
  </service>
</rm>

The default "depth" for replacing is '*', or 'all depths'.  This means
that the most-intensive checking is done always.  If you want to
override just one depth of resource checking, you can do that, but you
have to specify the depth, i.e.:

    <action name="status" interval="120" depth="10"/>

Note that originally, I was going to make it work only in the global
<resources> block.  The current implementation does allow you to specify
it inline - but it might prove confusing to allow people to do it this
way (because it looks like a resource).  Additionally, the use of the
name "action" as a resource-type is not allowed.

Patches against head (will apply to RHEL5/50 branches) and RHEL4

Comments?

-- Lon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgmanager-override-rhel4.patch
Type: text/x-patch
Size: 6073 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20061205/03c239fe/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgmanager-override.patch
Type: text/x-patch
Size: 6050 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20061205/03c239fe/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20061205/03c239fe/attachment.sig>


More information about the Linux-cluster mailing list