Auto Scaling
Master ClawCloud Run's intelligent auto-scaling capabilities to dynamically adjust application instances and achieve optimal resource allocation.
Master ClawCloud Run's Auto Scaling capabilities to automatically adjust application instances for optimal resource allocation.
How It Works
Think of auto-scaling as a 24/7 "smart regulator" for your applications. It operates through three key phases:
Continuous Monitoring Tracks core metrics like CPU utilization and memory usage across all active instances.
Intelligent Analysis Calculates required instance count based on preset thresholds (e.g., "maintain CPU usage below 50%").
Automatic Adjustment Dynamically scales instances up/down via ClawCloud Run's control plane, ensuring:
📈 Stability during traffic spikes
💰 Cost efficiency during low demand
Metric Calculation Logic
When multiple instances are running:
Averages determine scaling actions:
Real-World Example: E-Commerce Application
Scaling Rules
Scaling Formula:
Scenario 1: 🚀 Peak Traffic (Flash Sale)
Current State: 3 instances, CPU at 75%/80%/70% → 75% average
Calculation:
Action: Scales out to 5 instances
Scenario 2: 🌙 Off-Peak Hours
Current State: 5 instances, CPU at 30% average for 5+ minutes
Calculation:
Action: Scales in to 3 instances
Last updated
Was this helpful?