Repository navigation
feat: extend Traefik healthcheck to validate file routers and config errors, fixes #6463, fixes #6553 - #7442
Merged
Merged
Conversation
|
Download the artifacts for this pull request:
See Testing a PR. |
rfay
force-pushed
the
20250710_stasadev_traefik_healthcheck
branch
from
July 14, 2025 12:20
d06061a to
5b1d2a8
Compare
Member
|
Rebased, but I guess it's irrelevant without a push |
rfay
marked this pull request as draft
July 15, 2025 12:52
4 tasks done
Member
Author
|
TODO: update our documentation with examples for:
|
stasadev
force-pushed
the
20250710_stasadev_traefik_healthcheck
branch
from
July 29, 2025 14:04
5b1d2a8 to
211d4a0
Compare
stasadev
marked this pull request as ready for review
July 30, 2025 12:32
rfay
approved these changes
Aug 1, 2025
rfay
left a comment
Member
There was a problem hiding this comment.
This is a great approach and will lead to much more robust handling of the obscure traefik situations. Thanks for taking this on and for the elegant implementation.
2 tasks done
4 tasks done
4 tasks done
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
How This PR Solves The Issue
Uses more endpoints from https://doc.traefik.io/traefik/operations/api/#endpoints to determine if the router is healthy.
The only drawback is that if you already have a working project, and start a broken one, you won't see an error on
ddev start(because/healthcheck.shruns once a minute, not a second, and I'm not going to change it). In the end, the router will become unhealthy after a few minutes.Manual Testing Instructions
Review https://ddev--7442.org.readthedocs.build/en/7442/users/extend/traefik-router/#troubleshooting-traefik-routing
Test broken file provider on Linux (low
fs.inotify.max_user_watches):Test broken file provider on Linux (low
fs.inotify.max_user_instances):Test broken Traefik config inside the project:
Automated Testing Overview
Release/Deployment Notes