Re: [PATCH v2 21/22] rpc: don't let systemd shutdown daemon while saving VMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 12, 2025 at 17:18:01 +0000, Daniel P. Berrangé wrote:
> The service unit "TimeoutStopSec" setting controls how long systemd
> waits for a service to stop before aggressively killing it, defaulting
> to 30 seconds if not set.
> 
> When we're processing shutdown of VMs in response to OS shutdown, we
> very likely need more than 30 seconds to complete this job, and can
> not stop the daemon during this time.
> 
> To avoid being prematurely killed, setup a timer that repeatedly
> extends the "TimeoutStopSec" value while stop of running VMs is
> arranged.
> 
> This does mean if libvirt hangs while stoppping VMs, systemd won't
> get to kill the libvirt daemon, but this is considered less harmful
> that forcefully killing running VMs.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> ---
>  src/rpc/virnetdaemon.c | 53 +++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 52 insertions(+), 1 deletion(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux