Auto-Scaling
Automatically scale your applications based on metrics or schedules.
How It Works
Docka monitors your application metrics (CPU, memory, requests) and automatically adjusts the number of container replicas based on rules you define.
Features
- Metric-Based Scaling - Scale based on CPU, memory, or request count
- Scheduled Scaling - Pre-defined scaling for predictable traffic patterns
- Cooldown Periods - Prevent rapid scaling oscillation
- Min/Max Replicas - Set boundaries for scaling
API
POST /api/v1/apps/{id}/auto-scaling
{
"enabled": true,
"min_replicas": 1,
"max_replicas": 10,
"target_cpu_percent": 70
}