Pr0zak/ProxBalance
Tentang
Automated cluster load balancing and intelligent VM/CT migration for Proxmox VE
Sistem dan infrastrukturYang dapat Anda lakukan
- 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
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +1
- dalam 1 bulan
- +1
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliWhat 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.
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/metricsand 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 (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, busiest guests |
Arrange: drag to move, resize width and rows |
Backups: last backup and 30 days per guest |
Affinity on hover: partners ringed, rule checked |
Dashboard (Detailed)
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: headroom, condition and role per node |
Guests: filters and a balancer verdict for every guest |
Map: guests per node, with planned moves as arrows |
Charts: cluster health and every node on one chart |
Suggestions: run order, batch impact per node, conflict what-ifs |
Node panel: load, score breakdown, disk health, IO pressure |
Insights, automation and settings
Insights: trends, forecast charts, workload rhythm |
Rolling update plan: one node at a time, with quorum |
Automation: quick setup and live schedule status |
Waiting for approval: semi-automatic mode |
Guest rules: hard and soft rules, Enforce now |
Change log: what changed, and who or what changed it |
Settings: sections with live status; secrets are never shown |
Diagnostics: read-only checks with a copyable report |
Other views
Wall screen: the Wall preset, full screen with F11 |
Quick search: Ctrl+K, Cmd+K or / |
Phone: bottom tab bar and compact tables |
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 |
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 optionalapi_keyprotects every endpoint except/api/health - Designed for local network operation
- Optional SSL/TLS support
Support
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Discussions
- Troubleshooting: docs/TROUBLESHOOTING.md
License
MIT License - see LICENSE for details.
Jelajahi proyek terkait
Memuat…