[Pacemaker] Problem when relating it to colocation under placement-strategy environment
Andrew Beekhof
andrew at beekhof.net
Thu Jul 14 04:21:41 UTC 2011
This loop looks wrong
+ for(gIter2 = resource1->rsc_cons; gIter2 != NULL; gIter2 = gIter2->next) {
You're very dependant on the number and order of constraints because
of the way resource1_weight is being updated.
AFAICS, this only works if there is a single non INFINITY constraint.
I'll take a look at the before and after results tomorrow and see if
there might be a better way to achieve the same results.
On Wed, Jul 13, 2011 at 2:20 PM, Yuusuke IIDA
<iidayuus at intellilink.co.jp> wrote:
> I'm sorry.
>
> Because a code for debugging was left, I deleted it.
>
> I attach a new thing.
>
> (2011/07/12 20:40), Yuusuke IIDA wrote:
>>
>> Hi, Yan
>>
>> I report a new problem of "placement-strategy".
>>
>> I set colocation in resource grpPostgreSQLDB1 which provided service and
>> "clnPingd" resource.
>>
>> grpPostgreSQLDB1 depends on clnPingd.
>>
>> When clnPingd of node "act1" stopped, grpPostgreSQLDB1 hoped that I moved
>> to
>> node "sby1".
>>
>> However, it was not carried out.
>>
>> I made a patch to solve this problem.
>>
>> There is the correction in conjunction with the correction of the group
>> resource.
>>
>> Please confirm whether you do not have any problem by this correction.
>>
>> Best Regards,
>> Yuusuke
>>
>>
>>
>> _______________________________________________
>> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
> --
> ----------------------------------------
> METRO SYSTEMS CO., LTD
>
> Yuusuke Iida
> Mail: iidayuus at intellilink.co.jp
> ----------------------------------------
>
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>
More information about the Pacemaker
mailing list