Comments (3)
Hi @fsalazar1977, thanks for reaching out. This is not within the scope of this project, but I'll leave the issue open since I've also observed this multiple times over while testing the Blizzard client. I have something you can try to improve this. Here is what I know:
- Blizzard Client supports persistent connections to the endpoint (cache/CDN), and this is widely used in production
- Blizzard Client only makes one request at a time to my endpoint (cache)
- Nginx supports persistent connections to the client while proxying, but not for fetching from the CDN. This makes for a lot of overhead when fetching 1mb chunks like we do with slicing. The exception to this is
upstream your_upstream { keepalive 100; server 1.1.1.1:80; }
etc., but for that to fit our use case, it would require this module or any of its alternatives. (now I come to think of it, this wouldn't be such a bad idea) This would make our configuration incompatible with upstream Nginx.
I strongly suspect that the Blizzard client opens a connection to each of the addresses returned from a DNS query and tries to fetch from each endpoint in parallel. (this is why we ran into the ETag problem - chunks from the same file coming from different upstreams) In my case, this would be:
level3.blizzard.com. 86367 IN CNAME download.blizzard.com.c.footprint.net.
download.blizzard.com.c.footprint.net. 197 IN A 4.26.246.126
download.blizzard.com.c.footprint.net. 197 IN A 4.26.247.126
blzddist1-a.akamaihd.net. 300 IN CNAME blzddist1-a.akamaihd.net.edgesuite.net.
blzddist1-a.akamaihd.net.edgesuite.net. 21600 IN CNAME a1219.d.akamai.net.
a1219.d.akamai.net. 20 IN A 173.223.106.33
a1219.d.akamai.net. 20 IN A 173.223.106.42
Could you try to assign multiple addresses to your Nginx server and adding them to your DNS zone? Maybe this will cause the Blizzard client to open more parallel connections to your cache. (adding more records to /etc/hosts won't work - that lookup always returns on the first-found record)
from ansible-lanparty.
Hi @ti-mo thanks for your help, it seems that is working this way, I will be doing more testing
from ansible-lanparty.
@fasa1977 let me know if you have any further results, closing for now.
from ansible-lanparty.
Related Issues (14)
- Replace TC script with pyroute2 implementation HOT 1
- New steam DNS entry HOT 2
- Twitch caching prohibited by TLS HOT 1
- Similar project which might be useful HOT 2
- Blizzard Updates not working HOT 1
- Twitch caching no longer works HOT 3
- Re-work default apt sources configuration HOT 1
- Steam site not catching 100% HOT 2
- Steam and Games Repository HOT 1
- Ubuntu18: Could not create temporary file for /var/lib/apt/extended_states HOT 2
- Improve custom CS:GO Warmod menu
- Riot CDN is now served over HTTPS HOT 69
- DHCPd dyndns clause seems to be broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-lanparty.