On Sat, Aug 23, 2008 at 00:14, Lars Marowsky-Bree <[EMAIL PROTECTED]> wrote:
> On 2008-08-22T16:35:45, Ben Beuchler <[EMAIL PROTECTED]> wrote:
>
>> I apologize for the cross-post if that's not kosher.  It appears
>> linux-ha still gets considerably more traffic than the pacemaker list.
>>
>> Are these functionally equivalent on a cluster with symmetric-cluster=false?
>>
>> This is the technique in the DRBD w/ v2 cluster document in the wiki
>> (albeit with a score of INFINITY instead of 100):
>>
>> <rsc_location id="drbd0-loc-1" rsc="drbd0">
>>   <rule score="100">
>>     <expression value="node0" attribute="#uname" operation="eq"/>
>>     <expression value="node1" attribute="#uname" operation="eq"/>
>>   </rule>
>> </rsc_location>
>>
>> And these are the type that seem to be favored in Mr. Beekhof's
>> excellent "Configuration Explained" document:
>>
>> <rsc_location id="drbd0-loc-1" rsc="drbd0" node="node0" score="100"/>
>> <rsc_location id="drbd0-loc-2" rsc="drbd0" node="node1" score="100"/>
>>
>> It seems both approaches should result in the same thing.  Any
>> particular reason to prefer one over the other?
>
> I prefer the first, because it has less redundancy.
>
> But no, there is no particular reason.

The second form is convenient for people just starting out (or writing
documentation) since it doesn't require an explanation of rules, how
they work or what they're capable of.
Its basically just a syntactic shortcut.
_______________________________________________
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