13681: Update documentation for arv:WorkflowRunnerResources
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 5 Jul 2018 19:15:16 +0000 (15:15 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 5 Jul 2018 19:15:16 +0000 (15:15 -0400)
Also bring default allocation for cwl-runner launched by workbench in
line with a-c-r command line (1 GiB / 1 core).

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

apps/workbench/app/controllers/work_units_controller.rb
doc/user/cwl/cwl-extensions.html.textile.liquid

index 0fe68476e3cdd6989870d1d3941de01f84d9a62e..a229654c36c84a52eca0a8338c15d1fd92659bf6 100644 (file)
@@ -98,7 +98,7 @@ class WorkUnitsController < ApplicationController
       # runtime constriants
       runtime_constraints = {
         "vcpus" => 1,
-        "ram" => 256000000,
+        "ram" => 1024 * 1024 * 1024,
         "API" => true
       }
 
index cf25639b14defda47456d6610458285a06aaecce..ca1f64c96fd588de2e3aaa02e64556cde47aae41 100644 (file)
@@ -38,6 +38,9 @@ hints:
     enableReuse: false
   cwltool:Secrets:
     secrets: [input1, input2]
+  arv:WorkflowRunnerResources:
+    ramMin: 2048
+    coresMin: 2
 </pre>
 
 The one exception to this is @arv:APIRequirement@, see note below.
@@ -111,3 +114,12 @@ Indicate that one or more input parameters are "secret".  Must be applied at the
 table(table table-bordered table-condensed).
 |_. Field |_. Type |_. Description |
 |secrets|array<string>|Input parameters which are considered "secret".  Must be strings.|
+
+h2. arv:WorkflowRunnerResources
+
+Specify resource requirements for the workflow runner process (arvados-cwl-runner) that manages a workflow run.  Must be applied to the top level workflow.  Will also be set implicitly when using @--submit-runner-ram@ on the command line along with @--create-workflow@ or @--update-workflow@.  Use this to adjust the runner's allocation if the workflow runner is getting "out of memory" exceptions or being killed by the out-of-memory (OOM) killer.
+
+table(table table-bordered table-condensed).
+|_. Field |_. Type |_. Description |
+|ramMin|int|RAM, in mebibytes, to reserve for the arvados-cwl-runner process. Default 1 GiB|
+|coresMin|int|Number of cores to reserve to the arvados-cwl-runner process. Default 1 core.|