Skip to content
Faryan Rajabi
All work

Industrial IoT Monitoring

Live

Data Center Digital Twin

Software digital twin of data-center electrical and cooling infrastructure with Modbus TCP, MQTT, telemetry, alarms, fault scenarios, and an operator monitoring interface.

In numbers

In numbers

data halls modelled
2
facility simulation cycle
5 s
fault scenarios
4

Context

A software digital twin for simulating data center electrical and cooling infrastructure. It is a simulation, not a live production data center.

The twin models 2 data halls and runs a facility simulation every 5 seconds covering UPS infrastructure, PDUs, CRAH units, a standby generator, and rack load.

Approach

The simulation uses the industrial protocols Modbus TCP and MQTT. A FastAPI backend provides REST and WebSocket APIs, persists telemetry in PostgreSQL, and pushes live state to the operator dashboard.

  • Alarms and 4 fault scenarios.
  • A Next.js operator dashboard for live facility state.
  • Prometheus and Grafana for metrics.
  • Authentication, API keys, rate limiting, and role-based control.

Features

  • Electrical chain

    UPS, PDUs, a standby generator, and rack load across 2 data halls.

  • Cooling

    CRAH units modelled as part of the facility simulation.

  • Industrial protocols

    Modbus TCP and MQTT.

  • Alarms and faults

    Alarm handling and 4 fault scenarios.

  • Operator dashboard

    Next.js interface with live updates over WebSocket.

  • Observability

    Prometheus metrics and Grafana dashboards.

Architecture

  1. Simulation
    • Facility simulation, 5-second cycle
    • Fault scenarios
  2. Protocols
    • Modbus TCP
    • MQTT
  3. Backend
    • Python
    • FastAPI
    • PostgreSQL
    • WebSocket
  4. Interface
    • Next.js operator dashboard
  5. Operations
    • Prometheus, Grafana
    • Docker, Kubernetes manifests
    • GitHub Actions
    • AWS deployment configuration

1 of 4

Data Center Digital Twin overview with IT load, total power and PUE, a live power trend chart, facility status and data hall health

Overview: live power trend, facility status and data hall health

Tech stack

  • Python
  • FastAPI
  • MQTT
  • Modbus TCP
  • PostgreSQL
  • WebSocket
  • Next.js
  • Prometheus
  • Grafana
  • Docker
  • Kubernetes
  • GitHub Actions
  • AWS