I didn't use to have this problem but sometime last year my download speeds from my server to other clients got really bad. I have a plex server, and a bunch of other web servers, hosted in docker containers, all behind a traefik reverse proxy. I use cloudflare for DNS but don't proxy any traffic through it. I do think at some point I was using traefik 2.x and I upgraded to 3.x, but not sure if that's the cause.
Anyway, I added a librespeed container and I get vastly slower speeds when using the reverse proxy then when connecting directly:
- If I go to "librespeed.server.com", which is behind traefik, and run the test, I get about 4-7mbps down and 80-100 mbps up.
- If I go to server.com:8567 (I port forwarded for libre speed for this test), I get 20-30 mbps down and 500+ mbps up.
The server itself in theory has 800mbps up/down, but in practice gets about 150-300 mbps up (but that's an issue with either my ISP or my home network config). I also ran an iperf server on it and connected with my client and was able to get 312 mbps down, which is what I'd expect to see from librespeed (although it doesn't reach those speeds either directly or behind traefik, maybe docker is another bottleneck).
But it seems pretty clear that traefik is introducing some overhead here, as even just with librespeed directly vs behind traefik the speeds are about 5x faster without traefik. Is there any way around this? Do I need to just not run plex/any speed sensitive applications behind traefik?