High Availability Deployment
PveSphere supports high availability deployment to ensure stable service operation.
High Availability Architecture
┌─────────────────────────────────────┐
│ Load Balancer │
└───────────┬─────────────────────────┘
│
┌───────┴───────┐
│ │
┌───▼───┐ ┌───▼───┐
│ API 1 │ │ API 2 │
└───┬───┘ └───┬───┘
│ │
└───────┬───────┘
│
┌───────▼───────┐
│ Database │
│ (Master-Slave)│
└───────────────┘
Component High Availability
API Service
- Multiple Instances: Run multiple API service instances
- Load Balancing: Use load balancer to distribute requests
- Health Checks: Automatically remove unhealthy instances
Database
- Master-Slave Replication: MySQL master-slave replication
- Read-Write Separation: Read operations access slave database
- Automatic Failover: Automatically switch when master fails
Redis
- Sentinel Mode: Redis Sentinel
- Cluster Mode: Redis Cluster
- Automatic Failover: Automatically switch master node
Monitoring and Alerts
- Service Monitoring: Monitor service health status
- Resource Monitoring: Monitor CPU, memory and other resources
- Alert Notifications: Notify promptly on anomalies
Backup and Recovery
- Data Backup: Regularly backup database
- Configuration Backup: Backup configuration files
- Quick Recovery: Support quick service recovery