Skip to content
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

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

sirlatrom
Copy link
Contributor

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.

  • Added/updated tests
  • Added/updated documentation

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.

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@nmengin nmengin left a 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 👏

@sirlatrom
Copy link
Contributor Author

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?

@sirlatrom sirlatrom requested a review from a team as a code owner February 7, 2018 10:25
@ldez ldez changed the base branch from master to v1.5 February 7, 2018 10:25
@ldez ldez added kind/enhancement a new or improved feature. and removed bot/no-merge labels Feb 7, 2018
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants