OpenSourceLAN / origin-docker

A super simple docker container to run a LAN cache for steam, origin, etc
76 stars 18 forks source link

Slow Blizzard games download #15

Open RobertJamesMichael opened 5 years ago

RobertJamesMichael commented 5 years ago

Hi, I am testing the speed, Blizzard is downloading very slow on "new" downloads, about 500 KB/seg on a 100 Mbit connection, I tested riot and the download speed is ok, any suggestion? thanks for your time!

sirsquidness commented 5 years ago

Try giving the cache server multiple ip addresses, and make the dns round robin between them. That might help increase the parallelism.

Find out which cdn server it's downloading from, ping it, and see how far away the cdn is in milliseconds. And then check the nginx logs to see how large the downloaded chunks are. There's an issue with the way nginx works that means high latency connections downloading small chunks will be significantly slower. I have a thing I was playing around with to fix this, but I haven't released it yet.

On July 2, 2019 4:45:11 AM GMT+10:00, Robert James Michael notifications@github.com wrote:

Hi, I am testing the speed, Blizzard is downloading very slow on "new" downloads, about 500 KB/seg on a 100 Mbit connection, I tested riot and the download speed is ok, any suggestion? thanks for your time!

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/OpenSourceLAN/origin-docker/issues/15

RobertJamesMichael commented 5 years ago

Try giving the cache server multiple ip addresses, and make the dns round robin between them. That might help increase the parallelism. Find out which cdn server it's downloading from, ping it, and see how far away the cdn is in milliseconds. And then check the nginx logs to see how large the downloaded chunks are. There's an issue with the way nginx works that means high latency connections downloading small chunks will be significantly slower. I have a thing I was playing around with to fix this, but I haven't released it yet. On July 2, 2019 4:45:11 AM GMT+10:00, Robert James Michael @.***> wrote: Hi, I am testing the speed, Blizzard is downloading very slow on "new" downloads, about 500 KB/seg on a 100 Mbit connection, I tested riot and the download speed is ok, any suggestion? thanks for your time! -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: #15

Thanks @sirsquidness, I am using 10 IPs, I am using a physical router as DNS server also, I would like to change it to a Linux (Ubuntu) based one, which one may I use to make this "round robin" work better? The dnsmasq docker image you have in this project does make the work? I am testing with WOW and its been downloading from level3.blizzard.com, it's about 120 - 130 ms far away. and this is a portion of the Blizzard access log: 192.168.24.250 - - [02/Jul/2019:11:58:06 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=68157440-68423679" 192.168.24.250 - - [02/Jul/2019:11:58:06 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=67891200-68157439" 192.168.24.250 - - [02/Jul/2019:11:58:06 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=67358720-67624959" 192.168.24.250 - - [02/Jul/2019:11:58:07 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=68689920-68956159" 192.168.24.250 - - [02/Jul/2019:11:58:08 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" MISS 67.26.123.254:80 0.104 "bytes=69754880-70021119" 192.168.24.250 - - [02/Jul/2019:11:58:08 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266602 "-" "-" "-" HIT - - "bytes=68956160-69222399" 192.168.24.250 - - [02/Jul/2019:11:58:08 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=68956160-69222399" 192.168.24.250 - - [02/Jul/2019:11:58:08 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=69488640-69754879" 192.168.24.250 - - [02/Jul/2019:11:58:08 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=69222400-69488639" 192.168.24.250 - - [02/Jul/2019:11:58:09 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" MISS 4.27.25.254:80 0.112 "bytes=70819840-71086079" 192.168.24.250 - - [02/Jul/2019:11:58:09 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266602 "-" "-" "-" HIT - - "bytes=70021120-70287359" 192.168.24.250 - - [02/Jul/2019:11:58:09 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=70021120-70287359" 192.168.24.250 - - [02/Jul/2019:11:58:09 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=70287360-70553599" 192.168.24.250 - - [02/Jul/2019:11:58:09 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=70553600-70819839" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" MISS 206.33.50.254:80 0.116 "bytes=72417280-72683519" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" MISS 67.26.201.254:80 0.136 "bytes=71884800-72151039" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=72683520-72949759" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=71618560-71884799" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=72949760-73215999" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266602 "-" "-" "-" HIT - - "bytes=71086080-71352319" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=71086080-71352319" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=71352320-71618559" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266602 "-" "-" "-" HIT - - "bytes=72151040-72417279" 192.168.24.250 - - [02/Jul/2019:11:58:11 +0000] "GET /tpr/wow/data/05/e4/05e40595085101da771e4ee63ebb9da6 HTTP/1.1" 206 266240 "-" "-" "-" HIT - - "bytes=72151040-72417279"