By mb1990
Why does spaces cdn sometimes take 7-12 seconds to deliver a small asset?
Stack info:
Hardware: 8GM Ram 4 vCPUs
OS: Ubuntu 18
Webserver: nginx with cache setup, h2 working for resources served from NGINX, SSL w/ LE
Spaces CDN: All items have meta data for cache set properly, all files that can be gzipped are and working as expected
PHP: 7.2FPM
Website: Wordpress heavily optimized, 33 requests total, no blocking js/css, scoring 95% on gtmetrix, page size 900kbs
I tested my site and every 15-20 hits there is a single asset that takes 7-12 seconds to load (images, under 130kbs), and its coming from my spaces every time (not nginx). Its weird because my home page is 900kbs and the biggest file i have is 120kbs, so no way it should take 7-12s to load, what can i do to resolve this? I have no render blocking JS or CSS so site will still load but image will be missing for about 6 seconds before it finally received over the wire.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
Sorry to hear about the trouble this has caused, but I’m excited to hear of your use case and get product feedback. This scenario can have a lot of causes, ranging from latency/distance to a problem on our side. Many other things can be packed in the “in between” on those as well, like file size etc.
What I would think may be of the most interest would be to get a good example of one of these items that you can see this happen on fairly consistently. It doesn’t have to happen every time, but if you could say “1 out of every 5 times, this file loads slowly” then that would be a great point of reference. I would then take that and open a ticket with our support team, provide that statistic and link (doesn’t have to be 100% accurate statistic, go with your instinct), and let them know what is happening.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.