Scaling
Scale your containers automatically based on traffic and resource usage.
Scaling Options
Vertical Scaling
Increase CPU and memory for your container
- • CPU: 256 to 4096 units
- • Memory: 512MB to 2GB (Enterprise: more)
Horizontal Scaling (Pro+)
Run multiple instances of your container
- • Auto-scaling based on CPU/memory
- • Load balancing included
- • Min/max instance configuration
Auto-Scaling Configuration
Configure auto-scaling rules (Pro plan and above):
# Example configuration
scaling:
min_instances: 1
max_instances: 5
target_cpu: 70 # Scale up at 70% CPU
scale_down_delay: 300 # Wait 5min before scaling down
Resource Allocation by Plan
| Plan | CPU | Memory | Auto-Scale |
|---|---|---|---|
| Free | Shared | 512MB | No |
| Hobby ($9) | Shared | 512MB | No |
| Pro ($29) | Dedicated | 1GB | Yes |
| Enterprise ($149) | Dedicated | 2GB+ | Yes |
Load Balancing
When running multiple instances, SnapDeploy automatically:
- Distributes traffic across all healthy instances
- Routes away from unhealthy instances
- Maintains session affinity when needed
- Provides zero-downtime deployments