projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '17529-ec2-rate-limit'
[arvados.git]
/
lib
/
dispatchcloud
/
node_size.go
diff --git
a/lib/dispatchcloud/node_size.go
b/lib/dispatchcloud/node_size.go
index fd04860861a14f9ff6b526ac6a562de02f0c74e4..7e8ce0bf4206834c80a176a7411ea614c2e1e3f7 100644
(file)
--- a/
lib/dispatchcloud/node_size.go
+++ b/
lib/dispatchcloud/node_size.go
@@
-96,6
+96,7
@@
func ChooseInstanceType(cc *arvados.Cluster, ctr *arvados.Container) (best arvad
needVCPUs := ctr.RuntimeConstraints.VCPUs
needRAM := ctr.RuntimeConstraints.RAM + ctr.RuntimeConstraints.KeepCacheRAM
+ needRAM += int64(cc.Containers.ReserveExtraRAM)
needRAM = (needRAM * 100) / int64(100-discountConfiguredRAMPercent)
ok := false