Skip to main content

Deploy Slurm Cluster

The Deploy Slurm Cluster application enables users to deploy and manage a Slurm cluster on their compute infrastructure. The cluster consists of a single login node and one or more worker nodes, provisioned and orchestrated through Klique queues. The nodes’ execution environment can be customized via the injection of environment variables, custom configuration files, dependency installation (Python packages), and node-specific initialization scripts.

Once an app instance is running, users can SSH directly into the login node and interact with the Slurm cluster using standard Slurm interfaces. Jobs are submitted to worker nodes using sbatch, just as in a standard Slurm environment. Klique manages the infrastructure; users manage their workloads.

App Insights​

The App insights section of a Deploy Slurm Cluster instance's dashboard shows:

  • Status indicator
    • Active instance - App instance is running and is actively in use
    • Loading instance - App instance is setting up
    • Idle instance - App instance is idle
    • Stopped instance - App instance is stopped
  • Running time – Total elapsed time since the instance started
  • Login Node – Task ID of the login node, with a link to its Console Log
  • Number of Workers – Total number of worker nodes currently provisioned
  • SSH connection details
    • SSH Host:Port
    • SSH Login user name
    • SSH Login password
    • SSH Connect Command – The full command line to initiate an SSH connection to the login node
  • Node Status - Number of worker nodes in each status category
  • Node Summary - Per-node details including rank, task ID, and current status
  • Resource utilization plots over time for all nodes:
    • CPU Compute Utilization
    • GPU Compute Utilization
    • CPU Memory Utilization
    • GPU Memory Utilization
  • Console Log - App instance's console output: setup progress, status changes, error messages, etc.
Embedding Visualizations

You can embed plots from App insights into Reports. Klique also supports embedding resources in third-party platforms that support embedded content (e.g. Notion). These visualizations are updated live as the app instance(s) updates. Hover over the plot and click Embed code to copy the embed code, and navigate to a report to paste the embed code.

Configuration​

To launch an instance, see Launching an Instance. The launch form has the following fields by default. Administrators can customize field names, options, and defaults.

  • Instance Name - Name for the app instance. This will appear in the instance list.
  • Service Project - Access Control - The Klique project where the app instance is created. Access to the instance and its endpoints follows its sharing settings.
  • Login Node Compute Resource - The Klique Queue through which the login node task will be deployed. Make sure an agent is assigned to that queue.
  • Worker Node Compute Resource - The Klique Queue through which worker nodes will be deployed. The queue must support executing multiple tasks simultaneously (e.g. serviced by an autoscaler or multiple agents).
  • Number of Workers - Number of worker nodes to provision for the cluster.
  • Environment Variables - Additional environment variable to set inside the container before launching workloads
  • Configuration Files - Configuration files to inject into the container before launching workloads. For each entry, specify the target path (absolute path) and the file contents.
  • Additional Python Packages - Python packages to install on all nodes at startup. This automatically installs your dependencies on every node .
  • Working Directory - The working directory from which the login node and worker node setup scripts are executed.
  • Login Node Execution Script - Bash script used to launch and configure the login node environment.
  • Worker Nodes Execution Script - Bash script used to launch and configure worker node workloads.
  • Restore Slurm Task ID – Specify the Task ID of a previously run Deploy Slurm Cluster instance to restore its cluster state and settings.
  • Share Access - The user groups to share the app instance with. Leave empty to keep the instance visible only to you and tenant administrators. See Sharing an Instance.