-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lancache is not caching most files #52
Comments
Do you have IPv6 access on your network? If so, windows may automatically use your ISP's IPv6 DNS servers and bypass Monolithic. If you want to confirm (and I'm assuming you are on Windows) open up resource monitor and click network and expand the Network Activity tab. When downloading a game you should see Steam.exe downloading from 192.168.1.14. If it is downloading from other addresses then your DNS is incorrectly set up, or you need to flush your cache. |
@mushi1996 Are you still having this problem? I cannot access that logs link. A recent change in the steam client has added better cache support - see #85 . We would recomend trying again with the latest version and see if you still having any problems and if so reupload the logs. |
I too am experiencing this same issue. I've tried downloading but it does not appear to be catching the files. I am only using IPv4 on my network. |
--- Same issue: access miss content --- Hello LAN peaply, We configured the .env as follow: (comments deleted for this post) GNU nano 6.2 .env The LAN-Cache-DNS is the primary and only DNS-Server in our local network. It works fine resolveing DNS. gnbadmin@lan-cache:~/lancache$ sudo docker ps -a We startet both containers and began to test downloading STEAM games. [steam] 192.168.207.5 / - - - [26/Sep/2022:16:01:01 +0100] "GET /depot/731/chunk/7aec7769a64dda6fde17cb3f4c6ac422b478bbfe HTTP/1.1" 200 120000 "-" "Valve/Steam HTTP Client 1.0" "MISS" "cache5-fra2.steamcontent.com" "-" I´m want to understand the reason / background of this behavior. If you have a tip I would be happy. Please tell me if you need further details. |
@GnB-Machine what dns settings have you pushed to the clients? They should be only assigned What are you doing in your test, i would expect the following workflow
The miss in the logs means the cache does not currently have that section of the file and needs to grab it from upstream, it will only serve cached traffic on the 2nd attempt |
Hello Vibro, thanks a lot for your quick response. Regarding DNS-Server Thanks and Greetings Machine |
You have to visit us this weekend |
I have similar issues. Testing small games (downloading, deleting, redownloading) works, but the longer I test the more MISSes appear until nothing gets a HIT. Well what I found out is that after restarting the docker container it seems that the cached is indexed again and everything is a HIT. |
Hi, i'm observing high MISS rate too. Today, i tried to install it too. My network has ipv6, but all my dns servers are ipv4 |
EDIT: So after so looking through the logs it does technically appear to cache "most" files but enough are left to to essentially remove 99% of any speed benefit.
I am having 3 problems the first one is the main one the other two are just questions:
Main problem:
lancache is not caching most steam files. I decided to try downloading a small game to test. The first time as expected the download ran a little slower (3MB/s instead of my usual 5MB/s - 8MB/s). The second time I went to download the speed went up to 5MB/s 20% "MISS". The third time it went to 15MB/s 10% "MISS", the fourth time it hit about 25MB/s 3% "MISS" and then finally on the fifth, sixth and seventh tries it capped out at 34.6MB/s <1% "MISS" which is great. The problem is if I have to download a game 5 times to get it to cache properly I haven't really saved any time over just leaving it in my original configuration.
I always redownloaded the same game without DLC or mods so that wasnt interfering with anything.
Questions:
So there was something mentioned about adding additional steam IPs? Are these actual steam server IPs or additional local IPs I can assign the server? If these are actual steam IPs could you explain where I can find these additional ones and how/where I put them. I'm sorry if it is a silly question but I can't for the life of me figure it out.
Here is a zip of all the log files cleared each run and attempted again with their DL rate in the title. I did this after I typed up the stuff above so DL rate may be slightly different.
https://www.mediafire.com/file/9nk7qz91j1iew91/steamcachelogs.zip/file
Also does this have any chance of killing my network connection? Literally to the point where unless I reapply my netplan I can no longer connect to the internet on my server because I had that happen once and I dont know if it was related or not.
Run script:
docker run --restart unless-stopped --name lancache-dns --detach -p 192.168.1.14:53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=192.168.1.14 lancachenet/lancache-dns:latest
docker run --restart unless-stopped --name lancache --detach -v /root/steam-cache:/data/cache -v /root/steam-cache:/data/logs -p 192.168.1.14:80:80 lancachenet/monolithic:latest
docker run --restart unless-stopped --name sniproxy --detach -p 192.168.1.14:443:443 lancachenet/sniproxy:latest
echo Please configure your router/dhcp server to serve dns as 192.168.1.14
*I removed the IP parsing bit and just directly put in my IP because it was not getting it properly. Also had to put my IP in for :53:53 because it was having trouble binding to the port.
Thanks.
The text was updated successfully, but these errors were encountered: