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

Specifying --mesos_role breaks resource allocation. #487

Closed
jnsaff opened this issue Jul 7, 2015 · 3 comments
Closed

Specifying --mesos_role breaks resource allocation. #487

jnsaff opened this issue Jul 7, 2015 · 3 comments

Comments

@jnsaff
Copy link

jnsaff commented Jul 7, 2015

We are trying to give different weights to Marathon and Chronos and running into trouble with Chronos. We have two roles specified in mesos: service,batch. Marathon is getting service and it works as expected. However when we start chronos with --mesos_role batch no Chronos jobs get executed anymore.

When looking at the mesos master state.json we see that Marathon has set it's role correctly however Chronos has role: "*".

In Chronos logs we see offers being declined and tasks complaining that there are not enough resources for them: Found: [cpus: 0.0 mem: 0.0 disk: 0.0].

When we remove the mesos_role from Chronos everything works again (even while mesos-master is still configured with the service,batch roles.

Version: chronos-2.3.4

@kolloch
Copy link

kolloch commented Jul 7, 2015

The chronos logic does not actually respect the roles in the offer.

@felixb
Copy link
Contributor

felixb commented Jul 7, 2015

This should be fixed with #462.

@gkleiman
Copy link
Member

PR #462 has already been merged and it will be part of Chronos v2.4.0-RC1.

Please test either against a snapshot version or the RC once it is released and reopen if the issue still happens.

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

No branches or pull requests

4 participants