Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Peak traffic planning

How to prepare an Exponential site for a sale, a campaign, a newsletter send or a press mention, from the calendar and a measurement of your own pages to caches, warming, a change freeze and a plan for the day itself.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/reliability/peak-traffic-planning.md

On this page

Peak traffic planning

This page is for owners, marketing managers and operators who know a busy day is coming: a seasonal sale, a product launch, a newsletter to all members, a television or press mention. It gives a plan that starts weeks ahead and ends with a review afterwards. Shop owners will find the store-specific details on Store performance at peak times.

Contents

  1. Know your peaks
  2. Measure before you guess
  3. What changes under load
  4. Weeks before
  5. Days before
  6. On the day
  7. After the peak
  8. Checklist

Know your peaks

Many peaks are caused by the business itself, which means they can be planned:

PeakWho knows it first
A sale or a discount campaignSales and marketing
A newsletter or mailing to all members (Newsletters)Whoever sends it; sending can be scheduled at a quiet hour
A product launch or an event registration openingThe project lead
A press or broadcast mentionCommunications; often with little notice
Seasonal business (holidays, the start of a school year, tax deadlines)Everyone, from last year

Put these dates in one shared calendar that the operator reads. A peak nobody told the operator about is the most common cause of a bad day.

Measure before you guess

No general figure tells you what your site can carry; your pages, hardware and database decide it. Exponential ships a measuring tool, exp:benchmark (Benchmarking):

  • php bin/php/console exp:benchmark --allow-root-user requests the front page, menu pages, the search page and the administration login page and prints median, p90 and p99 times.
  • --cold measures rendered pages instead of cache hits, which is closer to what signed-in customers get.
  • --save=run.json keeps a run and --baseline=run.json compares with it, exiting 1 on a regression.

The guide warns: "One run on a busy machine proves little: compare runs made back to back, with the same counts, the same pages and the same PHP set-up." Measure on a copy of the site or at a quiet hour, and record the result as your baseline.

What changes under load

VisitorsWhat serves themWhat to plan
Anonymous visitors on public pagesCaches: the response cache, the static cache, the view cache (Caching for availability)Make sure the caches are on and warm
Signed-in customers, baskets, checkout, formsRendered pages; the response cache never serves signed-in visitorsEnough PHP workers and database capacity
SearchThe search engine or the built-in searchTest search under load; it is often the slowest page
Editors publishing during the peakPublish work, cache clearsAvoid large publishing runs during the peak

On SQLite, writes queue for a single lock; "For many editors publishing at once use MySQL or PostgreSQL" (Operating a site, know your database driver). A busy shop checkout also writes; see Database choice for reliability.

Weeks before

  • To do: The peak is in the shared calendar, with an expected time and duration.
  • To do: A baseline measurement exists, and a measurement of the pages the campaign links to.
  • To do: Setup > System information shows no failed check, OPcache is on, and memory limits are not low (System information, health checks).
  • To do: The landing pages are public pages that can be cached; personal content is kept off them.
  • To do: If the site is on Velocity, the worker count and response cache are reviewed with your operator (Velocity for businesses).
  • To do: If one machine is not enough, the hosting partner is asked early: adding servers takes time (Clustering and high availability).
  • To do: Any upgrade is done well before, not in the last week (Upgrades without surprises).

Days before

  • To do: Change freeze: no deploys, upgrades or settings changes from an agreed date until after the peak.
  • To do: A fresh backup has been taken and the last restore drill was successful (Restore drills).
  • To do: Campaign content is published and checked through the preview (Preview before you publish).
  • To do: Heavy scheduled work (imports, index rebuilds, large content jobs) is moved away from the peak hours (Cronjobs and background jobs).
  • To do: The incident plan is printed and the people on duty are named (Incident response for small teams).

On the day

  1. Warm the caches before the peak starts, so the first visitors do not pay for the render (Preloading caches):

    php bin/php/preload.php --apply --siteaccess=site --allow-root-user

    Use the name of your own public siteaccess.

  2. Watch: the external monitor, the error digest, and on Velocity the dashboard at /Q/dashboard, which shows live requests, workers and status codes (Velocity control panel).

  3. Do not clear all caches during the peak unless something is wrong; every full clear makes the next visitors wait for renders.

  4. Have a fallback message ready: if the site cannot keep up, a short maintenance window with a clear message and an expected end is better than errors (Maintenance mode and planned work).

After the peak

  • Compare what happened with the plan: response times from the monitor, errors in the digest, any customer complaints.
  • Note the busiest hour and how the site behaved; this is next year's planning input.
  • Lift the change freeze and catch up on postponed work.
  • If the site struggled, discuss with your partner whether caching, workers, the database or more servers would help, and measure again after each change.

Checklist

  • To do: Peak dates are known to the operator weeks ahead.
  • To do: A measured baseline exists; the campaign pages were measured.
  • To do: Caches are on and warmed before the peak.
  • To do: A change freeze and a fresh backup cover the peak.
  • To do: Someone watches during the peak, and knows the incident plan.
  • To do: A short review is written afterwards.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x