Re: vmd: rate-limit to avoid reboot loops

2018-10-08 Thread Pratik Vyas
* Reyk Floeter [2018-10-05 23:32:44 +0200]: Hi, it sometimes happens that a VM is stuck in a reboot loop. This isn't very pleasent for vmd, so this diff attempts to introduce a hard rate-limit: if the VM rebooted after less than VM_START_RATE_SEC (6) seconds, increment a counter. If this hap

Re: vmd: rate-limit to avoid reboot loops

2018-10-06 Thread Reyk Floeter
> Am 06.10.2018 um 10:55 schrieb Consus : > >> On 23:32 Fri 05 Oct, Reyk Floeter wrote: >> Hi, >> >> it sometimes happens that a VM is stuck in a reboot loop. This isn't >> very pleasent for vmd, so this diff attempts to introduce a hard >> rate-limit: if the VM rebooted after less than VM_STA

Re: vmd: rate-limit to avoid reboot loops

2018-10-06 Thread Consus
On 23:32 Fri 05 Oct, Reyk Floeter wrote: > Hi, > > it sometimes happens that a VM is stuck in a reboot loop. This isn't > very pleasent for vmd, so this diff attempts to introduce a hard > rate-limit: if the VM rebooted after less than VM_START_RATE_SEC (6) > seconds, increment a counter. If thi

vmd: rate-limit to avoid reboot loops

2018-10-05 Thread Reyk Floeter
Hi, it sometimes happens that a VM is stuck in a reboot loop. This isn't very pleasent for vmd, so this diff attempts to introduce a hard rate-limit: if the VM rebooted after less than VM_START_RATE_SEC (6) seconds, increment a counter. If this happens VM_START_RATE_LIMIT (3) times in a row, sto