[Pacemaker] Shutdown of pacemaker service takes 20 minutes

Johan Huysmans johan.huysmans at inuits.be
Tue Jun 4 14:30:05 UTC 2013


Hi,

Adding a timeout for the stop() operation worked like a charm.

Thanks for the input!

gr.
Johan

On 30-05-13 14:20, Florian Crouzat wrote:
> Le 30/05/2013 13:57, Johan Huysmans a écrit :
>>
>> When my resource has received the stop command, it will stop, but this
>> takes some time.
>> When the status is monitored during shutdown of the resource this will
>> fail, as the resource is configured as on-fail="block",
>> the resource is set to unmanaged.
>>
>> Is this a bug? or can I workaround this issue?
>
>
> You should probably override the default timeout for the stop() 
> operation with a custom values of your choice.
>
> See table 5.3 
> http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_resource_operations.html#_monitoring_resources_for_failure
>
> Eg:
>
> primitive foo ocf:x:y \
>         op monitor on-fail="restart" interval="10s" \
>         op start interval="0" timeout="2min" \
>         op stop interval="0" timeout="5min"
>
>





More information about the Pacemaker mailing list