On 23/08/2013, at 5:54 PM, Ferenc Wagner <wf...@niif.hu> wrote:

> Andrew Beekhof <and...@beekhof.net> writes:
> 
>> On 22/08/2013, at 10:08 PM, Ferenc Wagner <wf...@niif.hu> wrote:
>> 
>>> Our setup uses some cluster wide pieces of meta information.  Think
>>> access control lists for resource instances used by some utilities or
>>> some common configuration data used by the resource agents.  Currently
>>> this info is stored in local files on the nodes or replicated in each
>>> primitive as parameters.
>> 
>> Are you aware that resources can
>> - have multiple sets of parameters, and
> 
> No, I'm not sure what you're referring to here.

http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Pacemaker_Explained/#s-reusing-config-elements

A typical resource:

    <primitive id="ping-1" class="ocf" type="ping" provider="pacemaker">
      <instance_attributes id="ping-1-params">
        <nvpair id="ping-1-debug" name="debug" value="true"/>
        <nvpair id="ping-1-host_list" name="host_list" value="172.16.1.4"/>
        <nvpair id="ping-1-name" name="name" value="connected"/>
      </instance_attributes>
      <operations>
        <op id="ping-1-monitor-60s" interval="60s" name="monitor"/>
      </operations>
    </primitive>

One with multiple sets of attributes:

    <primitive id="ping-1" class="ocf" type="ping" provider="pacemaker">
      <instance_attributes id="ping-1-params">
        <nvpair id="ping-1-debug" name="debug" value="true"/>
        <nvpair id="ping-1-host_list" name="host_list" value="172.16.1.4"/>
        <nvpair id="ping-1-name" name="name" value="connected"/>
      </instance_attributes>
      <instance_attributes id="ping-1-extra-params">
        <nvpair id="ping-1-extra" name="extra" value="something"/>
      </instance_attributes>
      <operations>
        <op id="ping-1-monitor-60s" interval="60s" name="monitor"/>
      </operations>
    </primitive>

One with attributes defined by the previous resource:

    <primitive id="ping-2" class="ocf" type="ping" provider="pacemaker">
      <instance_attributes id="ping-2-params">
        <nvpair id="ping-2-host_list" name="host_list" value="172.16.1.3"/>
        <nvpair id="ping-2-name" name="name" value="connected"/>
      </instance_attributes>
      <instance_attributes id-ref="ping-1-extra-params"/>
      <operations>
        <op id="ping-2-monitor-60s" interval="60s" name="monitor"/>
      </operations>
    </primitive>


>  I guess not
> rsc_defaults or node specific parameters of clones.  Maybe rules?  I
> can't see them immediately useful.  Could you please provide a pointer
> into Pacemaker 1.1 explained?  (Btw. 5.7.2.3. Disabling a Monitor
> Operation misses the re-enable example at the end of the section.)
> 
>> - share sets of parameters
> 
> Do you mean by using resource templates?  Those indeed sound useful,
> thanks for the pointer!  Used templates could store shared resource
> parameters, and unused templates could store global cluster parameters
> used by our management utilities.  I'll give this a shot.
> -- 
> Thanks,
> Feri.
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to