Skip to content

Example scenario · Enterprise WordPress + WooCommerce · holiday peak readiness

WooCommerce through Black Friday — no checkout failures, no 3am pages

How a Canadian D2C outdoor brand on WooCommerce went from two failed Black Fridays to absorbing 4.1M page views and an 8x peak without a single checkout failure.

Illustrative client profile: D2C e-commerce · outdoor/lifestyle · mid-7-figure ARR · Canadian. This example scenario shows how we approach the work; it does not describe a specific client, and its figures are illustrative.

Outcomes

Monthly traffic
~620k sessions/mo · peak day 4.1M page views
Uptime
99.99% across the holiday weekend
Response p95
p95 410 ms at peak (was 2.8s last year)
Tickets
−74% during sale window
Incident response
1 minor alert · 4-min ack · mitigated before customer impact
Migration window
No customer-visible downtime during platform upgrades
MRR
Retainer continued post-event · scope expanded
Infra cost change
+22% headroom · cost +9% YoY

The founder of a Canadian outdoor/lifestyle D2C brand — mid-seven-figure ARR, WooCommerce on WordPress, eight people across marketing, ops, and creative — emailed us in late August. The subject line was four words: “we cannot do this again.”

The “this” was Black Friday. Two years running, the store had degraded in the last ninety minutes of the sale. The first year, checkout returned 500s for about forty minutes; the team comped the affected orders and ate the margin. The second year, checkout didn’t outright fail — it queued. Customers saw a spinner, refreshed, double-clicked, and either bailed or accidentally placed two orders. The customer-service inbox absorbed it for a week. The internal postmortems were short and blamed “hosting.” Both times the team had upgraded their managed WordPress plan two weeks before the sale and assumed the bigger plan would carry them. It didn’t.

We had ten weeks. The goal was specific and falsifiable: zero checkout failures across the Black Friday / Cyber Monday window, and a measurable removal of performance friction during sale traffic. Not a marketing redesign. Not a replatform. The store on Black Friday weekend had to be the same store the team operated the rest of the year — just with the failure modes removed.

At a glance

  • Peak day absorbed: 4.1M page views, sustained checkout throughput across the BFCM window, zero checkout failures.
  • p95 server response at peak: 410 ms (vs ~2.8 s in the same window the previous year).
  • One alert fired across the weekend — acknowledged in 4 minutes, mitigated before any customer-visible impact.
  • Infrastructure headroom up ~22%, total YoY infra cost up ~9% — net cost-per-order down meaningfully.

What the audit found

We started with a two-week audit against a clone of production, plus traffic logs from the prior two Black Fridays. The pattern was consistent across both years and matched what we see often in WooCommerce stores that have grown into themselves without anyone re-sizing the foundation underneath.

PHP-FPM was the first bottleneck, but not the way the team thought. The managed plan exposed a fixed pool — 30 children, pm = dynamic, pm.max_children = 30, pm.start_servers = 6. Their average concurrency outside sale windows was 8–12 workers. During the last two Black Fridays, sustained concurrency went past 30 inside the first hour of the sale and stayed there. Requests queued at the FPM listen socket. Checkout, which is the most worker-expensive page in WooCommerce (cart recalculation, tax, shipping API calls, payment gateway round-trip), was disproportionately punished. Once the queue depth crossed a threshold, the gateway plugin timed out on the payment authorization callback and surfaced as a 500.

Four plugins generated the majority of database query volume. A points-and-rewards plugin re-counting customer points on every page load. A “frequently bought together” recommender doing un-cached cross-product joins on every product view. A live-shipping-rate plugin calling carrier APIs synchronously inside the cart fragment refresh. And a back-in-stock notifier that was sending one extra UPDATE per pageview on a non-indexed column. We measured a typical product page at 6–9 database queries that did not need to exist, and a cart page that fanned out into 18+ on hot paths.

The cache strategy was nominal, not real. Object cache (Redis) was installed but only about half the WordPress hooks were going through it — the cart fragments endpoint, in particular, was bypassed entirely. The page cache had a smart Vary policy that, in practice, fragmented the cache so heavily that the hit rate on top-50 product pages was sitting at ~38% during normal traffic and would drop further under sale load as the cache churned.

The CDN was misconfigured for bursty load. Cloudflare was in front of the site, but cache rules treated the product catalog the same as the admin dashboard. Cache-Control headers from the origin were inconsistent. Static assets had decent cache lifetimes, but HTML had no edge caching at all on the categories that drove most of the sale traffic. Miss rate on the home and top category pages during the prior Black Friday was over 80%, meaning origin took nearly every request.

No cache-warming process existed. When the sale email went out, the first wave of traffic hit cold caches and paid the full origin cost. The team had been launching their Black Friday email at 5am ET specifically because earlier sends produced worse performance. They had developed operational scar tissue around an infrastructure problem.

WP-Cron was firing on every pageview — standard WordPress default — and one of the scheduled jobs was a heavy email-segmentation export that the marketing tool had registered. During peak traffic, this job tried to run hundreds of times per minute.

The plan

We didn’t move the store off WooCommerce. We didn’t ask the team to change vendors mid-flight. The target architecture was a tuned, observable WordPress + WooCommerce stack on infrastructure sized for the actual peak, with deterministic cache behaviour and a load-test plan we could trust.

  • Application tier: three application nodes on CloudLinux + LiteSpeed, sized so any single node could absorb 100% of average traffic, behind a load balancer with sticky sessions disabled (WooCommerce is fine with session in the database when sized correctly). PHP-FPM pool re-tuned per node based on measured per-worker memory after the plugin audit.
  • Data tier: managed MariaDB primary plus a read replica. WooCommerce session and cart tables on the primary. Heavy reporting and recommender reads routed to the replica.
  • Cache tier: dedicated Redis for object cache, with the cart-fragments endpoint explicitly included. Full-page cache at the application layer for anonymous traffic, with a deterministic bypass list for logged-in users, cart-state cookies, and checkout.
  • Edge: Cloudflare cache rules rewritten so the product catalog and category pages are cached at the edge with short TTLs and stale-while-revalidate, while the admin, account, cart, and checkout paths bypass entirely. Origin sets explicit Cache-Control and Vary on the routes we want cached.
  • WP-Cron: disabled inside WordPress (DISABLE_WP_CRON) and moved to a real cron process with per-job timing and a sane staggered schedule. The marketing-tool segmentation job was moved to a 4am window.

The PHP-FPM pool config that ended up shipping on the application nodes:

; /etc/php/8.2/fpm/pool.d/woocommerce.conf
[woocommerce]
user = woocommerce
group = woocommerce
listen = /run/php/woocommerce.sock
listen.backlog = 4096

pm = dynamic
pm.max_children = 96
pm.start_servers = 24
pm.min_spare_servers = 16
pm.max_spare_servers = 32
pm.max_requests = 1000
pm.process_idle_timeout = 30s

request_terminate_timeout = 30s
request_slowlog_timeout = 4s
slowlog = /var/log/php-fpm/woocommerce.slow.log

php_admin_value[memory_limit] = 384M
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.validate_timestamps] = 1

The numbers came out of the audit, not a template. pm.max_children is sized against measured per-worker RSS (~180–220 MB under WooCommerce checkout) and reserved node memory for Redis-on-host and the OS. request_terminate_timeout is intentionally lower than the payment gateway’s own timeout, so a stuck worker dies before the gateway gives up — the customer sees a fast failure they can retry, not a hung page.

Load testing was scripted in k6 against a staging clone that mirrored production minus the live payment endpoint (we stubbed the gateway). The scenarios stepped through browse → product → add to cart → checkout, with realistic think times and a 60/40 anonymous/logged-in split. We tagged checkout transactions separately so we could watch their p95 independently of catalog traffic.

The load-test progression

We ran progressive load tests at 1x, 3x, 5x, and 8x of the prior year’s measured peak, in weeks four, six, seven, and nine of the engagement. Each step was a separate scheduled window with the engineering team in the room. We failed deliberately on the way up.

1x — baseline against the new stack. Everything held. p95 server response 310 ms across the mix. The point of the run was to validate the load-test rig itself, not the stack, and to confirm we were measuring what we thought we were measuring.

3x — first real signal. Catalog pages were comfortable. Checkout p95 drifted from 420 ms to 740 ms over the 20-minute steady state. The cause was the recommender plugin’s “frequently bought together” query against the read replica — replica lag climbed because the recommender was issuing the same expensive query without query caching. We added an object-cache layer for the recommender’s results with a 5-minute TTL and a cache-key on the product set, not the user. Re-ran; checkout p95 came back to 460 ms.

5x — the run that taught us the most. This is where we found things that 3x did not surface, because they were second-order effects of sustained worker pressure. Three:

  1. Session table lock contention. WooCommerce stores cart sessions in a custom table. Under sustained 5x load with anonymous and logged-in mix, the session table started showing row lock waits because the session GC job ran on the same connection pool as the front-of-house traffic. We moved session GC to a dedicated low-priority connection and reduced its frequency.
  2. A Cloudflare cache rule we had written wrong. Pagination on category pages (?paged=2, ?paged=3) was bypassing edge cache because of an overly aggressive query-string ignore list. Origin absorbed pagination traffic that should have been edge-served. Fixed.
  3. The most important finding. Under sustained worker pressure, the payment gateway’s webhook callback to mark orders paid was queuing behind front-end traffic. Webhooks are POSTs and were going through the same FPM pool as the storefront. We split the FPM pool: a dedicated pool for /wp-json/ and the gateway webhook path, with its own children count, so webhook ack times did not degrade under traffic. This one would have re-created last year’s “phantom failed orders” problem under real BFCM load. We would not have found it at 3x.

8x — confidence run. Held cleanly. Checkout p95 410 ms, catalog p95 280 ms, no error budget burn. Origin CPU on application nodes was around 55% headroom. We did not need 8x of last year’s peak — we needed to know the cliff was beyond where we’d actually be.

In parallel with load testing, we pre-warmed caches the evening before the sale: a synthetic crawler walking the top 2,000 product URLs and the top 50 category URLs through the edge, then through the origin, with the cache populated and validated before the marketing email was scheduled.

The weekend itself

The sale started at 6am ET on Black Friday. The engineering team was in a shared call on standby — not because we expected to do anything, but because the team wanted us in the room. Our on-call senior engineer owned the severity bar; our trained rotation watched dashboards and ran the runbook for the three flagged failure modes.

The marketing email landed at 6:00. Edge cache absorbed it; origin CPU went up by maybe 12 points and settled. Checkout throughput climbed and stayed climbing through the 11am traffic peak and the evening secondary peak. p95 server response across the whole weekend stayed under 500 ms. p95 checkout transaction time at peak was 410 ms.

One alert fired. Saturday morning, 09:14 ET. PHP-FPM slow log on application node 2 caught a sustained spike of slow requests on a single product URL — a limited-edition SKU that went live at 9am with a one-tap deep link from a paid social ad. The product had a custom field plugin attached that wasn’t in our query-cache list. Our on-call ack’d in 4 minutes, identified the query, and added it to the object cache via the admin-side toggle the audit had set up for exactly this kind of last-minute add. Mean response on that URL came back inside two minutes. No customer-visible impact — checkout was never affected, and the product page itself never crossed our user-visible latency budget.

That was the entire weekend’s operational drama. No paging at 3am. No war room. The founder messaged the engineering channel at 11pm Friday: “is it normal that I have nothing to do.”

After the dust settled

The 90-day picture, measured against the prior two Black Fridays and the team’s own analytics:

  • Throughput: 4.1M page views on peak day, ~620k sessions/month average — both up YoY against prior year, with capacity headroom unused. The store ran the same checkout flow throughout the weekend without queuing.
  • Performance: p95 server response 410 ms at peak. Same window prior year was ~2.8 s. p95 for the checkout transaction specifically stayed under 500 ms throughout the sale.
  • Reliability: zero checkout failures across the BFCM window. One non-customer-facing alert handled within the agreed severity bar.
  • Support load: support-ticket volume during the sale window was down ~74% versus the prior year. Most of the residual tickets were sizing and shipping questions, not “I can’t check out.”
  • Conversion: the team’s analytics showed a meaningful sale-window conversion-rate lift, attributable to the absence of friction (no spinners, no double-submits, fast checkout). We do not claim a specific number publicly because the brand also ran a different promotional mix this year — but the founder’s revenue-per-session was up YoY by a margin large enough that the post-event review was about how to keep the gains, not how to recover from another bad weekend.
  • Cost: total infrastructure spend was up about 9% YoY for the engagement, with roughly 22% more peak headroom in reserve. Cost per order during the sale window was meaningfully lower.
  • Retainer: the engagement continued post-event and expanded to include the team’s secondary B2B portal and their PIM integration. The founder asked us to run their staging-environment-as-a-service for the spring catalog launch.

What we’d say to another WooCommerce shop

A few things land harder after running this work end to end.

Most WooCommerce performance problems are not a hosting plan problem. They are a plugin-query problem, a cache-strategy problem, or a worker-pool sizing problem — and “upgrade your plan” papers over the first two while only sometimes solving the third. If your last Black Friday went sideways, the postmortem owes you a query analysis, not a bigger box.

Load test progressively, in public. Skipping straight to 8x looks impressive and teaches you nothing. The interesting failures are the second-order ones at 5x: lock contention, replica lag, webhook starvation. You only see them when you sit at a sustained load long enough for the queues to fill.

Split the FPM pool for webhooks. This is the single change that, in retrospect, prevented a quiet recurrence of the prior year’s checkout-as-success-but-not-really class of failure. Payment gateway acks must not compete with storefront requests under load.

Pre-warm the cache before the marketing email, not after. A crawler that walks your top URLs the night before is worth more than another vCPU.

What we wouldn’t do again. We considered routing a portion of catalog traffic to a fully decoupled headless front-end specifically for the sale window. We talked the team out of it. The marginal performance gain was real but small, and the operational complexity of running a second front-end through a single peak weekend would have cost us more than it bought. WooCommerce, tuned, on infrastructure sized for the actual peak, was the right tool for this team. We’d make the same call again.


This is an example scenario: an illustrative engagement that shows how we approach this kind of work. It does not describe a specific client, and its figures are illustrative.

Running WooCommerce into a peak window? Read about Enterprise WordPress operations or talk to us about a readiness engagement.

Tell us what you're running. We'll tell you what needs to change.

Book a consult with Stack Harbor. We will review your current environment, risk points, support needs, and the best path forward.