Fix the scheduling bug, fixes #253

Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
This commit is contained in:
Jessica B. Hamrick 2015-01-19 19:11:20 -08:00
parent f942cb2e69
commit 11ebdb050c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func (p *BinPackingPlacementStrategy) PlaceContainer(config *dockerclient.Contai
if config.Memory > 0 {
memoryScore = (node.ReservedMemory() + config.Memory) * 100 / nodeMemory
}
var total = ((cpuScore + memoryScore) / 200) * 100
var total = (cpuScore + memoryScore) / 2
if cpuScore <= 100 && memoryScore <= 100 {
scores = append(scores, &score{node: node, score: total})