Web / Traefik Interview questions
How do health checks work in Traefik?
Traefik can actively probe each backend server on a service by periodically sending a request to a configured path and expecting a healthy HTTP status back within a timeout.
http: services: myapp: loadBalancer: healthCheck: path: /healthz interval: 10s timeout: 3s
If a server fails enough consecutive checks, Traefik removes it from the pool of eligible targets for that service without touching the router configuration, and adds it back automatically once it starts responding successfully again.
This is distinct from container-level health checks an orchestrator like Docker or Kubernetes might run; Traefik's own checks operate purely at the load-balancing layer and only affect which instances receive traffic.
More Related questions...