Skip to content

Solution · Auto-scaling

Auto-scaling that fires on real signals, with a hard cost cap.

Real thresholds, real cooldowns, and a budget ceiling set before go-live, so the site holds through campaigns and finance never calls at 2am.

For SMB e-commerce with bursty traffic (sales, launches, paid campaigns, holiday peaks) and SaaS with predictable load shapes like Monday-morning logins or end-of-quarter pushes.

When this matters

You either lost orders during a spike, or got a runaway bill the morning after.

Auto-scaling is one checkbox. A policy that holds under real traffic without flapping the month away is a different job. Most rules drift within a quarter; the first signal is finance on Slack or a customer saying checkout is down.

  • Scaling never triggers: the threshold sits above what real traffic reaches.
  • Scaling triggers constantly: cooldown too short, nodes cycling every 90 seconds, bill climbing.
  • Vertical scaling is on, but the bottleneck is concurrency. More RAM does nothing for the checkout queue.
  • New nodes join before the app is ready and customers land on half-warm pods.
  • No cost ceiling. A scraper scales the cluster sideways into a five-figure invoice.
  • Nobody reviews after the event. Same surprise, next campaign.

Scope

What Stack Harbor manages.

Most SMB sites need horizontal scaling with a hard cap and scheduled rules for known campaigns; some need vertical too. We pick the axis your bottleneck dictates.

Scaling policy

  • Vertical rules (CPU / RAM ceilings, headroom on the bottleneck tier)
  • Horizontal rules (min / max nodes, target metric, hysteresis)
  • Custom-metric triggers (queue depth, p95 latency, checkout error rate)
  • Scheduled scaling for known peaks (Black Friday, launches, Monday 9am)

Load balancing

  • Health checks so traffic only lands on warm nodes
  • Connection draining on scale-in (in-flight checkouts complete)
  • Sticky sessions where the app still requires them
  • Per-tier routing (app, worker, background jobs)

Alerting & review

  • Scale-event log with the metric snapshot that triggered it
  • Alerts on flap, runaway, or failed scale-up
  • Post-event review on every meaningful event
  • Quarterly policy review against the last 90 days of real load

Cost guardrails

  • Hard cap on max-node count, configured before go-live
  • Budget alert per environment, threshold below the cap
  • Idle-environment shutdown for staging and preview
  • Reserved-vs-on-demand break-even review

Operating model

Assess. Design. Deploy. Maintain.

  1. 01

    Assess

    Pull the last 90 days of real traffic. Find the bottleneck tier: CPU, RAM, concurrency, queue depth. Map known peaks and cost posture.

  2. 02

    Design

    Pick the axis. Thresholds against real metrics, not defaults. Cooldowns, the hard cost cap, alerting, and the review cadence.

  3. 03

    Deploy

    Roll out in stages. Validate against a known load event (a campaign, a load test, a traffic replay). Tune, then document so the team can defend it.

  4. 04

    Maintain

    Post-event review after every meaningful event. Quarterly review against the last 90 days of real load; thresholds and cap track traffic.

Technical blueprint

Trigger. Control. Capacity. Application. Alert.

A control loop: measure, decide, bring capacity up or down, pick up traffic, and watch the loop so it stays honest. Each layer is explicit and reviewable.

  • Trigger source matches the workload: CloudWatch on AWS, Prometheus on managed clusters, custom metrics when queue depth or p95 latency is the signal.
  • Cost cap configured before go-live, not after the first surprise invoice.
  • Scale-in cooldown longer than scale-out: flapping costs more than a brief over-provision.
  • Every scale event logged with the metric snapshot that triggered it.

FAQ

What teams ask before they turn on auto-scaling.

  • Vertical or horizontal: how do we choose?

    Where you bottleneck. Vertical (resize the box) fits CPU- or RAM-bound work that does not parallelize. Horizontal (add boxes) fits the typical stateless e-commerce or SaaS app tier, bottlenecked on concurrent connections. Many stacks use both.

  • How fast does scale-out really happen?

    Depends on pool warmth and app start time. With pre-baked images and a stateless app, 60 to 180 seconds is realistic. Cold builds with package installs take minutes; the warm pool exists so a spike never pays that.

  • What stops a runaway bill?

    A hard cap on max-node count, a budget alert below it, and alerting that pages a human if either is approached. The cap is configured before go-live.

  • Does the database scale too?

    In most SMB architectures, no, and that is deliberate. The app tier scales on traffic; the database is sized for the working set and adjusted in a maintenance window. Auto-scaling a primary database is a different problem; we say when it is worth it.

  • Can we schedule scaling for known events like Black Friday?

    Yes. For predictable peaks (Black Friday, campaign launches, Monday-morning logins, end-of-quarter pushes) scheduled scaling pre-provisions capacity before the event and falls back to metric rules after. Right size at the right time, no cold start.

  • How is this reviewed over time?

    Every meaningful scale event gets a short note: what triggered, how the policy behaved, what to adjust. Quarterly, the policy is reviewed against the last 90 days of real load so thresholds and the cap track the business.

From the knowledge base

Auto-scaling operations, in depth.

Load shapes, scaling triggers, tuning under load, and cost-control runbooks.

See all Performance articles

Campaign-safe scaling, with a cost ceiling you can defend.

Book an infrastructure consult. We review your load shape, bottleneck tier, and cost posture, then recommend a capped policy so the next sale is not a surprise invoice.