[pve-devel] pve api offline during log rotation

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Wed Sep 20 06:40:48 CEST 2017


Nobody?

Stefan

Excuse my typo sent from my mobile phone.

> Am 12.09.2017 um 09:27 schrieb Stefan Priebe - Profihost AG <s.priebe at profihost.ag>:
> 
> Hello,
> 
> pveproxy has already a reload command - which seems to reopen the logs
> correctly. Is there any reason why restart is used in the postrotate
> part of logrotate?
> 
> Greets,
> Stefan
> 
>> Am 12.09.2017 um 09:13 schrieb Stefan Priebe - Profihost AG:
>> Hello,
>> 
>> we're heavily using the pve api - doing a lot of calls every few minutes.
>> 
>> Currently the log rotation does a pveproxy restart which makes the API
>> unavailable for a few seconds. This is pretty bad.
>> 
>> I see the following solution:
>> - add a special signal like SIGUSR1 to pveproxy and spiceproxy to just
>> reopen the logs
>> 
>> Greets,
>> Stefan
>> 



More information about the pve-devel mailing list