Implementation of Auto-Scaling and Load Balancing on Proxmox VE Using Python and REST API
Authors
| Issue | Vol. 10 No. 2 (2026) |
| Published | 8 August 2026 |
| Section | Articles |
| Pages | 42-57 |
Abstract
Auto-scaling and load balancing are essential for maintaining web service availability and performance under fluctuating workloads. This research implements an automated auto-scaling and load balancing system on Proxmox Virtual Environment (Proxmox VE) leveraging Proxmox REST API through Python scripts. The system monitors web container CPU usage at 5-second intervals, triggering scale-out by cloning LXC containers when average CPU exceeds 75% and scale-in when it falls below 30%, while ensuring at least one container remains active. Testing on a laboratory topology consisting of 1 template container, 1 load balancer, and 4 backend containers (IP range: 192.168.100.251-192.168.100.254) demonstrates average provisioning time of 96.0 seconds (range: 85.5-117.7s) with breakdown: API Clone (82.4s), Network Config (0.0s), Container Start (6.8s), Content Customization (3.1s), and Load Balancer Update (3.6s). Comparative analysis between always-on (4 containers) and auto-scaling scenarios reveals 36.1% CPU savings (31.66 vs 49.57 CPU-hours), idle time reduction from 54.2% to 28.3%, and efficient resource utilization with the system operating predominantly on 1 container (85% uptime). This implementation proves that Proxmox API integration with Python-based automation provides a practical auto-scaling solution for private clouds without complex orchestration platforms like Kubernetes.
Keywords: Auto-scaling, Load Balancing, Proxmox VE, Python API, Virtualization
How to Cite
file_copyCopyLicense
If the reviewed manuscript is accepted, the corresponding author will receive a detailed guide and a checklist for final manuscript submission requirements. Each author will be asked to sign a copyright form. The return of the signed form completes the acceptance process. Please note that the manuscript will not be published without the signed copyright form.
