On 09/20/2017 01:26 PM, Stefan Priebe - Profihost AG wrote:
Hi,
Am 20.09.2017 um 10:36 schrieb Thomas Lamprecht:
On 09/20/2017 06:40 AM, Stefan Priebe - Profihost AG wrote:
Nobody?
We register the restart command from pveproxy with the $use_hup parameter,
this then send a SIGHUP when calling pveproxy restart - which gets
mapped to
systemctl reload-or-restart pveproxy.service, which sends the HUP signal to
the main process, which in turn does an exec on itself. So a restart is a
reload in this case.
As we already use use our Daemons class' "leave_children_open_on_reload"
functionality to keep the workers running during a restart open connection
should stay. But as the worker always get a SIGTERM even with this option
this is not always the case, I will investigate this behavior but this
is not
responsible for longer restart times.
Is suspect that you suffered from a bug we fixed about a week ago [1] where
worker signal handlers got overwritten and thus daemons could always be
stopped grafully. restarting may have been affected to by it.
The fix is currently already in the no-subscription repo.
If you still experience this behavior could you please do a
`pveproxy restart` and post the logs from during the restart,
something like:
# journalctl -u pveproxy.service --since -10min
thanks for the reply. Does this also apply to PVE 4? Sorry i missed that
info.
Yes. But it should happen more often with PVE 5.
Affecting packages had the fix already backported and applied in git.
It may need a little time until all get released to all debian repos, though.
cheers,
Thomas
_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel