Scaling
Scale your application to handle any load
Scaling Strategies
DarkAura provides both manual and automatic scaling options to ensure your application performs optimally under any load.
Horizontal Scaling
Add more instances to distribute load across multiple servers.
# Scale to 5 instances
darkaura scale --instances 5
# Via SDK
await client.servers.scale('srv_abc123', { instances: 5 })Vertical Scaling
Upgrade server resources (CPU, RAM, storage) for more capacity.
await client.servers.resize('srv_abc123', {
type: 'enterprise', // Upgrade to enterprise tier
storage: 500 // GB
})Auto Scaling
Configure automatic scaling based on metrics.
await client.autoscaling.configure({
serverId: 'srv_abc123',
minInstances: 2,
maxInstances: 10,
rules: [
{ metric: 'cpu', threshold: 70, scaleUp: 2 },
{ metric: 'cpu', threshold: 30, scaleDown: 1 }
],
cooldown: 300 // seconds
})Load Balancing
- ✓Automatic load balancing across all instances
- ✓Health checks with automatic failover
- ✓Sticky sessions for stateful applications
- ✓Geographic routing for global traffic