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 鈭2
Diff settings

Always

Just for now

Viewing a subset of changes. View all

correct free resource scoring

  • Loading branch information...
darcatron committed Mar 30, 2017
commit 6d8a0b8882dd4e7e1eb6708037a4c94d4395c169
@@ -313,8 +313,8 @@ private double score(Offer offer, SingularityTaskRequest taskRequest, Map<String
score += requestTypeCpuWeight * (1 - (usagePerResource.get(CPU_USED) / usagePerResource.get(CPU_TOTAL)));
score += requestTypeMemWeight * (1 - (usagePerResource.get(MEMORY_USED) / usagePerResource.get(MEMORY_TOTAL)));
score += freeCpuWeight * (1 - (MesosUtils.getNumCpus(offer) / usagePerResource.get(CPU_TOTAL)));
score += freeMemWeight * (1 - (MesosUtils.getMemory(offer) / usagePerResource.get(MEMORY_TOTAL)));
score += freeCpuWeight * (MesosUtils.getNumCpus(offer) / usagePerResource.get(CPU_TOTAL));
score += freeMemWeight * (MesosUtils.getMemory(offer) / usagePerResource.get(MEMORY_TOTAL));
return score;
}
ProTip! Use n and p to navigate between commits in a pull request.