-
Notifications
You must be signed in to change notification settings - Fork 86
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
juliaup update
is initially slow to check versions db
#1096
Comments
Yes, that makes a ton of sense: the idea is that this file is small so that it can be checked really quickly (clearly not working...). The file is also configured to not be cached by the CDN so that updates are picked up by clients quickly. I'm not sure what the best strategy is, probably really depends on the CDN, right? |
Actually, I caught the slowdown with timing printing added and it seems to be something else. This is with main...ib/timing Note I set the db patch version back one, just to exercise all code paths, but that is only hit after the problematic slow one.
Then immediately after
|
I've been looking into why
juliaup update
hangs for a while before doing any substantial downloads, even on very fast connections.I think the issue is that this file may be served via a CDN that needs its caching settings tweaked to be less lazy
https://julialang-s3.julialang.org/juliaup/RELEASECHANNELDBVERSION
It's a very small file, so doesn't make any sense that it takes 7s to download.. so I believe the time is the CDN refreshing a local cache.
From a profile during that quiet ~10s it can be seen that
update_version_db
is spending 7s waiting onreqwest
.cc. @giordano @davidanthoff
The text was updated successfully, but these errors were encountered: