Log In to a Cluster and Submit a Job
After creating a cluster, you need to log in before you can submit jobs. This guide explains how to quickly log in and submit a job.
Prerequisites
You have created an Fsched cluster and its status is Running. See Add Hosts and Create a Cluster.
Log In via Console WebSSH
- Log in to the platform.
- In the left sidebar, open Cluster Management.
- On the clusters page, open the cluster you want to log in to.
- In the node list, locate the node you want to access and click Remote Control -> SSH.
- Wait until the SSH button becomes available, then click Connect. A new browser page/tab will open and you will be logged in.
Submit a Job from the Command Line
-
Create a job script named
jobscript.sh.vim jobscript.sh
Example content:
#!/bin/sh
#SBATCH --job-name=test_jobscript # Job name
#SBATCH --output=test_jobscript.log # Stdout output file
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks=1 # Number of tasks
#SBATCH --cpus-per-task=1 # vCPUs per task
#SBATCH --time=00:10:00 # Time limit (HH:MM:SS)
#SBATCH --mem-per-cpu=1024 # Memory per vCPU (MB)
hostname -
Submit the job.
sbatch jobscript.sh -
View the output.
cat test_jobscript.log