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

Check for endpoints while detecting Consul service changes #2882

Merged
merged 3 commits into from
Feb 22, 2018

Conversation

caseycs
Copy link
Contributor

@caseycs caseycs commented Feb 17, 2018

What does this PR do?

Check for endpoint ip address while detecting Consul catalog changes

Motivation

I'm experimenting with Docker Swarm, Registrator and Consul to implement service discovery in my project, and turned out, that scaling or updating an image for a service does not trigger Traefik to refresh back-ends.

After some investigation I figured out, that it's looking only on diff of unique node ids (that's why scaling a service on the same node never trigger update) and does not check for endpoint ip changes at all.

More

  • Added/updated tests

Additional Notes

Nothing else to mention.

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

@ldez
Copy link
Contributor

ldez commented Feb 19, 2018

@caseycs
Copy link
Contributor Author

caseycs commented Feb 19, 2018

@ldez thanks, I missed this part.

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

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.

LGTM 👏 👏

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

Successfully merging this pull request may close these issues.

5 participants