Nevatal Cloud Proxmox VE Control Plane: Architecture & Performance Benchmark Deep Dive

Live web application screenshot and interface of Nevatal Cloud (Proxmox VE Control Plane & VPS Orchestrator)
Key Takeaways:

  • Decoupled Control Plane: Go 1.23 backend with Chi router, JWT RBAC, and async worker queue abstracts Proxmox VE complexity.
  • Transactional Provisioning: PostgreSQL 16 ACID guarantees prevent resource over-commitment during automated VPS cloning.
  • E-Commerce Native: WooCommerce webhook integration delivers VPS instances in < 90 seconds post-checkout via Cloud-Init.
  • Bare-Metal Telemetry: Real-time Dell PowerEdge R640 sensor data (IPMI/Redfish) surfaced via WebSocket for capacity planning.
Live Project Access: https://cloud.nevatal.id

Live web application screenshot and interface of Nevatal Cloud (Proxmox VE Control Plane & VPS Orchestrator)
Live web application interface of Nevatal Cloud (Proxmox VE Control Plane & VPS Orchestrator) (https://cloud.nevatal.id)

The Engineering Challenge: Why Nevatal Cloud Was Architected

Managing virtual servers on private bare-metal infrastructure presents three critical operational hurdles that traditional tooling fails to solve elegantly. First, native hypervisor consoles like Proxmox VE expose raw cluster topology, storage LUNs, and network bridges—interfaces designed for sysadmins, not end-users or developers. Second, multi-tenant isolation requires transactional quota governance and atomic resource reservation to prevent CPU/RAM over-commitment, capabilities absent in standard virtualization panels. Third, modern workloads demand specialized orchestration: managed Android emulation (Waydroid), dedicated game servers (Minecraft, Valheim), autonomous AI agent infrastructure (OpenClaw/MCP), and one-click application stacks (n8n, MinIO S3).

Nevatal Cloud solves this by implementing a self-hosted, enterprise-grade control plane that sits between the e-commerce layer (WooCommerce) and the hypervisor layer (Proxmox VE API), enforcing quotas, automating Cloud-Init injection, and exposing a developer-friendly React 19 portal.

Core Architecture & Technical Stack Deep-Dive

System Topology: Decoupled Layers

The architecture follows a strict separation of concerns across five logical layers, deployed via Docker Compose on the Dell PowerEdge R640 node (100.86.61.70):

Client Layer (Browser, WooCommerce, AI Agents)
    ↓ HTTPS / REST / WebSocket / MCP
Gateway Layer (Nginx Reverse Proxy: SSL, Static Assets, Rate Limiting)
    ↓
Backend Layer (Go 1.23: Chi Router, Service Layer, Async Worker Queue)
    ↓ pgx / Redis PubSub
State Layer (PostgreSQL 16 ACID, Redis 7 Caching/Queue)
    ↓ Proxmox VE REST API v2
Hypervisor Layer (QEMU/KVM VMs, LXC Containers, ZFS/LVM-Thin/MinIO Storage)

Backend Engine: Go 1.23 Async Orchestrator

The backend (/backend) is the authoritative brain. It utilizes the chi router for middleware chaining (JWT authentication, RBAC authorization, CORS, Request ID tracing). The Service Layer encapsulates domain logic: InstanceService (VM lifecycle), QuotaService (resource accounting), GameServerService, AndroidService, and MCPService.

Crucially, long-running hypervisor operations (cloning templates, resizing disks, configuring Cloud-Init network) are offloaded to an Asynchronous Task Worker & Job Scheduler. This prevents HTTP request timeouts and enables horizontal scaling of workers. Jobs are persisted in PostgreSQL with status transitions (PENDING → RUNNING → COMPLETED/FAILED), enabling idempotent retries and full audit trails.

Database & Cache Layer: Transactional Integrity

PostgreSQL 16 runs in strict Transactional ACID Isolation. The schema enforces referential integrity between users, quotas, instances, audit_logs, and jobs. Row-level locking (SELECT ... FOR UPDATE) inside distributed transactions guarantees that quota checks and instance creation are atomic—eliminating race conditions during concurrent WooCommerce checkout spikes.

Redis 7 serves dual roles: high-throughput caching for telemetry dashboards (CPU/RAM/IOPS time-series) and the backing store for the async job queue (via Redis Streams or BullMQ equivalent), decoupling API latency from worker throughput.

Frontend: React 19 Control Plane

The SPA (/frontend) leverages React 19, TypeScript, Vite, and Tailwind CSS v4. It consumes the Go REST API and WebSocket endpoints for real-time updates. Key components include the Instance Manager (CRUD + VNC console proxy), Quota Visualization (progress rings with hard/soft limits), and the Marketplace Catalog (one-click deployment of Android, Game Servers, n8n, MinIO). The build outputs static assets served directly by Nginx.

Key Features Breakdown & Practical Benefits

1. Automated VPS Provisioning via WooCommerce

The nevatal-cloud-manager WordPress plugin listens for woocommerce_payment_complete webhooks (HMAC verified). It calls POST /api/v1/instances with the plan SKU. The Go backend validates quota, reserves resources in a DB transaction, clones the QEMU template, injects Cloud-Init (static IP, SSH keys, hostname), and boots the VM. The portal shortcode [nevatal_instances] renders a React micro-frontend allowing customers to Reboot, Terminate, or view VNC console immediately.

2. Specialized Workload Modules

  • Managed Android (Waydroid): Deploys LXC containers with nested virtualization enabled, pre-configured for ADB over WebSocket, enabling mobile CI/CD and app streaming.
  • Game Servers: Automates SteamCMD installation, port allocation (via Proxmox SDN or iptables), and systemd service management for Minecraft, Palworld, Valheim, CS2.
  • AI Agent / MCP Infra: One-click deployment of OpenClaw daemons and MCP Tool Registries with persistent volumes and automatic TLS termination.
  • App Stacks: Docker Compose based templates for n8n, MinIO (S3 API), and generic Docker hosts.

3. Enterprise Telemetry & Hardware Awareness

The backend polls Dell PowerEdge R640 iDRAC/Redfish APIs (or IPMI) to surface real-time hardware telemetry: per-core CPU load, DIMM memory allocation/health, PCIe device status, fan speeds, power draw (Watts), and storage pool capacity (ZFS/LVM-Thin). This data streams via WebSocket to the React dashboard, enabling capacity planning alerts before hypervisor saturation.

Real-World Deployment & Production Topology

The live production deployment at https://cloud.nevatal.id runs on a single Dell PowerEdge R640 node (Dual Intel Xeon Scalable, 384GB RAM, NVMe ZFS pools). Docker Compose orchestrates 6 containers: nginx, backend-api, backend-worker, postgres, redis, frontend. Nginx handles TLS termination (Let’s Encrypt), gzip/brotli compression, and routes /api/* to Go, /ws/* to Go WebSocket handler, and /* to React static files.

Data Flow & How It Works: Step-by-Step Workflow

  1. Purchase: Customer completes checkout on WooCommerce store.
  2. Webhook: Plugin sends signed payload to POST /api/v1/webhooks/woocommerce.
  3. Validation & Reservation: Go handler verifies HMAC, checks QuotaService (DB transaction), creates Instance row (PROVISIONING), emits Job to Worker Queue.
  4. Async Execution: Worker picks job → Proxmox API POST /nodes/{node}/qemu (clone from template) → Polls task UPID → Cloud-Init ISO generation (network config, SSH keys) → VM Boot → IP Agent check.
  5. Completion: Worker updates Instance status to RUNNING, records allocated IP/M

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *