# tanmoy1989/mini-hpc-training architecture

> Architecture diagram of the GitHub repository tanmoy1989/mini-hpc-training, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tanmoy1989/mini-hpc-training
- Repository: https://github.com/tanmoy1989/mini-hpc-training

## Overview

This repository provides a local two-node HPC training cluster. The user runs setup.sh to launch the virtual machines, discover their addresses, and configure the cluster; participants then connect to node01 and use Slurm, while monitoring is available through Prometheus and Grafana. The graph preserves deployment, cluster services, and monitoring as distinct areas. Source excerpts were unavailable, so relationships are limited to those described in the README; configuration-level wiring is not inferred.

Main entry points: [`config/slurm.conf`](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf) (node01 controller), [`setup.sh`](https://github.com/tanmoy1989/mini-hpc-training/blob/main/setup.sh) (Deployment script), [`Vagrantfile`](https://github.com/tanmoy1989/mini-hpc-training/blob/main/Vagrantfile) (VM provisioning), [`ansible`](https://github.com/tanmoy1989/mini-hpc-training/tree/main/ansible) (Munge authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_deployment["Deployment"]
  node_setup["Deployment script<br/>[setup.sh]"]
  node_vagrant["VM provisioning"]
  node_ansible["Configuration automation<br/>[site.yml]"]
end

subgraph group_cluster["Cluster services"]
  node_controller["node01 controller<br/>[slurm.conf]"]
  node_compute["node02 compute<br/>[slurm.conf]"]
  node_slurm["Slurm scheduler<br/>[slurm.conf]"]
  node_munge["Munge authentication"]
end

subgraph group_monitoring["Monitoring"]
  node_prometheus["Prometheus server<br/>[prometheus.yml]"]
  node_node_exporter["Node Exporter"]
  node_grafana["Grafana dashboards"]
  node_grafana_datasource["Grafana datasource"]
  node_dashboard_provider["Dashboard provider"]
end

subgraph group_training["Training"]
  node_training_exercises["HPC exercises<br/>[hpc-training.md]"]
end

node_user(("Cluster user"))
node_vmware["VMware host"]

node_user -->|"runs"| node_setup
node_setup -->|"starts VMs"| node_vagrant
node_vagrant -->|"uses provider"| node_vmware
node_setup -->|"configures cluster"| node_ansible
node_user -->|"connects to"| node_controller
node_controller -->|"runs scheduler"| node_slurm
node_compute -->|"runs compute daemon"| node_slurm
node_controller -->|"uses authentication"| node_munge
node_compute -->|"uses authentication"| node_munge
node_user -->|"follows"| node_training_exercises
node_controller -->|"hosts server"| node_prometheus
node_controller -->|"runs exporter"| node_node_exporter
node_compute -->|"runs exporter"| node_node_exporter
node_controller -->|"hosts dashboards"| node_grafana
node_controller -->|"hosts datasource"| node_grafana_datasource
node_controller -->|"hosts provider"| node_dashboard_provider

click node_setup "https://github.com/tanmoy1989/mini-hpc-training/blob/main/setup.sh"
click node_vagrant "https://github.com/tanmoy1989/mini-hpc-training/blob/main/Vagrantfile"
click node_ansible "https://github.com/tanmoy1989/mini-hpc-training/blob/main/ansible/site.yml"
click node_controller "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf"
click node_compute "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf"
click node_slurm "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf"
click node_munge "https://github.com/tanmoy1989/mini-hpc-training/tree/main/ansible"
click node_training_exercises "https://github.com/tanmoy1989/mini-hpc-training/blob/main/exercises/hpc-training.md"
click node_prometheus "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/prometheus.yml"
click node_node_exporter "https://github.com/tanmoy1989/mini-hpc-training/tree/main/ansible"
click node_grafana "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-mini-hpc-dashboard.json"
click node_grafana_datasource "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-datasource.yml"
click node_dashboard_provider "https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-dashboard-provider.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_setup,node_vagrant,node_ansible,node_user toneBlue
class node_controller,node_compute,node_slurm,node_munge toneAmber
class node_prometheus,node_node_exporter,node_grafana,node_grafana_datasource,node_dashboard_provider toneMint
class node_training_exercises toneRose
class node_vmware toneIndigo
```

## Components

### Deployment

- [Deployment script](https://github.com/tanmoy1989/mini-hpc-training/blob/main/setup.sh): `setup.sh`
- [VM provisioning](https://github.com/tanmoy1989/mini-hpc-training/blob/main/Vagrantfile): `Vagrantfile`
- [Configuration automation](https://github.com/tanmoy1989/mini-hpc-training/blob/main/ansible/site.yml): `ansible/site.yml`

### Cluster services

- [node01 controller](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf): `config/slurm.conf`
- [node02 compute](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf): `config/slurm.conf`
- [Slurm scheduler](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/slurm.conf): `config/slurm.conf`
- [Munge authentication](https://github.com/tanmoy1989/mini-hpc-training/tree/main/ansible): `ansible`

### Monitoring

- [Prometheus server](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/prometheus.yml): `config/prometheus.yml`
- [Node Exporter](https://github.com/tanmoy1989/mini-hpc-training/tree/main/ansible): `ansible`
- [Grafana dashboards](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-mini-hpc-dashboard.json): `config/grafana-mini-hpc-dashboard.json`
- [Grafana datasource](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-datasource.yml): `config/grafana-datasource.yml`
- [Dashboard provider](https://github.com/tanmoy1989/mini-hpc-training/blob/main/config/grafana-dashboard-provider.yml): `config/grafana-dashboard-provider.yml`

### Training

- [HPC exercises](https://github.com/tanmoy1989/mini-hpc-training/blob/main/exercises/hpc-training.md): `exercises/hpc-training.md`

### Other components

- **Cluster user**
- **VMware host**

## Connections

- Cluster user → Deployment script: runs (evidence: `README.md`)
- Deployment script → VM provisioning: starts VMs (evidence: `README.md`)
- VM provisioning → VMware host: uses provider (evidence: `README.md`)
- Deployment script → Configuration automation: configures cluster (evidence: `README.md`)
- Cluster user → node01 controller: connects to (evidence: `README.md`)
- node01 controller → Slurm scheduler: runs scheduler (evidence: `README.md`)
- node02 compute → Slurm scheduler: runs compute daemon (evidence: `README.md`)
- node01 controller → Munge authentication: uses authentication (evidence: `README.md`)
- node02 compute → Munge authentication: uses authentication (evidence: `README.md`)
- Cluster user → HPC exercises: follows (evidence: `README.md`)
- node01 controller → Prometheus server: hosts server (evidence: `README.md`)
- node01 controller → Node Exporter: runs exporter (evidence: `README.md`)
- node02 compute → Node Exporter: runs exporter (evidence: `README.md`)
- node01 controller → Grafana dashboards: hosts dashboards (evidence: `README.md`)
- node01 controller → Grafana datasource: hosts datasource (evidence: `README.md`)
- node01 controller → Dashboard provider: hosts provider (evidence: `README.md`)
