In the last week or so, we’ve noticed fairly slow transfer speeds of our JS scripts (~ 5MB file) from the Netlify CDN. When we self-host the website in a Docker container, I get about 2 Mbps download speeds. On the other hand, the Netlify equivalent shows 350 kbps. We’ve even tried after a while to ensure that the CDN was warmed up and the assets cascaded (hopefully).
Any particular reason that this could be happening? Anything that we can do at our end to resolve this?
Interesting - our CDN’s internal logs show that we finished sending that file (from the request that you gave me the x-nf-request-id for) 5ms after the request was received, so the slowness is definitely not expected or seen from our side. Thanks for preemptively sending the HAR file since that would have been the next question
The HAR file shows that file downloading (in a separate request), in 522 milliseconds:
Considering that you fetched the file from India, and our nearest CDN node is in Frankfurt or Singapore, I’m not surprised it took a moment to get to you. 522ms isn’t really super slow for that kind of transfer. That’s a lot faster than your “350kbps” which by my read would make that 1.5MByte file take either 4 seconds or 32 seconds depending on whether you meant kilobits or kilobytes. Seems to me it transferred at almost 3MByte/sec.
However, now that I know the domain, I can look across all accesses in our logs and I do see some rather slow loads including one that goes from US<->US, so I’ve asked our operations team to look into this a bit further for us. We’ll get to meet with them next wednesday and will get back to you thereafter!
Hi, @arpit, I’m also showing this HTTP request traveled from India to New York instead of traveling from India to Singapore. This is also probably a large factor in the slow performance.
I think the DNS service being used is sending you to the wrong CDN node.
What DNS service are you using? In other words, what is the IP address for the DNS server for the system which made the HAR file?
Our DNS is hosted on AWS Route53. All the static assets are served by Netlify itself. While the dynamic data is fetched by invocations to our API server in Ohio (us-east-2).
Hi, @arpit, actually I’m talking about a different DNS server.
I am not asking about the authoritative name server for this domain.
What I am asking is this:
What is the name server used as the DNS resolver for the system that made the HAR file?
For example, the laptop I am using to write this uses the two IP addresses 8.8.8.8 and 8.8.4.4 for DNS lookups. I’m looking for this same information for the computer that made the HAR file.
I suspect that computer may be using 1.1.1.1. If so, changing this should resolve the issue.