On 11/12/2012 05:49 PM, Rafał Radecki wrote:
> Hi all.
> 
> I have a cluster of 4 nodes:
> - lb1.local, lb2.local: pound, varnish, memcache, nginx;
> - storage1, storage2: no primitives/resources yet.
> I want to set up an opt-in cluster
> http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ch06s02s02.html.
> My config is:
> 
> node lb1.local
> node lb2.local
> node storage1
> node storage2
> primitive LBMemcached lsb:memcached \
>         meta target-role="Started"
> primitive LBPound lsb:pound
> primitive LBVIP ocf:heartbeat:IPaddr2 \
>         params ip="10.0.2.200" cidr_netmask="32" \
>         op monitor interval="30s" \
>         meta priority="100" target-role="Started" is-managed="true"
> primitive LBVarnish lsb:varnish \
>         meta target-role="Started"
> primitive MCVIP ocf:heartbeat:IPaddr2 \
>         params ip="192.168.100.200" cidr_netmask="32" \
>         op monitor interval="30s" \
>         meta target-role="Started"
> location LBMemcached_not_storage1 LBMemcached -inf: storage1
> location LBMemcached_not_storage2 LBMemcached -inf: storage2
> location LBMemcached_prefer_lb1 LBMemcached 100: lb1.local
> location LBMemcached_prefer_lb2 LBMemcached 200: lb2.local
> location LBPound_not_storage1 LBPound -inf: storage1
> location LBPound_not_storage2 LBPound -inf: storage2
> location LBPound_prefer_lb1 LBPound 200: lb1.local
> location LBPound_prefer_lb2 LBPound 100: lb2.local
> location LBVIP_not_storage1 LBVIP -inf: storage1
> location LBVIP_not_storage2 LBVIP -inf: storage2

you are missing an explicit score for LBVIP on lb1/lb2 ....

> location LBVarnish_not_storage1 LBVarnish -inf: storage1
> location LBVarnish_not_storage2 LBVarnish -inf: storage2
> location LBVarnish_prefer_lb1 LBVarnish 200: lb1.local
> location LBVarnish_prefer_lb2 LBVarnish 200: lb2.local
> location MCVIP_not_storage1 MCVIP -inf: storage1
> location MCVIP_not_storage2 MCVIP -inf: storage2

and another missing explicit score for MCVIP on lb1/lb2

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now

> colocation LBMemcached_with_MCVIP inf: LBMemcached MCVIP
> colocation LBPound_with_LBVIP inf: LBPound LBVIP
> colocation LBVarnish_with_LBVIP inf: LBVarnish LBVIP
> order LBMemcached_after_MCVIP inf: MCVIP LBMemcached
> order LBPound_after_LBVIP inf: LBVIP LBPound
> order LBVarnish_after_LBVIP inf: LBVIP LBVarnish
> property $id="cib-bootstrap-options" \
>         dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \
>         cluster-infrastructure="openais" \
>         expected-quorum-votes="4" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore" \
>         symmetric-cluster="true" \
>         default-resource-stickiness="1" \
>         last-lrm-refresh="1352476209"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="10" \
>         migration-threshold="1000000"
> 
> The problem is that when I set
> crm_attribute --attr-name symmetric-cluster --attr-value true
> crm_mon:
> ============
> Last updated: Mon Nov 12 17:48:14 2012
> Last change: Fri Nov  9 17:39:24 2012 via crm_attribute on storage1
> Stack: openais
> Current DC: storage2 - partition with quorum
> Version: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14
> 4 Nodes configured, 4 expected votes
> 5 Resources configured.
> ============
> 
> Online: [ lb1.local lb2.local storage1 storage2 ]
> 
> LBVIP   (ocf::heartbeat:IPaddr2):       Started lb1.local
> LBPound (lsb:pound):    Started lb1.local
> LBVarnish       (lsb:varnish):  Started lb1.local
> MCVIP   (ocf::heartbeat:IPaddr2):       Started lb2.local
> LBMemcached     (lsb:memcached):        Started lb2.loca
> 
> but when I set
> crm_attribute --attr-name symmetric-cluster --attr-value false
> crm_mon:
> ============
> Last updated: Mon Nov 12 17:48:43 2012
> Last change: Fri Nov  9 17:39:55 2012 via crm_attribute on storage1
> Stack: openais
> Current DC: storage2 - partition with quorum
> Version: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14
> 4 Nodes configured, 4 expected votes
> 5 Resources configured.
> ============
> 
> Online: [ lb1.local lb2.local storage1 storage2 ]
> 
> As far as I can see I have proper priorities set for my
> primitives/resources. Any clues?
> 
> Best regards,
> Rafal Radecki.
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 





Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to