How to load test Magento Open Source before peak season
A load test shows whether your self-hosted Magento Open Source store can serve peak traffic on the exact software it will run during that peak. Run it against the final release and patch level, because a result measured on a different 2.4.x build or PHP version does not describe production. Magento Open Source 2.4.9 and 2.4.8-p5 were both released on May 12, 2026, so a store that plans to stay on 2.4.8 must test 2.4.8-p5 and its matching stack, while a store moving to 2.4.9 must test 2.4.9 itself. Confirm the patch level with Adobe's released versions page before you freeze the build.
The test measures more than page response times. It records how the web nodes, PHP-FPM pool, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ and the full-page cache behave together under a mix of browsing, search, cart and checkout requests. Your partner or internal platform team usually runs it, with the merchandising and operations owners defining the business transactions that matter. Schedule the main runs after the last functional change and before the release freeze, and keep a separate window to re-test any patch Adobe ships in the cycle. Adobe's release schedule describes how patches are issued, so ask your release manager to map those dates against your calendar.
Plan the test environment so its results can be trusted: matching hardware classes, the same Varnish configuration in front of the store, realistic catalog and customer data volumes, and the same cron and indexer schedule you will run in production. Decide in advance which runs are cold cache (after a flush and reindex) and which are warm, because the two answer different questions about launch-day behavior. Record who owns each finding, the acceptance criteria and the rollback path, so the result becomes a sizing decision rather than a single chart.
Which Magento load test traffic mix reflects your store
A load test is only as useful as the traffic it replays. The mix should follow how shoppers, staff and integrations actually use your store, with each request type weighted from your own analytics and server logs. The cards below cover the request types to include and the reasons a generic script misleads.
Category browsing
Category and listing pages are usually the largest share of anonymous storefront traffic, and they depend on the filters, sort orders and pagination your shoppers use. Derive the share from analytics landing pages and from the category URLs in your server logs, not from the menu structure. Include layered navigation requests with filters applied, because they query the search index differently from a plain category page. Confirm with your team which categories carry the most catalog depth, since large categories stress the index more than small ones.
Search queries
On-site search sends queries that bypass some caching and rely on the search engine behind the store. Build the search sample from your site search logs, including misspellings, long phrases and zero-result queries, since those paths behave differently. Keep the search share close to what analytics show, because overweighting search can exhaust the search backend before the web tier is under real pressure. Confirm the search engine version and its node sizing with your platform team before the test.
Product detail pages
Product pages are the most cacheable dynamic requests and the main source of traffic from search and advertising. Sample them across product types, including configurable products with many child SKUs, since configurable pages render more data than simple products. Weight the sample from entrance pages and product views in analytics, and spread requests over a wide set of SKUs so the test does not hit one warm product repeatedly. A short list of popular products will make cache results look better than production.
Add to cart
Add-to-cart requests are non-cacheable because each one changes the shopper's session and quote. They run through PHP and write to the database and session store, so they load the web tier and MySQL differently from page views. Derive the share from the ratio of add-to-cart events to product views in your analytics. Include guest and logged-in shoppers in the proportion you see in production, since logged-in sessions carry extra state and reads.
Checkout
Checkout is the request type most likely to expose a bottleneck. Each step calls shipping, tax and payment logic, writes quote and order data, and usually runs without full-page caching. Replay full guest checkouts through to the payment step, using a payment sandbox or test gateway that matches the production call pattern and latency. Confirm with your payment provider whether test mode adds delay, because a fast sandbox can hide the time real gateway calls take. Checkout share is often small, but its cost per request is high.
Customer account pages
Account pages, order history and saved address views are session-bound and personalized, so they cannot be served from the shared page cache. Include them at the share your analytics show for logged-in traffic, and make sure the test accounts are realistic in size, with real order histories and addresses. Test accounts with empty histories will return quickly and understate load. Confirm which account pages your theme and extensions call on each request.
Admin and API activity
Admin sessions, scheduled exports and integration calls against the REST or GraphQL APIs add load that storefront scripts never generate. Admin grid saves can trigger reindexing and rewrite generation, and ERP or marketplace integrations often call the API in bursts. Derive the share from API access logs and from the job schedule your operations team keeps. Run these streams at the times they occur in production, because they compete with shoppers for the same database and queue resources.
Cold and warm cache runs and when each fits
This table compares a cold cache run, a warm cache run and a mixed run that mirrors a cache flush during a deployment. Read each row against the others, because a single run in one cache state can make a store look faster or slower than it will be at peak. The main takeaway is that peak readiness needs all three states, not one.
| Run type | Cache state during the run | What the run reveals | Main risk of reading it alone | When to run it |
|---|---|---|---|---|
| Cold cache | Varnish full-page cache empty or purged; Redis or Valkey default cache and page cache cleared before start | Worst-case PHP, MySQL and indexer load when every request must be generated, and how long the store takes to recover from empty caches | Overstates steady-state demand and can drive oversized web nodes and database tiers | Before go-live, and after any change to cache configuration or a full flush |
| Warm cache | Varnish holds the pages the traffic mix requests; Redis or Valkey holds default cache, page cache and sessions from a prior pass | Typical steady-state capacity: Varnish hit ratio, PHP-FPM load on cache misses, and database load from uncached queries | Hides the cost of misses, so a store can look ready while a flush at peak would fail | Before peak season, to set baseline capacity and confirm the Varnish hit ratio held under load |
| Mixed run with flush | Warm start, then a cache flush or Varnish purge partway through, mirroring a deployment that clears caches | How fast hit ratio recovers, whether misses queue up on PHP-FPM or MySQL, and whether the store stays within acceptable response times during rewarm | Results depend on when the flush lands and how much traffic is in flight, so a single timing can mislead | Before peak season, once per planned deployment pattern, and before changing cache hosts or sizes |
| Cache state checks | Confirm Varnish is active and the cache hit ratio is recorded for each run; confirm Redis or Valkey versions match the 2.4.9 system requirements | Whether the test actually ran against the cache layer you intend to certify | A run where Varnish is bypassed or misconfigured looks like a cold result and is hard to spot later | At the start of every run, recorded in the test log |
How the load generator, cache, web nodes and background services connect
The test starts at the load generator, which sends a mixed set of storefront and admin requests through Varnish to the nginx and PHP-FPM web nodes. Those nodes read and write MySQL or MariaDB, Redis or Valkey, and OpenSearch, and they queue work for RabbitMQ consumers. The cron host and indexer processes run alongside, so their load lands on the same database and queues. Before the run, confirm which components match production and that no outbound call can reach a live payment or shipping endpoint.
Test traffic and background jobs share the same database, cache and queue tiers.
Why cron and indexer activity changes the test results
A load test that leaves out background work can pass while the live store slows down. Scheduled cron jobs, indexer updates, message queue consumers and cache cleaning all run next to customer traffic in production, and they draw on the same web node CPU, PHP memory and database capacity that shoppers use. Decide before the test starts whether these jobs will run during it. The answer should follow from your real schedule, not from what makes the numbers look better. A reasonable approach is to run one pass without background work to establish the storefront baseline, then a second pass with the production schedule active, so the difference between the two is visible.
Record the timing of every background job during the test so you can line it up with the response time and error curves. Pull the cron schedule from your production crontab, note which jobs start at fixed times, and capture the start and end of each run, including consumers_runner and any scheduled reindex. Keep the indexer mode for each index as it is in production, because Update by Schedule indexes produce a burst of work at each refresh that Update on Save spreads across requests. If a scheduled refresh coincides with the traffic peak in your model, that overlap is the scenario most likely to expose a slowdown, so test it on purpose.
Before you trust any cron or indexer result, confirm the jobs actually ran as expected. Check indexer status and backlog, the cron run history and the relevant logs using the checks in the Magento Open Source operations and troubleshooting guidance, which documents the commands and log locations for these jobs. A job that silently failed or stalled produces a clean-looking result that tells you nothing about peak conditions. Ask your team or partner to confirm, in writing, which background jobs the test will include and how their timing will be captured.
Setup sequence for a Magento load test
This sequence turns a load test from a one-off traffic burst into a repeatable run: a pinned release, a production-like stack, representative data, and cold, warm and cron-active passes that can be compared against each other and against sizing assumptions.
Pin the release and patch level
Record the exact Magento Open Source version, patch level and every component version before any test runs. For a 2.4.9 target, the system requirements list PHP 8.5, MySQL 8.4 or MariaDB 12.3 (recommended) or 11.8, OpenSearch 3, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64. If the live store runs 2.4.8-p5, test against that list instead, which includes Varnish 8. Confirm the combination is one Adobe supports, because unsupported combinations invalidate the results. Done when the version manifest is stored with the test plan.
Build a production-like environment
Stand up a test environment that matches production topology: the same web node count, PHP-FPM settings, database, search, Redis or Valkey, RabbitMQ, Varnish and any load balancer. Run it in production mode with static content deployed, so that compiled code and static files do not skew the first pass. Keep it isolated from live payment, ERP and shipping endpoints. Done when a smoke check confirms every service responds and the topology diagram matches the production one.
Load representative catalog and customer data
Import a catalog and customer base close in size and shape to production, including configurable products, category depth, customer groups and store views. Volume drives indexer runtime and search response, so a small catalog will hide the bottlenecks you are testing for. Ask your team for real counts from the admin and reports, and anonymize any personal data before it enters a non-production system. Done when product, category and customer counts in the test store match the agreed figures and a full reindex completes.
Set the traffic mix and test accounts
Define the share of browse, search, product view, cart, checkout and account requests from production analytics, and script them as user journeys rather than isolated URLs. Create test customers and guest sessions, and configure the load tool to follow cookies and carts. Set payment and shipping to sandbox or test modes and confirm in each provider's dashboard that no test transactions are created on live accounts. Done when a dry run shows the scripted journeys completing and the live payment account shows no activity.
Run the cold pass
Flush the full-page cache, Redis or Valkey caches and any application caches, then run the traffic mix from a known starting state. The cold pass shows how the store behaves when caches are empty, as after a deployment or cache flush. Watch Varnish miss rates, PHP-FPM queue depth, database connections and response times during the run. Done when the run completes, the test window and logs are archived, and the cache state at start is recorded.
Run the warm pass
Repeat the same traffic mix without flushing caches, after the cold pass has populated them. Confirm Varnish is serving hits for cacheable pages before the run starts, using its cache statistics, and check that cart and checkout requests are passing through rather than being cached. Also confirm indexers report valid status and the message queue is draining. Done when the hit rate and response times can be compared directly with the cold pass.
Run the cron-active pass
Repeat the warm pass with scheduled cron jobs, indexer updates and queue consumers running at the times they run in production. Check that cron is executing, indexers move from working to ready without stalling, and consumers are processing messages rather than leaving a backlog. Note any order-related or inventory processes that compete for database resources. Done when the run results show the impact of background work on storefront latency and the queue reports no growing backlog at the end.
Record results against sizing assumptions
Store the response time percentiles, error rates, resource metrics, cache hit rates and queue depths for each pass alongside the version manifest and traffic mix. Compare the measured CPU, PHP memory, database and cache use against the sizing assumptions for the production web and database nodes. Identify which constraint saturated first in each pass. Done when a written report states the version tested, the pass results, the first bottleneck, and the changes to try before a retest.
Reading Magento load test results against server sizing
Read load test results as a check on the sizing assumptions, not as proof that the sizing is right. Adobe's published hardware ratios for Magento Open Source are the starting reference for web node cores, PHP-FPM capacity, database memory and cache size, but the team should confirm those ratios against its own measured numbers before it signs off on a server plan. Ask the vendor or Adobe documentation for the exact sizing guidance that matches the release you run, then write down the assumptions behind each figure (concurrent sessions, cart share, cron load, catalog size) so the test can confirm or contradict them.
Capture the same metrics on every tier during each run. On the web tier, record response time percentiles (p50, p95 and p99 are the usual reads), error rate, CPU and memory per node, and PHP-FPM worker saturation. On the database tier, record CPU, buffer pool memory, active connections and slow queries. On the cache and queue tiers, record Redis or Valkey memory and hit rate, Varnish hit rate for cacheable pages, and the RabbitMQ or MySQL queue backlog. Note whether cron and indexers ran during the window, because their load lands on the same hosts and skews the web numbers if you do not log it.
To find the breaking point, step the virtual user count up in stages and hold each stage long enough for the caches and queues to settle. The breaking point is usually the first stage where p95 response time climbs sharply while CPU on a single tier stays below saturation, which points to a connection, worker or lock limit rather than raw compute. Compare that point with your expected peak load plus margin. If the breaking point falls below peak, change the sizing and rerun, and confirm the fix moves the bottleneck rather than just the symptom.
Test environment choices for staging, pre-production and production-like runs
A shared staging environment is usually the cheapest place to start, because it already exists and the team already knows how to deploy to it. It is best suited to finding functional bottlenecks, testing new modules under concurrency, and checking whether a change causes a obvious regression. It is weak evidence for capacity, because other teams use it for feature testing, its web nodes and database are often smaller than production, and its cache, search and queue services may be shared or configured differently.
- Trust limits: Results from shared staging support relative comparisons, such as before and after a code change, rather than absolute peak capacity claims.
- Data risk: Confirm whether staging holds a copy of production customer data. If it does, the test traffic and any admin actions must stay within your data handling rules.
- Integration risk: Payment, ERP and shipping connectors are often stubbed or pointed at sandboxes, so the load they add in production will not appear here.
- Cost drivers: Shared staging costs mainly come from the infrastructure you already run. Extra cost arises if you scale it up for the test or if other teams are blocked during the run.
- Approvals and rollback: Agree a test window with the teams sharing the environment, snapshot the database before the run, and confirm how to restore the snapshot.
Before you rely on a shared staging result, check the sizing of its web nodes, PHP-FPM, database and cache against the production configuration you documented.
A dedicated pre-production stack is a separate copy of the production topology, built from the same configuration, with the same web node count, database sizing, Redis or Valkey, OpenSearch, RabbitMQ and Varnish layers. It gives the most trustworthy results short of testing production itself, because the server ratios, cache tiers and indexer behavior match what peak traffic will meet. The trade-off is that you pay to run a second full stack, and the team must keep its configuration aligned with production as releases move forward.
- Trust limits: Results are credible for capacity planning when the stack is sized like production and the data volume is close to the live catalog and order history.
- Data risk: Use masked or synthetic customer data. Restrict access to the environment and make sure logs do not capture personal data during high-volume runs.
- Integration risk: Decide whether ERP, payment and shipping calls go to sandboxes, which change latency, or to mocks, which hide it. Record the choice in the test report.
- Cost drivers: The main costs are the compute, memory and storage for a second stack, plus the time to keep its configuration in step with production. These costs recur for as long as the stack exists unless you shut it down between test cycles.
- Approvals and rollback: Sign off the configuration diff against production, the data masking method and the test schedule. Keep the stack's infrastructure as code so it can be rebuilt quickly.
Confirm with your platform team that the stack's configuration diff against production is documented before the first run.
A controlled test window on production uses the live environment, so the results reflect real infrastructure, real data volume, real third-party integrations and real cache state. It is the only option that answers whether peak capacity holds under the actual business load. It also carries the highest risk: synthetic orders, carts and admin actions can reach your payment, ERP and customer systems, and a failed run can affect paying shoppers.
- Trust limits: Results are the most representative, but they only hold for the window tested. Traffic from real shoppers during the run will add to the synthetic load, so the test must be sized with that in mind.
- Data risk: Use test accounts, flag synthetic orders, and confirm that payment connectors run in test mode or that synthetic checkouts are excluded from settlement and fulfillment.
- Integration risk: Confirm with each downstream owner that test orders will not trigger shipments, invoices or stock movements, and agree how they will be identified and reversed.
- Cost drivers: Costs are mostly the capacity headroom you must hold during the window and the staff time for monitoring and on-call coverage. Load generation tools and any third-party testing services add cost, so ask for them in the quote.
- Approvals and rollback: Obtain written approval from the business owner, security and operations leads. Define stop conditions, a rollback plan for configuration and deployments, a verified database backup, and a named person who can halt the test.
Before approving a production window, confirm the stop conditions and the cleanup procedure for synthetic orders in writing.
What to confirm before trusting the load test numbers
A load test only tells you what the store can do if the environment matches production. The items below are the inputs that most often change results, and each one needs confirmation from the vendor, Adobe's documentation or your own environment before you rely on the figures.
Varnish version and VCL
Confirm which Varnish release and which exported VCL your store runs, and whether the production VCL matches the one under test. Adobe documents Varnish as the full-page cache accelerator for self-managed installations, and the 2.4.9 requirements list Varnish only for certain release lines, so check the release you deploy. A test run with a different VCL, a missing purge configuration or a cold cache will show hit rates that production never sees.
Varnish cache guideFront end: Luma, Blank or custom theme
Find out which storefront theme serves pages in production. Luma, Blank and a custom theme differ in how much JavaScript, CSS and server-side rendering each page request triggers, so a test against the wrong theme measures a different storefront. Record the theme name, any child themes and any Hyvä or headless front end, and run the test against the same build that will take peak traffic.
Third-party extensions and integrations
List every extension, payment connector, ERP sync, shipping rate lookup and analytics tag that runs on storefront or admin requests, and confirm which of them call external services during a page view or checkout. Each external call adds latency and can fail under load. Ask each vendor how its extension behaves under concurrent requests and whether it has a documented cache or queue setting.
Database and search engine versions
Confirm the exact MySQL or MariaDB, OpenSearch, Redis or Valkey and RabbitMQ versions in the release you plan to run. Adobe's system requirements for 2.4.9 name the supported combinations and state that only listed combinations are supported, so a test on an unsupported pairing tells you little. Check the current requirements page for your release before you set up the test environment.
System requirementsHardware ratios from current Adobe guidance
Do not size the test environment from older guides or community rules of thumb. Ask Adobe's current documentation for the published hardware ratios that apply to your release and traffic profile, then compare them with the nodes you test against. If the test cluster is smaller or larger than production, scale results with care and state the assumption in the report.
Load tool capacity limits
Confirm that the load generator can produce the request rate and concurrent sessions you plan for without becoming the bottleneck. Check its CPU and memory use on the injector hosts, its handling of cookies, session tokens and form keys, and whether it follows redirects and caches assets the way a browser does. Measure the injector separately so a saturated load tool is not reported as a slow store.
Questions buyers ask before running a Magento load test
What drives the cost of a Magento load test?
The cost follows the amount of work in the written scope: building a test environment that resembles production, modeling traffic, preparing realistic data, running the test cycles, and analyzing results against server sizing. The largest variables are how many storefront and admin journeys are modeled, how large the catalog and customer base are, and how many rounds of tuning and retesting are planned. Ask for a quote that lists each of these as a separate line, and confirm whether the test environment is one you already run or one that must be provisioned. Cost is one-time for the test itself, while the retest after fixes is a separate, optional phase.
How long does a Magento load test engagement take?
Duration depends on store size, the number of traffic scenarios, how much data preparation the catalog needs, and how many tuning cycles follow the first results. A small catalog with a few modeled journeys is quicker to set up than a large multi-website store with integrations that must be simulated. The schedule should be agreed in writing with the scope, and it should work backward from your peak date and change freeze so that tuning and a retest both fit before the window closes.
What does the team need to provide for a load test?
Plan to supply the following before work starts:
- Analytics exports showing traffic by page type, hour and device, plus last year's peak figures
- Catalog data, including product, category and customer counts, and the configurable and bundled product mix
- A sizing inventory of web, database, cache, search and queue servers, with their current specifications
- A change window in which the test can run against a production-like environment, including cron and indexer schedules
Missing analytics or an unclear change window are the most common reasons a test is delayed.
Can our internal team run a Magento load test alone?
Yes, if your team has engineers who can script realistic user journeys, prepare test data, operate the Magento stack and read database, cache and PHP-FPM metrics under load. Many teams find the hardest part is not the load generator but interpreting results, such as separating a cache miss storm from an indexer backlog. Ask whether your engineers have run load tests on Magento before, and whether the work includes a written findings report. A partner is most useful when the internal team lacks that experience or the peak date leaves no room for a second attempt.
What happens during a retest after tuning?
A retest reruns the same traffic scenarios against the same environment after changes are made, so results can be compared directly with the baseline. Typical changes include cache configuration, PHP-FPM process counts, database memory and index settings. The team should confirm the retest covers both a warm cache run and a cold cache run, and that cron, indexers and queue consumers are active as they would be in production. The retest scope and any number of rounds should be written into the original agreement, because it is priced separately from the first test.
How do we model realistic traffic for a Magento load test?
Model traffic from your analytics, not from a generic script. Split the mix into browse, search, add to cart, checkout and admin activity, and set the proportions from the peak hour in your exports. Include logged-in and guest sessions, because they hit different cache paths. Add background load from scheduled cron jobs and indexers if they run during the peak. Confirm the mix with your business owners before the first run, since a test that skews toward browsing will show a different bottleneck than one dominated by checkout.
Does a load test expose security or compliance risks?
A load test can reveal security issues that matter at peak, such as rate limiting gaps on login or checkout endpoints, and session handling under concurrency. Test traffic should never run against live customer data, and any environment holding copies of production data must follow your data handling rules. Confirm with your compliance team how test data is masked and where test logs are stored. DeployOpen can run security testing alongside the load test when that is written into scope.
How DeployOpen scopes, runs and supports Magento load tests
DeployOpen plans and runs load tests for self-hosted Magento Open Source stores inside your own infrastructure. We agree the traffic mix, cache states, background jobs and success criteria in writing before any test runs, then hand over the scripts, configuration and findings so your team can repeat the test before each peak season.
How we scope
- Engagements are fixed-scope, with the test goals, environments and deliverables agreed in writing before work starts.
- The written scope names the traffic mix, cache warm and cold runs, and cron and indexer activity to include in each test.
- We confirm which environment mirrors production, including PHP, MySQL, OpenSearch, Redis or Valkey and Varnish versions.
How we build
- We script realistic browsing, search, cart and checkout journeys using your catalog size and historical order patterns.
- We run baseline tests with cold caches, then warm-cache runs, and record how indexers and consumers behave during each run.
- We compare response times, error rates and server utilization against the sizing targets your team set before testing.
How we hand over
- You receive the test scripts, load profiles, environment configuration and a written report with findings and recommended changes.
- The report separates results by cache state and by background activity, so bottlenecks are traceable to a specific cause.
- We document the steps to repeat each test, so your own team can rerun it after configuration or code changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for stores that test before every peak season.
- A retest can be scheduled after fixes are applied to confirm that the changed settings behave as the report predicted.
- Ask any quote to state what is included in the retainer, how retests are billed, and who owns the scripts afterward.

