-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify how setting a frontend priority works #2818
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @sirlatrom 👍
LGTM 👏
Thanks for the fast processing! I'd like to reiterate: I would be amazing to have a way to get the previously documented behavior, i.e. comparing priorities first, only using rule lengths to break ties. Would someone like to pick up on that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
See traefik#1962 for discussion, and https://github.com/containous/traefik/blob/c0563f1a395d53edbbf1030b2387435077eeb871/server/server.go#L1338-L1347 for the relevant code.
What does this PR do?
Clarify how setting a frontend priority works.
See #1962 for discussion, and https://github.com/containous/traefik/blob/c0563f1a395d53edbbf1030b2387435077eeb871/server/server.go#L1338-L1347 for the now documented code.
Motivation
I set the priority on a rule, and it wasn't effective the way I understood it from the documentation. This gave us trouble in routing in our test environment.
Reading #1962, I realized from the code snippet that setting the priority works more like an offset than an absolute ordering of frontends.
More
Purely a documentation change.
Additional Notes
I would be amazing to have a way to get the previously documented behavior, i.e. comparing priorities first, only using rule lengths to break ties.