openwisp / openwisp-config

OpenWRT configuration agent for OpenWISP Controller
https://openwisp.io/docs/stable/openwrt-config-agent/
GNU General Public License v3.0
374 stars 59 forks source link

[change] Change bootup_delay default #187

Closed nemesifier closed 1 year ago

nemesifier commented 2 years ago

We should decide a sensible default for bootup_delay. I think a value of 6 is reasonable (from 0 to 6 seconds startup delay, randomized).

We need to update: code, default confs and README:

okraits commented 2 years ago

6 seconds is rather targeted at small setups, right? For thousands or ten thousands of devices, this could be too small.

nemesifier commented 2 years ago

6 seconds is rather targeted at small setups, right? For thousands or ten thousands of devices, this could be too small.

We could do up to 10 seconds to round it up a bit more. But the key is to help small systems to delay having to face scaling issues too soon. Large systems should have the resources to deal with tuning and scaling up and will necessarily have to adjust many settings of OpenWISP (application server, HTTP server, workers, different data storages) depending on their size.