On Wed, May 12, 2010 at 04:29:47PM +0100, Luca Bigliardi wrote:
> Signed-off-by: Luca Bigliardi <[email protected]>
> ---
>  daemons/ganeti-noded |   13 ++++++++++++-
>  1 files changed, 12 insertions(+), 1 deletions(-)
> 
> diff --git a/daemons/ganeti-noded b/daemons/ganeti-noded
> index 8121041..1d10145 100755
> --- a/daemons/ganeti-noded
> +++ b/daemons/ganeti-noded
> @@ -92,6 +92,16 @@ def _RequireJobQueueLock(fn):
>    return wrapper
>  
>  
> +class MlockallRequestExecutor(http.server.HttpServerRequestExecutor):
> +  """Custom Request Executor class that ensures NodeHttpServer children are
> +  locked in ram.
> +
> +  """
> +  def __init__(self, *args, **kwargs):
> +    utils.Mlockall()
> +    http.server.HttpServerRequestExecutor.__init__(self, *args, **kwargs)
> +
> +

Hmm, why do we want the children too locked? Wouldn't it be possible to
fallback and execute the powercycle request from the parent node daemon?

iustin

Reply via email to