Skip to content
Projets

À propos

Automated cluster load balancing and intelligent VM/CT migration for Proxmox VE

Systèmes et infrastructure

Comment ces chiffres sont mesurés

What you can do

  • CPU, memory, IOWait and disk use for every node and guest, with one Headroom score per node (0–100, higher means more room)
  • A Needs attention strip that names the node and resource under pressure
  • Node roles: each node that suggestions move guests off or onto is marked Giving or Receiving (or Maintenance) in the Nodes table, the Cluster Map and the node panel
  • Cluster Map with 5 view modes, a find bar, drag-a-guest move preview, and the current suggestions drawn as arrows between nodes

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
+1

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original
ProxBalance Logo

ProxBalance Logo License: MIT Python Proxmox

Cluster monitoring and VM/CT migration for Proxmox VE

Quick Start | Features | Documentation


What is ProxBalance?

ProxBalance is a web app that monitors a Proxmox VE cluster, scores each node with a penalty-based algorithm, suggests guest migrations, and can run them on a schedule. It runs in an LXC container on one of your nodes and talks to the Proxmox API with an API token.

ProxBalance dashboard

Features

Monitoring

  • CPU, memory, IOWait and disk use for every node and guest, with one Headroom score per node (0–100, higher means more room)
  • A Needs attention strip that names the node and resource under pressure
  • Node roles: each node that suggestions move guests off or onto is marked Giving or Receiving (or Maintenance) in the Nodes table, the Cluster Map and the node panel
  • Cluster Map with 5 view modes, a find bar, drag-a-guest move preview, and the current suggestions drawn as arrows between nodes
  • Charts: cluster health from 1 day to 1 year with migration markers, and one chart with every node on a shared time axis, with a Min/Max band for the highlighted node
  • Node panel with the score breakdown ("Why N?"), disk health from SMART, and IO pressure (Proxmox VE 9)
  • Guests tab that says for every guest whether ProxBalance can move it, and why not
  • Quick search (Ctrl+K or Cmd+K, or /) to jump to any guest, node or page
  • Overview dashboard: gauges, charts and the Cluster Map as widgets you pick, drag into place and resize, with presets and named layouts
  • A Wall preset for a screen on the wall (full screen with F11)
  • Each guest's last backup and a 30-day backup history, read from Proxmox's backup task logs
  • Light and dark modes, and a layout that works on phones

Insights

  • Per-node trends against the recommendation thresholds (24 h to 90 d)
  • Forecast charts for each node metric heading for its limit within 30 days
  • Workload rhythm heatmap with the quietest hours and your migration windows
  • "What if a node fails?": where each guest would restart, and what wouldn't fit
  • Rolling update plan: an order for updating or rebooting nodes one at a time, with quorum checks and where each guest would go (plan only)
  • Right-sizing hints for guests whose vCPUs or memory don't match their use
  • Measured outcomes of past migrations

Migration

  • One-click migrations with progress and transfer speed
  • Suggestions as one run-ordered list in waves, with batch impact per node, subset selection and conflict what-ifs
  • Node maintenance mode with an evacuation plan that shows where each guest will land
  • Placement rules from tags and Proxmox pools: anti-affinity (hard), affinity (soft or required), with Enforce now to fix broken hard rules
  • Proxmox VE HA rules and target storage space are checked before every move

Automation

  • Scheduled runs with migration windows and blackout periods, and a live "migrations allowed now" status
  • Automatic or semi-automatic mode: in semi-automatic mode, most moves wait in an approval list
  • Observation gating: a suggestion must persist across several runs before automation acts on it
  • Safety checks: cluster health, quorum, target CPU and memory limits, rollback detection, a cap on moves into one node per run
  • Dry run, on by default
  • Change log of every migration, approval, setting change, tag change and update, with who or what made it

Notifications

  • Pushover, Email (SMTP), Telegram, Discord, Slack and webhooks
  • Alerts are sent once when a condition starts, not on every run, and can be silenced
  • Each channel can be tested on its own

Operations

  • Settings → Diagnostics: read-only checks of the API, token permissions, quorum, storage and ProxBalance's own services, with a copyable report
  • Updates only to published, tested releases (stable, beta or dev channel), with a backup and automatic rollback
  • Prometheus endpoint at /api/metrics and a Grafana dashboard
  • Optional AI review of suggestions (OpenAI, Anthropic or Ollama)

See the complete feature list for details.


Quick Start

Installation

Run on your Proxmox host:

bash -c "$(wget -qLO - https://raw.githubusercontent.com/Pr0zak/ProxBalance/main/install.sh)"

The installer creates an unprivileged LXC container, installs the dependencies, sets up the services and creates the API token.

Access

Open http://<container-ip> in your browser.


Screenshots

The screenshots come from a demo cluster with five nodes. Every page and tab has its own address, for example #/dashboard/map or #/automation/filters.

Overview

The Overview: cluster gauges, the Cluster Map and node tiles

The Overview (switch at the top right) is a dashboard of widgets you pick, drag into place and resize: gauges, charts, the Cluster Map, backups, forecasts and what needs you. Presets (including a Wall layout for a screen on the wall, full screen with F11) and named layouts.

Charts preset: load, busy hours, memory map and busiest guests
Charts preset: load, busy hours, memory map, busiest guests
Arrange mode: a tall map with two widgets stacked beside it
Arrange: drag to move, resize width and rows
Guest panel with the last backup and a 30-day backup strip
Backups: last backup and 30 days per guest
Map hover ringing a guest's affinity partners
Affinity on hover: partners ringed, rule checked

Dashboard (Detailed)

Top of the dashboard: needs attention, KPI row and automation status

The top of the dashboard: the Needs attention strip, the KPI row and the automation status with the last 24 hours of checks. Below it, the Cluster card has five tabs.

Nodes tab: node table with headroom, condition and roles
Nodes: headroom, condition and role per node
Guests tab: guest list with filters and a balancer verdict
Guests: filters and a balancer verdict for every guest
Map tab: cluster map with planned-move arrows
Map: guests per node, with planned moves as arrows
Charts tab: one chart with every node
Charts: cluster health and every node on one chart
Suggestions tab: run-ordered migration list
Suggestions: run order, batch impact per node, conflict what-ifs
Node side panel with disk health and IO pressure
Node panel: load, score breakdown, disk health, IO pressure

Insights, automation and settings

Insights: trends, forecasts and workload rhythm
Insights: trends, forecast charts, workload rhythm
Rolling update plan on the Insights page
Rolling update plan: one node at a time, with quorum
Automation: quick setup and schedule
Automation: quick setup and live schedule status
Moves waiting for approval in semi-automatic mode
Waiting for approval: semi-automatic mode
Guest rules: hard and soft placement rules
Guest rules: hard and soft rules, Enforce now
Change log of manual and automated changes
Change log: what changed, and who or what changed it
Settings: sections with live status
Settings: sections with live status; secrets are never shown
Settings, Diagnostics: read-only checks
Diagnostics: read-only checks with a copyable report

Other views

The Wall preset in full screen
Wall screen: the Wall preset, full screen with F11
Quick search palette
Quick search: Ctrl+K, Cmd+K or /
Dashboard on a phone
Phone: bottom tab bar and compact tables
The Overview on a phone
Overview on a phone: one widget per row

Documentation

Document Description
Installation Guide Setup and configuration
Usage Guide Workflows and UI guide
Configuration Reference All config.json options
Scoring Algorithm Penalty-based scoring system
Automated Migrations Modes, scheduling, placement rules and safety
AI Features AI provider setup
Notifications Alert providers and setup
API Reference REST API endpoints
Releasing and Updating Update channels, backups and rollback
Prometheus Metrics /api/metrics and the Grafana dashboard
Troubleshooting Common issues and solutions
Contributing Development guidelines

Full documentation index


System Requirements

  • Proxmox VE 7.0 or higher. IO pressure needs Proxmox VE 9; HA rules are read on 9 and HA groups on 8
  • Resources: 2 GB RAM, 2 CPU cores, 8 GB disk (minimum)
  • Network: Connectivity to all cluster nodes on port 8006
  • Access: Root access to Proxmox host

Security

  • API token authentication (no passwords stored)
  • Secrets (Proxmox token secret, AI keys, notification credentials) are never returned by the API; the UI shows a masked placeholder, and saving the placeholder keeps the stored value
  • Runs in an unprivileged LXC container
  • Cross-site requests to the API are blocked (csrf_protection), and an optional api_key protects every endpoint except /api/health
  • Designed for local network operation
  • Optional SSL/TLS support

Support


License

MIT License - see LICENSE for details.


Explorer des projets similaires

Chargement…