I noticed recently that installing snaps can be slow, specifically during the downloads step. I wanted to see if this was just me or more widespread so did some testing. I tested installing snaps on remote digital ocean servers in New York and London, and consistently get around 7MB/s / 60Mb/s. The graphs below are taken from the digital ocean dashboard, showing the peaks as I’m downloading snaps.
These boxes have super fast connections, and can get files from the archive nice and quickly, even when not using the hosting provider cache. But grabbing from the store feels super slow by comparison. Is this a known issue, and is it currently being investigated?
and check the speed it reports for the last download (the actual snap; the others are just redirects and metadata).
If you could also try with libreoffice and/or other largish snaps and do a couple attempts for each and get us that data, that’d be appreciated.
FWIW, my own unscientific tests seem to back up your observation up to a point: I got about 40 MB/s (Bytes, not bits; this is what curl reports) for core downloads, over 10 attempts or so. A larger snap e.g. libreoffice, at 351 MB, got very erratic speeds: one attempt got 350 kB/s, another one got 10-11 MB/s, third attempt got 50 MB/s and fourth got about 200 kB/s again; a few subsequent tries saw speeds as high as 80 MB/s. rocketchat-server, at 150 MB size, got similarly erratic download speeds.
What I’m mainly interested in is whether these all come from internap URLs, because we may need to troubleshoot this on the CDN side. These don’t come directly from the store (unless they do which is why I’m asking you to confirm you’re getting Internap URLs).
“files from the archive” is not really comparing the same thing, as the archive is http and inside most clouds, as opposed to https to the public internet.
Also comparing apples to oranges. dl.google.com no doubt has a local server near your west-coast linode unit. Hitting api.snapcraft.io incurs latency from the west coast US to London. For the download, 80MB/s once the snap is cached in a local-ish CDN mirror seems pretty good to me.
Old thread I know, but curious if anyone is noticing any slowdown today. I’m on the west coast (Canada) and I’m getting 250-365 kB/s when installing snaps. Other sites, etc - no issues. Performing additional testing.
This is way off topic for this thread - last post, but wanted it in for completion sake so that I did not send anyone down a rabbit hole with my original post.
TLDR: speed issues were due to a bad state on my own machine.
I’ve noticed - despite having a 200/10Mbps connection that I get anywhere between 80kB/s to 700kB/s. I’ve been struggling to get freecad installed for the last couple of days because of it. Any news on what’s happening?
This is what I got near the end (after about an hour of downloading):
$ sudo snap install freecad
[sudo] password for hazrpg:
error: cannot perform the following tasks:
- Download snap "freecad" (4) from channel "stable" (received an unexpected http response code (504) when trying to download https://068ed04f23.site.internapcdn.net/download-snap/6gjU50q0lEDaMTtSUxYoVDSmjR5fERpB_4.snap?t=2018-03-28T14:00:00Z&h=92ac243150fc6e765bc55be77827fbc40f244f35)