unioslo / zabbix-auto-config

MIT License
2 stars 5 forks source link

Prevent unbounded queue growth #61

Closed pederhan closed 1 year ago

pederhan commented 1 year ago

Fixes #60 by draining the queue if new hosts are collected before the previous hosts in the queue have been consumed. To prevent future unbounded queue growth due to developer errors, the max size of these queues have been set to 1, which makes it explicit that these queues should never contain more than a single collection result at any point.

A warning log message is now generated when the collection rate outpaces the processing rate.

paalbra commented 1 year ago

It would also resolve the older #3