I'm using Traefik 2.9.9 (but I tried also lower versions) as a reverse proxy on a high load production traefik.
This acts like a CDN, forwarding the traffic to an Apache below.
We're experiencing many timeout while in production with a lots of requests coming from all over the world.
As a test, I tried also to make direct requests to the Traefik (so not forwarded to the internal Apache) but the result is the same: from 5% to 30% of timeouts.
I'm using wrk and autocannon to make http stress test.
I would like to understand if there are default limitations in Traefik and how to tune it.
networks:
web:
external: true
services:
traefik:
container_name: traefik
image: traefik:v2.9.9
restart: always
ports:
- "80:80"
- "443:443"
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/traefik.yml:/etc/traefik/traefik.yml:ro
- ./traefik/acme.json:/acme.json
- ./traefik/config:/config
- ./traefik/logs:/logs
and my config:
api:
dashboard: true
providers:
docker:
exposedByDefault: false
file:
directory: /config
watch: true
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
certificatesResolvers:
gec:
acme:
email: letsencrypt@mydomain.it
storage: /acme.json
httpChallenge:
entryPoint: web
accessLog:
filePath: /logs/access.log
bufferingSize: 100
Thanks in advance