[Pacemaker] [PATCH] change timeouts, startup behaviour ocf:heartbeat:ManageVE (OpenVZ VE cluster resource)
Tim Small
tim at seoss.co.uk
Tue Mar 12 12:58:44 UTC 2013
The attached patch changes the behaviour of the OpenVZ virtual machine
cluster resource agent, so that:
1. The default resource stop timeout is greater than the hardcoded
timeout in "vzctl stop" (after this time, vzctl forcibly stops the
virtual machine) (since failure to stop a resource can lead to the
cluster node being evicted from the cluster entirely - and this is
generally a BAD thing).
2. The start operation now waits for resource startup to complete i.e.
for the VE to "boot up" (so that the cluster manager can detect VEs
which are hanging on startup, and also throttle simultaneous startups,
so as not-to overburden the node in question). Since the start
operation now does a lot more, the default start operation timeout has
been increased.
3. Backs off the default timeouts and intervals for various operations
to less aggressive values.
Cheers,
Tim.
n.b. There is a bug in the Debian 6.0 (Squeeze) OpenVZ kernel such that
"vzctl start <VEID> --wait" hangs. The bug doesn't impact the
OpenVZ.org kernels (and hence won't impact Debian 7.0 Wheezy either).
--
South East Open Source Solutions Limited
Registered in England and Wales with company number 06134732.
Registered Office: 2 Powell Gardens, Redhill, Surrey, RH1 1TQ
VAT number: 900 6633 53 http://seoss.co.uk/ +44-(0)1273-808309
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ManageVE.patch
Type: text/x-patch
Size: 1777 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130312/f964072d/attachment-0004.bin>
More information about the Pacemaker
mailing list