Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Auto-scaling failure during traffic peak: how to find and fix it

OPS-091High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Auto-scaling is a hosting feature that adds or removes servers (or containers) based on load. Examples include AWS Auto Scaling groups, Google Cloud managed instance groups, Azure scale sets, Kubernetes autoscalers and the scaling settings on some managed platforms.

A scaling failure happens when the system does not react in time. Common causes: the rule waits too long before reacting, new servers take minutes to boot, a maximum limit is reached, a quota blocks new instances, or the database behind the servers becomes the bottleneck. More web servers will not help if the database cannot cope.

How a scaling failure unfolds
  1. Campaign goes liveTraffic jumps within minutes
  2. Scaling rule reactsToo slow, capped or blocked
  3. Pages slow or errorTimeouts, 502/503 errors
  4. Forms and checkoutVisitors give up

The break is between the traffic spike and new capacity arriving. Everything after it suffers.

Why it costs you leads or sales

Peaks are when you have the most intent: a product launch, a sale, an email blast or a new ad set. If the site slows down or returns 502, 503 or 504 errors at that moment, you pay for clicks that never become leads or orders. Visitors rarely retry.

Conversions during a spikeExample numbers
Conversions during a spike (example)Normal hour: 20 orders per hour; Peak, scaling works: 60 orders per hour; Peak, scaling fails: 12 orders per hour02346206012Normal hourPeak, scaling worksPeak, scaling failsorders per hour

Example: illustrative numbers only. Orders flatten or drop when capacity does not keep up with traffic.

Example: a launch with slow scaling
  1. 10:00

    Email goes out and traffic starts to climb.

  2. 10:04

    CPU passes the scale-out threshold, but the rule needs 10 minutes of high load first.

  3. 10:10

    Servers are overloaded. Visitors see timeouts.

  4. 10:15

    New servers start booting. They need 5 more minutes to be ready.

  5. 10:20

    Capacity catches up, but the peak of interest has passed.

How to check if your site has it

Look at the time of your last peak and compare three things: traffic, server count and error rate. If traffic rose but server count stayed flat or rose late, scaling failed.

Where to look after a peak
  • Scaling activity history in your cloud console (look for failed launches, quota or capacity errors)
  • Instance or container count against the configured maximum
  • CPU, memory and request queue graphs during the peak
  • Load balancer metrics: 5xx counts, target response time, unhealthy hosts
  • Database metrics: connections, CPU, slow queries
  • Time from a scale-out event to the new server passing health checks
Common signs and likely causes
What you seeLikely cause
Server count never risesWrong metric, threshold too high or scaling policy not attached
Server count stops at a fixed numberMaximum capacity reached
Launch errors in activity historyAccount quota, no capacity in the zone, bad image or template
Servers rise but errors continueSlow boot time or the database is the bottleneck
Servers added, some stay unhealthyHealth check fails during startup

How to fix it

Fix scaling that fails at peak
  1. Find the bottleneck

    Use the graphs from the last peak to see which resource hit its limit first: web CPU, memory, database or a third-party API.

  2. Raise the minimum capacity before known peaks

    For planned launches, set a higher minimum instance count or use scheduled scaling an hour before. Do not rely on reactive scaling alone.

  3. Scale on a faster signal

    Shorten the evaluation period and cooldown for scale-out. Consider request count per target or queue depth instead of CPU alone.

  4. Raise the maximum and check quotas

    Make sure the maximum is above your expected peak and that account limits (instance quotas, IP addresses) allow it.

  5. Cut startup time

    Use a prebuilt image or container, avoid installing packages on boot and set health checks that pass only when the app is ready.

  6. Protect the database

    Add caching, read replicas or connection pooling so extra web servers do not overload the database.

  7. Cache and use a CDN

    Serve landing pages and static files from a CDN so most visitors never reach your origin server.

Where to change it on common setups
  1. Add full-page caching

    Use your host's page cache or a caching plugin so most visits skip PHP and the database.

  2. Ask your host about scaling

    On managed WordPress hosting, ask support what limits apply and whether they can raise resources before a campaign.

How to confirm it's fixed

Run a load test against a staging copy or, with your host's permission, production at a quiet time. Ramp traffic up quickly and watch server count, error rate and response time. Only test systems you own and follow your provider's load testing policy.

Pass criteria
  • New capacity is ready within your target time
  • Error rate stays near zero during the ramp
  • Response time stays within your limit
  • Database metrics stay below their limits
  • Server count scales back down after the test

How to prevent it happening again

Habits that prevent repeats
  • Tell whoever runs hosting about launches and big sends at least a few days ahead
  • Schedule extra capacity before planned peaks
  • Load test after every major change to the app, image or scaling rules
  • Set alarms on 5xx rate, response time and scaling failures
  • Review quotas and maximum limits each quarter
  • Keep a rollback plan and a lightweight fallback landing page

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys on a schedule, such as lead forms and checkouts, but it does not measure server capacity, scaling activity or behaviour under heavy load. The kinds of tool that fit are infrastructure monitoring and alerting (your cloud provider's metrics and alarms, or an application performance monitoring tool) and a load testing tool to simulate a peak.

FunnelGuard can still be useful alongside them as a separate check that your forms and checkout work in normal conditions. A free read-only website audit is available too, and the Free plan covers 1 site and 2 journeys with no card.

Questions people ask

Why is my auto-scaling not working during a traffic spike?

Usual causes are a scaling rule that waits too long, a maximum capacity that is too low, account quotas blocking new instances, or new servers that take too long to start. Check your scaling activity history for failed launches and compare server count with traffic.

How do I make auto-scaling react faster?

Shorten the evaluation period and cooldown for scale-out, scale on request count or queue depth as well as CPU, and use prebuilt images so servers start quickly. For planned launches, schedule extra capacity in advance.

Can auto-scaling handle a sudden ad campaign spike?

Not always. Reactive scaling takes minutes to notice load and add servers, so a sharp spike can overload your site first. Pre-scaling before the campaign and caching landing pages are more reliable.

Why does my site still crash after scaling out?

The bottleneck may be elsewhere, often the database, a connection limit or a third-party service. Extra web servers can even make a database overload worse. Check database metrics during the peak.

How do I load test auto-scaling safely?

Use a load testing tool against a staging environment, or production at a quiet time with your host's permission. Ramp traffic up quickly and watch server count, error rate and response time.

Does FunnelGuard detect auto-scaling failures?

No. FunnelGuard monitors funnel journeys, tracking and lead delivery, not server capacity or scaling. Use infrastructure monitoring and a load testing tool for this issue.

How early should I scale up before a launch?

Enough that new servers are running and healthy before traffic arrives, often well before the send time. Base it on your measured boot and warm-up time, and confirm with a load test.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.