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

Investigate very slow downloads from worker to Kiwix #23

Closed
rgaudin opened this issue Dec 23, 2023 · 1 comment
Closed

Investigate very slow downloads from worker to Kiwix #23

rgaudin opened this issue Dec 23, 2023 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@rgaudin
Copy link
Member

rgaudin commented Dec 23, 2023

Worker downloads at very slow speed (up to 50Mbps only) while runnig Ookla's speedtest at the same time shows that server can handle 700Mbps (at this time) and client (in docker) can handle close to 1Gbps.

Progress reporting might be an issue

@kelson42 kelson42 added bug Something isn't working question Further information is requested labels Dec 24, 2023
@rgaudin
Copy link
Member Author

rgaudin commented Jan 3, 2024

This was due to a combination of factors:

  • updating the progressbar every time we received data. I'm not sure about the actual impact but we're now updating it at most once every second (unless a download completes).
  • download buffer was set to 1KiB which is way too low for large downloads.
  • worker was not setting concurrency, resulting in parallel downloads (up to 28 on this worker) which is not efficient on this downloader.

The last two are results of the naive, initial downloader implementation. Although it's working, it's not reliable enough for production so I am adding #9 to the project for rollout.

With the fix, we're seeing reasonable download speeds. A 32GB image (downloading 11GiB) starting on an empty cache takes 5'30 from start to finish.

@rgaudin rgaudin closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
No open projects
Development

No branches or pull requests

2 participants