[Pacemaker] Balancing of clone resources (globally-unique=true)
Chris Picton
chris at ecntelecoms.com
Fri Nov 12 06:41:30 UTC 2010
I have attached the output as requested
On Thu, 11 Nov 2010 11:21:51 +0100, Andrew Beekhof wrote:
>>> what version is this?
>>
>>
>> This is 1.0.9
>
> Odd. I wouldn't have expected this behavior. Can you attach the
> output
> from cibadmin -Ql please?
>
>
>>> On Tue, Nov 9, 2010 at 5:51 PM, Chris Picton
>>> <chris-SPl7aIeqIQkIqCj4VrxJSQ at public.gmane.org> wrote:
>>>> From a previous thread (crm_resource - migrating/halt a cloned
>>>> resource)
>>>>
>>>> Andrew Beekhof wrote:
>>>>> bottom line, you don't get to chose where specific clone instances
>>>>> get placed.
>>>>
>>>> In my case, I have a clone:
>>>> primitive clusterip-9 ocf:heartbeat:IPaddr2 \
>>>> params ip="192.168.0.9" cidr_netmask="24" \
>>>> clusterip_hash="sourceip" nic="bondE" \ op monitor
>>>> interval="30s" \
>>>> meta resource-stickiness="0"
>>>>
>>>> clone clusterip-9-clone clusterip-9 \
>>>> meta globally-unique="true" clone-max="2" \
>>>> clone-node-max="2" resource_stickiness="0"
>>>>
>>>> When I start the clone, both instances start on the same node:
>>>>
>>>> Clone Set: clusterip-9-clone (unique)
>>>> clusterip-9:0 (ocf::heartbeat:IPaddr2): Started
>>>> slb-test-01.ecntelecoms.za.net
>>>> clusterip-9:1 (ocf::heartbeat:IPaddr2): Started
>>>> slb-test-01.ecntelecoms.za.net
>>>>
>>>> The second node has a colocated set of standalone IP addresses
>>>> running, so I assume that pacemaker is pushing both clusterip
clones
>>>> to the second node to balance resources.
>>>>
>>>> My scores look like (0 for everything to do with this resource)
>>>> clone_color: clusterip-9-clone allocation score on
>>>> slb-test-01.ecntelecoms.za.net: 0
>>>> clone_color: clusterip-9-clone allocation score on
>>>> slb-test-02.ecntelecoms.za.net: 0
>>>> clone_color: clusterip-9:0 allocation score on
>>>> slb-test-01.ecntelecoms.za.net: 0
>>>> clone_color: clusterip-9:0 allocation score on
>>>> slb-test-02.ecntelecoms.za.net: 0
>>>> clone_color: clusterip-9:1 allocation score on
>>>> slb-test-01.ecntelecoms.za.net: 0
>>>> clone_color: clusterip-9:1 allocation score on
>>>> slb-test-02.ecntelecoms.za.net: 0
>>>> native_color: clusterip-9:0 allocation score on
>>>> slb-test-01.ecntelecoms.za.net: 0
>>>> native_color: clusterip-9:0 allocation score on
>>>> slb-test-02.ecntelecoms.za.net: 0
>>>> native_color: clusterip-9:1 allocation score on
>>>> slb-test-01.ecntelecoms.za.net: 0
>>>> native_color: clusterip-9:1 allocation score on
>>>> slb-test-02.ecntelecoms.za.net: 0
>>>>
>>>>
>>>>
>>>> Is there a way to request pacemaker to try split the clones up if
>>>> possible over the available nodes?
>>>>
>>>> Regards
>>>>
>>>> Chris
>>>>
>>>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cibadmin-Ql.txt.bz2
Type: application/x-bzip
Size: 4061 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101112/d9ef634f/attachment-0004.bin>
More information about the Pacemaker
mailing list