Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/_writing_clusters.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Cluster Usage
==============================

--------------------------------------------
Developing for Clusters - ``GALAXY_SLOTS``
--------------------------------------------
-----------------------------------------------------------------------------------------------------
Developing for Clusters - ``GALAXY_SLOTS``, ``GALAXY_MEMORY_MB``, and ``GALAXY_MEMORY_MB_PER_SLOT``
-----------------------------------------------------------------------------------------------------

``GALAXY_SLOTS`` is a special environment variable that is set in a Galaxy
tool's runtime environment. If the tool you are working on allows configuring
Expand All @@ -30,6 +30,14 @@ For information on how server administrators can configure this value for
a particular tool, check out `the Galaxy wiki
<https://wiki.galaxyproject.org/Admin/Config/GALAXY_SLOTS>`__.

Analogously ``GALAXY_MEMORY_MB`` and ``GALAXY_MEMORY_MB_PER_SLOT`` are special
environment variables in a Galaxy tool's runtime environment that can be used
to specify the amount of memory that a tool can use overall and per slot,
respectively.

For an example see the samtools sort tool (`here https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/samtools/samtools_sort/samtools_sort.xml`__) which allows to specify the
total memory with the -m parameter.

-----------------------------------------------
Test Against Clusters - ``--job_config_file``
-----------------------------------------------
Expand Down