Skip to content

Add a task credit system#1452

Merged
ssalinas merged 10 commits intomasterfrom
task_credits
Mar 20, 2017
Merged

Add a task credit system#1452
ssalinas merged 10 commits intomasterfrom
task_credits

Conversation

@ssalinas
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

tpetr commented Mar 10, 2017

Disappointed you didn't call it Mesos Bucks.

@ssalinas
Copy link
Copy Markdown
Contributor Author

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
@ssalinas ssalinas deleted the task_credits branch March 20, 2017 14:01
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