LGTM

On Thu, Mar 6, 2014 at 2:37 PM, Klaus Aehlig <[email protected]> wrote:

> Add a constant for the time interval at which WConfD checks for
> resource owners that have died and cleans up their resources.
>
> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  src/Ganeti/Constants.hs | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/src/Ganeti/Constants.hs b/src/Ganeti/Constants.hs
> index fd67fab..3473e91 100644
> --- a/src/Ganeti/Constants.hs
> +++ b/src/Ganeti/Constants.hs
> @@ -4000,6 +4000,17 @@ luxidJobqueuePollInterval = 307
>  luxidMaximalRunningJobsDefault :: Int
>  luxidMaximalRunningJobsDefault = 20
>
> +-- * WConfD
> +
> +-- | Time itnervall in seconds between checks that all lock owners are
> still
> +-- alive, and cleaning up the resources for the dead ones. As jobs dying
> without
> +-- releasing resources is the exception, not the rule, we don't want this
> task
> +-- to take up too many cycles itself. Hence we choose a sufficiently large
> +-- intervall, in the order of 5 minutes. To avoid accidental 'same wakeup'
> +-- with other tasks, we choose the next unused prime number.
> +wconfdDeathdetectionIntervall :: Int
> +wconfdDeathdetectionIntervall = 311
> +
>  -- * Confd
>
>  confdProtocolVersion :: Int
> --
> 1.9.0.279.gdc9e3eb
>
>

Reply via email to