autoscaling-strategies

Design autoscaling policies using reactive, scheduled, and predictive triggers with correct scaling signals.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill autoscaling-strategies-snoodleboot-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: autoscaling-strategies
Source: https://github.com/snoodleboot-io/discrecontinual_equations/tree/main/.claude/skills/autoscaling-strategies
Command: npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill autoscaling-strategies-snoodleboot-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams routinely misconfigure autoscaling by defaulting to CPU-based triggers, symmetric scale-in/out behavior, and reactive-only policies, which causes flapping, cold-start latency, and silently capped capacity during traffic spikes. ## Core Features & Use Cases - Trigger Selection Guidance: Explains reactive, scheduled, and predictive trigger types and how to layer them so a baseline absorbs known demand while a reactive safety net handles the unexpected. - Signal and Topology Decisions: Maps workload types (HTTP APIs, queue consumers, latency-critical tiers, batch jobs) to the correct scaling signal, and clarifies when horizontal scaling beats vertical scaling. - Control Loop Stabilization: Covers cold-start mitigation with warm pools and provisioned concurrency, plus asymmetric scale-out-fast/scale-in-slow damping to prevent flapping, including Kubernetes HPA behavior settings. - Use Case: A platform engineer notices their queue-consumer service oscillates replicas every few minutes while backlog grows; this Skill helps them switch to backlog-per-consumer scaling with asymmetric stabilization windows. ## Quick Start Review my service's autoscaling configuration and recommend the right trigger type, scaling signal, and stabilization settings for each tier.

Frequently Asked Questions about autoscaling-strategies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right autoscaling metric for my service?▼

Choose the signal that tracks actual load: requests per second or in-flight concurrency for HTTP APIs, queue depth or backlog per consumer for queue workers, and CPU only for genuinely compute-bound batch work. Add a latency or error-rate guardrail that can trigger scale-out independently.

Why does my autoscaler keep flapping between scaling out and in?▼

Flapping comes from symmetric scale-out and scale-in behavior in an under-damped control loop. Fix it with asymmetry: scale out quickly with a short stabilization window, scale in slowly with a long one, and set a cooldown at least as long as the time new capacity takes to become useful.

Should I use horizontal or vertical scaling for my workload?▼

Use horizontal scaling whenever work can be spread across stateless instances, since it offers near-unbounded capacity and better failure isolation. Reserve vertical scaling for unsplittable stateful units like primary databases or in-memory indexes that must remain whole.

How do I prevent cold start latency when autoscaling?▼

Keep a minimum replica floor or warm pool on latency-sensitive paths so scale-up adds to warm capacity. For serverless, use provisioned concurrency on user-facing routes, and gate readiness probes on actual cache and connection-pool warm-up completion.

When should I use predictive autoscaling instead of reactive?▼

Use predictive or scheduled scaling when demand follows a known periodic pattern, since it provisions before load arrives and hides cold-start latency. Always keep a reactive layer underneath, because a wrong forecast has no way to recover on its own.

Why is my queue backlog growing even though workers show low CPU?▼

CPU is the wrong signal for queue consumers because the bottleneck is usually downstream I/O, not compute. Scale on backlog per consumer or oldest-message age instead, which directly measures how far behind the fleet is.