roest01 / docker-speedtest-analyser

Automated docker speedtest analyser tool with included web interface to monitor your internet speed connection over time. Setup at home on your NAS (Synology, QNAP tested) and the container runs hourly speedtests. The speedtest results are displayed in an webinterface as line graph(s) over the day.
Other
108 stars 47 forks source link

Address frequent best server failures on the hour #78

Closed owenleonard closed 3 years ago

owenleonard commented 3 years ago

Speedtest frequently fails to find the best server on the hour. Google searches revealed this to be due to high server load. To address this, I added a random sleep (jitter), and retry attempts. Both can be configured and disabled via environment variables.

Additionally, I defaulted the results to 0.0 so you can see in the graph when speedtest failures occurred.

owenleonard commented 3 years ago

@roest01 I'm pretty sure that between this PR and #77, issues #68, #71, #74, #75 will be resolved. At least, I'm no longer seeing those issues on my server.

owenleonard commented 3 years ago

ah, looks like my PRs should go against the develop branch. I'll close these and create new ones.