Add a task credit system #1452

Merged
merged 10 commits into from Mar 20, 2017

Conversation

Projects
None yet
2 participants
@ssalinas
Member

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 )

ssalinas added some commits Mar 10, 2017

@tpetr

This comment has been minimized.

Show comment
Hide comment
@tpetr

tpetr Mar 10, 2017

Member

Disappointed you didn't call it Mesos Bucks.

Member

tpetr commented Mar 10, 2017

Disappointed you didn't call it Mesos Bucks.

@ssalinas ssalinas added the hs_staging label Mar 10, 2017

ssalinas added some commits Mar 10, 2017

@ssalinas

This comment has been minimized.

Show comment
Hide comment
@ssalinas

ssalinas Mar 10, 2017

Member

reworked to not use the proxy-to-leader piece

Member

ssalinas commented Mar 10, 2017

reworked to not use the proxy-to-leader piece

ssalinas added some commits Mar 10, 2017

@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

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build is in progress
Details

@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