16347: Reserve memory for keepstore buffers when choosing node size.
authorTom Clegg <tom@curii.com>
Tue, 19 Oct 2021 15:57:19 +0000 (11:57 -0400)
committerTom 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

index 7e8ce0bf4206834c80a176a7411ea614c2e1e3f7..1b10826cbb6227a589d0c74217c808c59c220c8b 100644 (file)
@@ -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