projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20457: Don't keep ctr mounts in memory after computing node size.
[arvados.git]
/
lib
/
dispatchcloud
/
worker
/
runner.go
diff --git
a/lib/dispatchcloud/worker/runner.go
b/lib/dispatchcloud/worker/runner.go
index 29c4b8e0a36a3be2a721e1bc509335817e86842c..ac039272cf9c5b5374c6a9dd60462b0b9e2a684c 100644
(file)
--- a/
lib/dispatchcloud/worker/runner.go
+++ b/
lib/dispatchcloud/worker/runner.go
@@
-63,6
+63,9
@@
func newRemoteRunner(uuid string, wkr *worker) *remoteRunner {
configData.Cluster = wkr.wp.cluster
configData.KeepBuffers = bufs * wkr.instType.VCPUs
}
configData.Cluster = wkr.wp.cluster
configData.KeepBuffers = bufs * wkr.instType.VCPUs
}
+ if wkr.wp.cluster.Containers.CloudVMs.Driver == "ec2" && wkr.instType.Preemptible {
+ configData.EC2SpotCheck = true
+ }
configJSON, err := json.Marshal(configData)
if err != nil {
panic(err)
configJSON, err := json.Marshal(configData)
if err != nil {
panic(err)