Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tester worker #11

Closed
rgaudin opened this issue May 29, 2024 · 1 comment · Fixed by #22
Closed

Tester worker #11

rgaudin opened this issue May 29, 2024 · 1 comment · Fixed by #22
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rgaudin
Copy link
Member

rgaudin commented May 29, 2024

Tester worker is the independent speedtest image/container that does the actual speedtest.

It's input is an URL to test and returns test results as JSON

{
  "started_on": "ISO formatted datetime",
  "status": "success|error",
  "error": "Error reason",
  "ip": "Current Public IP",
  "asn": "Current Public IP AS",
  "isp": "Current Public IP ISP",
  "country": "Current Public IP Country",
  "location": "Current Public IP City",
  "latency": "Average Ping result to netloc of URL",
  "size": "Size in bytes of downloaded URL",
  "duration": "Duration in seconds (micro?) of the download",
  "speed": "Speed in bytes per second of the download"
}

I'm not sure about IP-related data. We don't want to store just the IP as associated data might change over time and we want the DB to have all meaningful data. Still we could:

  • query an online service (simplest but prone to failures or denial)
  • embedded a free IP database (need to check if we can get it all in free sets) but it's more work and needs periodic updates
  • submit just the IP and have the backend do what's on the previous line
@rgaudin rgaudin added the enhancement New feature or request label May 29, 2024
@rgaudin rgaudin added this to the MVP milestone May 29, 2024
@rgaudin
Copy link
Member Author

rgaudin commented May 31, 2024

It is important that the downloads are made using a custom User-Agent that would include speedtester/robot (see #3)

@elfkuzco elfkuzco linked a pull request Jul 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants