Tower Agent
Tower Agent allows Tower to launch pipelines on HPC clusters that do not allow direct access through an SSH client.
Tower Agent is a standalone process that runs on a node that can submit jobs to the cluster (e.g. login node). It establishes an authenticated secure reverse connection with Tower, allowing Tower to submit and monitor new jobs. The jobs are submitted on behalf of the user running the agent.
Installation#
Tower Agent it is distributed as a single executable file. You only need to download it and execute it.
-
Download the latest release from Github:
1
curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent
-
Make it executable:
1
chmod +x ./tw-agent
-
(Optional) Move it into a folder that is in your path.
Quickstart#
Before running the Agent:
-
Create a personal access token in Tower. See here for more instructions.
-
Create Tower Agent credentials in a Tower workspace. See here for more instructions.
When you create the credentials you'll get an Agent Connection ID. You can use that ID or enter a custom ID, as long as you use the same connection ID in the workspace credentials and when you run the agent.
The agent should always be running in order to accept incoming requests from Tower. We recommend that you use a terminal multiplexer like tmux or GNU Screen, so that it keeps running even if you close your SSH session.
1 2 |
|
Tips#
- If you are using the agent with Tower Enterprise (on-prem) you can set the API url using the
TOWER_API_ENDPOINT
environment variable or the--url
option. - By default, the Agent uses the folder
${HOME}/work
as the Nextflow work directory. You can change it using the--work-dir
option. - The work directory must exist before running the agent.
- You can also change the work directory in Tower when you create a compute environment or launch a pipeline.
Usage#
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|