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

Be smarter about adding new Marathon tasks to Consul #48

Merged
merged 3 commits into from
Oct 27, 2015

Conversation

JayH5
Copy link
Contributor

@JayH5 JayH5 commented Oct 26, 2015

When we receive an event from Marathon that a new task has come online, we sync the whole app associated with the task.

The event gives us all the information about the task necessary to register a service in Consul. We just need to fetch the app definition from Marathon to get the labels.

* Preparing for updating task registration
* Don't sync the whole app, just the task and the app labels.
@JayH5
Copy link
Contributor Author

JayH5 commented Oct 26, 2015

Ready for review. Read commit-by-commit. The first commit is the hardest to read but it's just a refactoring.

@smn
Copy link
Contributor

smn commented Oct 26, 2015

👍 but we should do something about that ports[0] as it's now an issue in two places instead of 1.

JayH5 added a commit that referenced this pull request Oct 27, 2015
…ent-smarter

Be smarter about adding new Marathon tasks to Consul
@JayH5 JayH5 merged commit dabfdf7 into develop Oct 27, 2015
@JayH5 JayH5 deleted the feature/issue-48-running-event-smarter branch October 27, 2015 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants