[Pacemaker] Finally. A REAL question.

Andrew Beekhof andrew at beekhof.net
Mon Nov 18 22:55:07 UTC 2013


On 19 Nov 2013, at 6:00 am, Rob Thomas <xrobau at gmail.com> wrote:

> On Mon, Nov 18, 2013 at 9:17 PM, Andrew Beekhof <andrew at beekhof.net> wrote:
> 
>> my eyes! my eyes!
> 
> So... What's the -right- way to do it then? 8)


http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-sets-collocation.html

      <rsc_colocation id="pcs_rsc_colocation">
        <resource_set id="pcs_rsc_set">
          <resource_ref id="httpd"/>
          <resource_ref id="asterisk"/>
        </resource_set>
      </rsc_colocation>

is almost right, but misses score=INFINITY in the rsc_colocation tag.
You can do that with:

   pcs constraint colocation set httpd asterisk setoptions score=INFINITY

Note that this is very different to the command I asked you about:

   pcs constraint colocation add asterisk with httpd

Which creates something more like:

   <rsc_colocation id="pcs_rsc_colocation" rsc="asterisk" with-rsc="httpd" score="INFINITY"/>
   
See http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_mandatory_placement.html

> 
> --Rob
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131119/f913c6ef/attachment-0004.sig>


More information about the Pacemaker mailing list