System Architecture — 4 Layers
CONTROL
🧠
IP Manager
State Machine · Rich UI
📡
DNS Manager
BIND9 · Zone Files
🔔
Alert System
Telegram Bot
HEALTH
🔍
Checker Hub
Flask · AES Encryption
🖥️
VM Node #1
ESXi · Ping Probe
🖥️
VM Node #2
ESXi · Ping Probe
🖥️
VM Node #3
ESXi · Ping Probe
CLOUD
☁️
AWS Panel #1
Flask · Lightsail SDK
☁️
AWS Panel #2
Flask · Lightsail SDK
☁️
AWS Panel #N
Flask · Lightsail SDK
Manage · Rotate · Monitor
▼
NODES
🌐
Instance Fleet
eu-north · eu-west · eu-central
📊
Resource API
CPU · RAM · Network
Key Features
🔄
Self-Healing Rotation
Automated IP rotation via AWS Lightsail SDK with static IP attach/detach pattern. Zero-downtime failover.
🔐
AES-256 Encrypted Checks
All health-check traffic between servers is AES-256-CBC encrypted with SHA-256 derived keys.
🧠
FSM State Engine
6-state machine (Unknown→Checking→Standby→Front→Filtered→Discharge) with dynamic time calculation.
⚡
Concurrent Checking
ThreadPoolExecutor-based parallel health checks across 9+ nodes with batch processing and failover.
📊
Live Terminal Dashboard
Real-time Rich TUI showing traffic bars, state counts, IP tables, logs, and stats — refreshing every second.
🌐
DNS Automation
Automatic BIND9 zone file management with live A-record updates and rndc reload on state changes.
🚨
Throttle Detection
Smart bandwidth anomaly detection (58-65Mbps range) with double-check confirmation and auto CPU reset.
☁️
Multi-Region AWS
Manages instances across eu-north, eu-west, eu-central regions with per-panel isolation to avoid rate limits.
♻️
Dual Checker Failover
Primary + backup checker architecture with automatic fallback and periodic recovery attempts every 30s.
Tech Stack
Python
Flask
boto3 (AWS SDK)
Threading
AWS Lightsail
VMware ESXi
BIND9 DNS
AES-256 Encryption
Rich TUI
ThreadPoolExecutor
REST API
Telegram Bot
psutil
Jalali Calendar
Concurrent Futures
Project Scale