projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17650: Fix test order dependency.
[arvados.git]
/
lib
/
dispatchcloud
/
node_size.go
diff --git
a/lib/dispatchcloud/node_size.go
b/lib/dispatchcloud/node_size.go
index 6fb46b5f46f9d36c2500ee759cee1a3ec19c59f0..7e8ce0bf4206834c80a176a7411ea614c2e1e3f7 100644
(file)
--- a/
lib/dispatchcloud/node_size.go
+++ b/
lib/dispatchcloud/node_size.go
@@
-10,7
+10,7
@@
import (
"sort"
"strconv"
"sort"
"strconv"
- "git.
curoverse.com
/arvados.git/sdk/go/arvados"
+ "git.
arvados.org
/arvados.git/sdk/go/arvados"
)
var ErrInstanceTypesNotConfigured = errors.New("site configuration does not list any instance types")
)
var ErrInstanceTypesNotConfigured = errors.New("site configuration does not list any instance types")
@@
-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
needVCPUs := ctr.RuntimeConstraints.VCPUs
needRAM := ctr.RuntimeConstraints.RAM + ctr.RuntimeConstraints.KeepCacheRAM
+ needRAM += int64(cc.Containers.ReserveExtraRAM)
needRAM = (needRAM * 100) / int64(100-discountConfiguredRAMPercent)
ok := false
needRAM = (needRAM * 100) / int64(100-discountConfiguredRAMPercent)
ok := false