Closed GuillaumeHullin closed 3 years ago
The solution looks good to me. One possible solution could be to put a
sleep $(($RANDOM%60)) &&
In the cron line, but I think your solution is the proper one. At this point I would raise the random interval up to 90 seconds, since some speedtest goes over 30 seconds (and this is why I needed to pursue the cron approach)
I see, originally I went for 120 but I got some timeout while testing. Seems to work with 90.
Added 90 secs random value to speedtest execution.
I have a network with 2 pfSense running with the same hardware ISP routers... the problem I encounter is that the cron task for the speedtest is starting a test in the same time for both pfSense. Obviously that create a wrong result cause they stress the upload and download in the same time.
My solution is bit "random" so if somebody got a better one I'll take it :)
I added a random sleep between 1 and 60 seconds...