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
merged 73 commits into from Jun 8, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+2 鈭0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

initialze usage to empty

  • Loading branch information...
darcatron committed May 2, 2017
commit d3d0c39f6783f9918602817223999ca5eee366c8
@@ -62,6 +62,8 @@ public void runActionOnPoll() {
final long now = System.currentTimeMillis();
Map<ResourceUsageType, Number> longRunningTasksUsage = new HashMap<>();
longRunningTasksUsage.put(ResourceUsageType.MEMORY_BYTES_USED, 0);
longRunningTasksUsage.put(ResourceUsageType.CPU_USED, 0);
for (SingularitySlave slave : usageHelper.getSlavesToTrackUsageFor()) {
Optional<Long> memoryMbTotal = Optional.absent();
ProTip! Use n and p to navigate between commits in a pull request.