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

/v2/tasks returns tasks in random order #2567

Closed
rasputnik opened this issue Nov 5, 2015 · 2 comments
Closed

/v2/tasks returns tasks in random order #2567

rasputnik opened this issue Nov 5, 2015 · 2 comments

Comments

@rasputnik
Copy link
Contributor

(this is an old release - 0.7.5 - but I haven't seen any commits that would fix it in later releases).

Despite being fine for months, yesterday our 3-node marathon cluster started returning tasks in a different
order every other time it was polled. This caused havoc on the service discovery layer, as the different order caused constant haproxy reloads on all slaves and gateways.

is there a 'contract' that this order should be maintained, or should discovery solutions that use this information assume it will be random and sort accordingly?

@kolloch
Copy link
Contributor

kolloch commented Nov 6, 2015

Yes, it should be considered random. The service discovery solution should sort it to make sure it doesn't update configuration unnecessarily.

@rasputnik
Copy link
Contributor Author

thanks, that's what i'd assumed. looks like a recent commit to bamboo has broken things, i'll work on fixing it at that layer. thanks.

@mesosphere mesosphere locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants