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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better task balancing #1482

merged 73 commits into from Jun 8, 2017
Jump to file or symbol
Failed to load files and symbols.
+7 鈭4
Diff settings


Just for now

Viewing a subset of changes. View all

get usages for specific slaveIds

  • Loading branch information...
darcatron committed Apr 4, 2017
commit 741a1d10f3729bc54f1bae678dd0b345550d767f
@@ -158,10 +158,9 @@ public int compare(SingularityTaskUsage o1, SingularityTaskUsage o2) {
return children;
public List<SingularitySlaveUsageWithId> getAllCurrentSlaveUsage() {
List<String> slaves = getSlavesWithUsage();
List<String> paths = new ArrayList<>(slaves.size());
for (String slaveId : slaves) {
public List<SingularitySlaveUsageWithId> getCurrentSlaveUsages(List<String> slaveIds) {
List<String> paths = new ArrayList<>(slaveIds.size());
for (String slaveId : slaveIds) {
@@ -174,6 +173,10 @@ public int compare(SingularityTaskUsage o1, SingularityTaskUsage o2) {
return slaveUsageWithIds;
public List<SingularitySlaveUsageWithId> getAllCurrentSlaveUsage() {
return getCurrentSlaveUsages(getSlavesWithUsage());
public List<Long> getSlaveUsageTimestamps(String slaveId) {
List<String> timestampStrings = getChildren(getSlaveUsageHistoryPath(slaveId));
List<Long> timestamps = new ArrayList<>(timestampStrings.size());
ProTip! Use n and p to navigate between commits in a pull request.