Giter VIP home page Giter VIP logo

Comments (3)

ti-mo avatar ti-mo commented on August 11, 2024

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.

RobertJamesMichael avatar RobertJamesMichael commented on August 11, 2024

Hi @ti-mo thanks for your help, it seems that is working this way, I will be doing more testing

from ansible-lanparty.

ti-mo avatar ti-mo commented on August 11, 2024

@fasa1977 let me know if you have any further results, closing for now.

from ansible-lanparty.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.