openwisp / openwrt-openwisp-monitoring

OpenWRT monitoring agent for openwisp-monitoring
https://openwisp.io/docs/dev/openwrt-monitoring-agent/
GNU General Public License v3.0
23 stars 20 forks source link

[feature] Add retry mechanism with randomized backoff for HTTP requests #107

Closed nemesifier closed 1 year ago

nemesifier commented 1 year ago

The agent seems to have a backoff mechanism: https://github.com/openwisp/openwrt-openwisp-monitoring/blob/master/openwisp-monitoring/files/monitoring.agent#L186.

We should randomize the backoff in a similar way to how we'll implement it here: https://github.com/openwisp/openwisp-config/issues/186.

This will help to avoid devices sending requests all at the same time, which can easily overload small systems.