Skip to content
VLASIFY™
TutorialHPC, GPU & Linux

HPC cluster setup: a practical plan for research groups

Updated · Scientifically reviewed by Dinkar Mishra, PhD on

Short answer

A working research cluster needs six layers: hardware (a head node, compute nodes, a fast network and shared storage), node provisioning (OpenHPC with Warewulf or xCAT, or configuration management), identity (consistent users via LDAP/FreeIPA), a scheduler (Slurm), a software stack (Lmod modules built with Spack or EasyBuild) and monitoring. Start from the OpenHPC recipes, automate everything, and test with real workloads before handing the cluster to users.

Who this is for

Research groups, departments and lab managers planning a small to mid-size cluster (roughly 2–64 nodes) for simulation and data analysis.

Software

Rocky Linux / AlmaLinux / Ubuntu LTS current LTSOpenHPC 3.xSlurm ≥ 23.02

Prerequisites

  • Workload data. Typical job sizes (cores, memory, GPUs, runtime), monthly core-hours, storage volume and growth. Without it, any design is a guess.
  • Site constraints. Rack space, power per rack (kW), cooling, network uplink and who will administer the system.
  • Budget for operations, not only hardware: support, spares, electricity and staff time. See HPC cluster cost estimation.

Step 1: design the architecture

ComponentRoleTypical small-cluster choice
Head (login/management) nodeSlurm controller, provisioning, user logins1 server; consider a separate login node later
Compute nodesRun jobsIdentical CPU nodes, plus GPU nodes if needed
InterconnectMPI traffic between nodes25–100 GbE, or InfiniBand for tightly coupled MPI
Management networkProvisioning, IPMI/BMC1 GbE, separate from the compute network
Shared storageHome and project dataNFS server for small clusters; BeeGFS or Lustre at larger scale
ScratchFast temporary job I/OLocal NVMe on nodes, or a parallel file system

Keep compute nodes identical where possible. Mixed hardware complicates scheduling and builds. Our hardware requirements guide covers sizing.

Step 2: provision the operating system

Install one enterprise Linux distribution (Rocky Linux or AlmaLinux are common, matching most HPC documentation) on the head node. Then provision compute nodes automatically, never by hand:

  • OpenHPC provides tested recipes that combine Warewulf (stateless node images), Slurm, compilers, MPI and many libraries.
  • Alternatives include xCAT, or configuration management (Ansible) on stateful installs.

Step 3: users, time and security

  • Central identity (FreeIPA or LDAP) so that UIDs and GIDs match on every node and on storage.
  • Time synchronisation (chrony). Munge authentication and Kerberos fail with clock skew.
  • SSH keys only, a firewall on the external interface, and a patching schedule.

Step 4: install the scheduler

Install Slurm (controller on the head node, slurmd on compute nodes, accounting database if you need usage reports and fair-share). Our Slurm installation guide walks through it. Define partitions that match your hardware and policies, for example compute, gpu and debug.

Step 5: build the software stack

# Example: build a tuned MPI-enabled HDF5 and FFTW with Spack, exposed as Lmod modules
spack install hdf5 +mpi ^openmpi
spack install fftw +mpi ^openmpi
spack module lmod refresh -y
module avail

Provide compilers, MPI, maths libraries (BLAS/LAPACK, FFTW), I/O libraries (HDF5, NetCDF), Python environments, and the domain codes your users need. Install Apptainer for containers.

Step 6: monitoring and documentation

  • Node health and metrics: Prometheus with node exporter, plus Grafana dashboards; NVIDIA DCGM exporter for GPUs.
  • Job accounting: sacct and sreport.
  • A short user guide: how to log in, submit jobs, where to store data, and backup policy (scratch is not backed up).

Verify

Before opening the cluster to users:

sinfo                                # all nodes idle, none down or drained
srun -N "$(sinfo -h -o %D -p compute)" -p compute hostname   # every node responds

Then run an MPI benchmark across nodes (the OSU micro-benchmarks for latency and bandwidth) and one or two real user workloads, and compare performance with expectations. Fix problems now; they are much harder to fix once users depend on the system.

Troubleshooting

  • Nodes show down or drain in sinfo: run sinfo -R for the reason. Common causes are Munge key or clock mismatch, slurm.conf differing between nodes, or real hardware faults.
  • MPI jobs slow across nodes: traffic may be using the management network. Check which interface MPI uses, and see MPI job hangs.
  • Users see different home directories or permissions: inconsistent UIDs. Use central identity from the start.

Assumptions and limitations

  • Written for small to mid-size on-premise clusters. Large systems need dedicated storage engineering, high availability and professional operations.
  • Tool choices are common, well-documented options, not the only valid ones.
  • Vendor and OpenHPC versions change. Follow the current recipe for your operating system release.

Frequently asked questions

How many nodes does a research group need?+

Size from your workloads: measure core-hours per month, memory per job and GPU needs, and include growth. Many groups start with 4–16 nodes. If the machine will sit idle much of the time, cloud or national facilities may be cheaper. Our HPC cost estimator helps compare.

Do I need InfiniBand?+

Only for tightly coupled parallel jobs (MPI simulations spanning several nodes). Embarrassingly parallel workloads such as parameter scans run well over 10/25 GbE Ethernet. For multi-node PIC, CFD or molecular dynamics, a low-latency fabric (InfiniBand or high-speed Ethernet with RDMA) makes a large difference.

Should we use containers instead of modules?+

Both. Modules (Lmod) with Spack or EasyBuild give tuned builds of common libraries; Apptainer containers make complex or legacy software portable and reproducible. Apptainer is designed for HPC and works with Slurm and MPI.

Who should run the cluster day to day?+

Budget for administration: updates, user support, failed disks and security patches. A part-time research software engineer or a support contract is cheaper than a cluster that slowly stops working.

References

  1. OpenHPC project and install recipes · OpenHPC (Linux Foundation project)
  2. Slurm quick start administrator guide · SchedMD
  3. Lmod documentation · TACC
  4. Spack documentation · Spack project
  5. Apptainer documentation · Apptainer (Linux Foundation)

Want this set up and verified for you?

We install, configure and validate scientific software on your workstation, cluster or cloud, and train your team to run it.

Services listed on this page are available today. Products marked “early access” or “in development” on our platform page are not yet generally available.

Spotted an error or an outdated command? Tell us. We correct verified issues promptly.

Related guides

How Vlasify can help

Get a Quote