OpenSpeedTest reverse proxy poor performance

1. The problem I’m having:

I am seeing very poor performance running the OpenSpeedTest Docker container openspeedtest/latest:v2.0.6 when Caddy is reverse proxying. If I hit the OpenSpeedTest Docker container directly without Caddy in-front I get the full expected 1Gbps up and down. Any performance directives I should be looking at?

htop shows barely any cpu or load, so does not indicate a system resource issue.

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

v2.9.1 h1:OEYiZ7DbCzAWVb6TNEkjRcSCRGHVoZsJinoDR/n9oaY=

4. How I installed and ran Caddy:

apt get install caddy then override the default caddy binary in /usr/bin with a custom built caddy binary that includes cloudflare support.

a. System environment:

Debian GNU/Linux 12 (bookworm)

d. My complete Caddy config:

{
    email justin@mydomain.com
}

speedtest.mydomain.com {
    reverse_proxy 172.18.0.3:3000
    tls {
        dns cloudflare {env.CF_API_KEY}
    }
}

Performance is subjective, and poor performance could be for variety of reasons. To help understand the root cause, please pull the profile per the instructions here.

1 Like