projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7aa839
)
16347: Reserve memory for keepstore buffers when choosing node size.
author
Tom Clegg <tom@curii.com>
Tue, 19 Oct 2021 15:57:19 +0000
(11:57 -0400)
committer
Tom Clegg <tom@curii.com>
Tue, 19 Oct 2021 15:57:19 +0000
(11:57 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/dispatchcloud/node_size.go
patch
|
blob
|
history
diff --git
a/lib/dispatchcloud/node_size.go
b/lib/dispatchcloud/node_size.go
index 7e8ce0bf4206834c80a176a7411ea614c2e1e3f7..1b10826cbb6227a589d0c74217c808c59c220c8b 100644
(file)
--- a/
lib/dispatchcloud/node_size.go
+++ b/
lib/dispatchcloud/node_size.go
@@
-97,6
+97,7
@@
func ChooseInstanceType(cc *arvados.Cluster, ctr *arvados.Container) (best arvad
needRAM := ctr.RuntimeConstraints.RAM + ctr.RuntimeConstraints.KeepCacheRAM
needRAM += int64(cc.Containers.ReserveExtraRAM)
+ needRAM += int64(cc.Containers.LocalKeepBlobBuffersPerVCPU * needVCPUs * (1 << 26))
needRAM = (needRAM * 100) / int64(100-discountConfiguredRAMPercent)
ok := false