On Wed, May 19, 2010 at 5:22 PM, mike <[email protected]> wrote:
> Andrew Beekhof wrote:
>>> which is what my DBA was looking for. He wants mysql to failover if
>>> there are 3 successive failures of MySQL but only if those successive
>>> failures occur within 15 minutes.
>>>
>>
>> You want migration-threshold=3 and failure-timeout=900000 (15 * 60 * 1000
>>
> Thanks Andrew,
> I placed the failure-timeout=900000 piece in my resource section like so:
>
> <primitive class="ocf" id="ldirectord" provider="heartbeat"
> type="ldirectord">
>          <instance_attributes id="ldirectord-instance_attributes">
>            <nvpair id="ldirectord-instance_attributes-configfile"
> name="configfile" value="/usr/etc/ha.d/ldirectord.cf"/>
>            <nvpair id="ldirectord-options-migration-threshold"
> name="migration-threshold" value="3"/>
>            <nvpair id="ldirectord-options-failure-timeout"
> name="failure-timeout" value="900s"/>
>          </instance_attributes>
>          <operations>
>            <op id="ldirectord-monitor-2m" interval="2m" name="monitor"
> timeout="20s"/>
>            <op id="ldirectord-start-0" interval="0" name="start"
> timeout="90s"/>
>            <op id="ldirectord-stop-0" interval="0" name="stop"
> timeout="100s"/>
>          </operations>
> </primitive>
>
>
> crm_mon shows this initially:
> Migration summary:
> * Node lvsuat1a.intranet.aeroplan.com:
>   ldirectord: migration-threshold=3 fail-count=2 last-failure=' ~P'
>
>
> but it never changes. The failcount never resets. Am I missing something?

No, it won't reset in 1.0 thats something new in 1.1
In 1.0 it becomes ignored after the specified interval.
_______________________________________________
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