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

Add a task credit system #1452

Merged
merged 10 commits into from Mar 20, 2017
Merged

Add a task credit system #1452

merged 10 commits into from Mar 20, 2017

Conversation

ssalinas
Copy link
Member

@ssalinas ssalinas commented Mar 10, 2017

Adds a task credit system for disaster-type scenarios. By default the task credits are set to -1 (i.e. feature is not enabled). If you give Singularity credits, the feature is now enabled and the credits are decremented each time a task is launched. If the credits reach zero, no more tasks can be launched until more credits are given, or task credits are disabled (sets it back to -1)

Currently this is all done in memory for speed, rather than frequently calling out to zk for something in the disasters nodes. So, all calls that do not hit the leader are proxied to the leader.

Also, fixed a few args to rootComponent that seemed to be off after the addition of the onLoad functionality (/cc @PtrTeixeira )

@tpetr
Copy link
Contributor

@tpetr tpetr commented Mar 10, 2017

Disappointed you didn't call it Mesos Bucks.

@ssalinas
Copy link
Member Author

@ssalinas ssalinas commented Mar 10, 2017

reworked to not use the proxy-to-leader piece

@ssalinas ssalinas modified the milestone: 0.15.0 Mar 13, 2017
@ssalinas ssalinas merged commit 2d77227 into master Mar 20, 2017
0 of 2 checks passed
@ssalinas ssalinas deleted the task_credits branch Mar 20, 2017
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.

None yet

2 participants