mirror of https://github.com/docker/docs.git
Fix the scheduling bug, fixes #253
Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
This commit is contained in:
parent
f942cb2e69
commit
11ebdb050c
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue