Sizing servers for Magento Open Source: what the number of cores and gigabytes depends on
A team about to host a Magento Open Source store in its own infrastructure needs server counts before procurement, and the number of cores and gigabytes depends on the inputs more than on a single rule of thumb. Start from four things: expected traffic at peak, catalog size and how often it changes, the load from cron and indexers, and the component versions you intend to run. For a current build, the reference point is the Magento Open Source 2.4.9 system requirements, which 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. Adobe supports only the listed combinations, so the sizing exercise should start from those versions rather than from whatever packages your distribution ships.
Adobe publishes system requirements and supported combinations, but the hardware ratios that translate traffic into cores, PHP-FPM memory, database memory and cache size are a separate question. Before you buy, check the current Adobe documentation for those ratios and confirm them against the release you plan to run, because they change between lines. Ask your hosting or hardware vendor to show how their quote maps to those published figures. Also confirm whether your chosen version is still in standard support on the date you expect to go live, using the Adobe Commerce lifecycle policy, since a short support window affects how long the hardware plan will last.
Plan for cron and indexer load as a separate budget, not as leftover capacity. Indexers, message queue consumers and scheduled jobs run on the same nodes as the storefront unless you split them out, and a long reindex can compete with peak checkout traffic. Decide early whether background work runs on the web nodes or on dedicated workers, and size each role on its own. Your load test results, once you have them, are the best evidence for whether the estimate holds. Record the assumptions behind each number so procurement can revisit them when traffic forecasts change.
Which inputs turn traffic into a server plan
A server plan is only as good as the numbers behind it. The inputs below turn a traffic forecast into web node cores, PHP-FPM memory, database memory and cache size, and each one has a different source. Collect them from analytics, the existing store and the job schedule before choosing any hardware.
Peak concurrent sessions
Measure the highest number of storefront visitors and logged-in admin users active at the same moment, not daily visits. Take the figure from your analytics or load balancer logs for the busiest hour of a normal month and for your last peak event. Separate anonymous browsing from checkout and account sessions, because logged-in and checkout requests bypass the page cache and drive the most PHP and database work.
Catalog and order volume
Record the number of SKUs, configurable child products, categories, customer accounts and orders per day, along with average and peak order line counts. Catalog size drives indexer runtime and memory use, while order volume drives database writes and queue traffic. Ask your team for these counts from the admin and the database, and note any planned growth over the period you are sizing for.
Share of traffic served from cache
Estimate what fraction of page requests a full-page cache answers without reaching PHP. Varnish is the documented accelerator for self-managed installations, so the cache hit rate in front of it sets the real load on web nodes. Measure it on a warm store, then model a cold start after a deploy or purge, because a sizing plan built on a warm cache can fail the first hour after release.
Cron and queue consumer load
List every cron job and message queue consumer, how often each runs and how long a typical run takes at your data volume. Consumers that process orders, imports, emails or bulk operations compete with web requests for CPU and database connections. Note the consumer process counts you plan to run, since each extra worker adds memory on the same host or the database it connects to.
Indexer schedules and rebuild windows
Document which indexers run on save and which run by schedule, and how long a full reindex takes on a copy of production data. Scheduled full reindexes can coincide with peak traffic if no window is set, and they load the database hard. Confirm the schedule with your operations team and sizing will reflect the worst hour, not the average hour of the day.
How web nodes, PHP-FPM, MySQL and cache share the load
A storefront request enters through nginx, which hands dynamic work to PHP-FPM workers on the web node. Each worker then reads and writes MySQL (or MariaDB) for catalog, cart and order data, reads sessions and cached blocks from Redis or Valkey, and queries OpenSearch for catalog search. When Varnish sits in front as the full-page cache in a self-managed installation, cacheable page requests never reach PHP-FPM at all, so the size of the web tier depends on how many requests miss that cache. Confirm the cache hit rate with your team before sizing PHP-FPM, because a cold cache after a deployment or purge can multiply the load on every layer behind it.
Background work uses the same hardware. Cron jobs, message queue consumers and indexer runs are PHP processes and MySQL sessions that compete with storefront workers for CPU, memory and database connections. A full reindex or a large price update can run while customers are checking out, and a consumer that processes a backlog can hold memory for long periods. Ask your team which cron schedules, consumer processes and indexer modes will run during business hours, then size for the overlap of those jobs with your expected peak traffic, not for the average hour. The Adobe guides linked from the pillar set the component versions, and the sizing ratios should be read against the versions you plan to run.
Treat the sizing as one budget shared across the request path. Add the PHP-FPM worker count, the memory each worker needs, the MySQL buffer and connection limits, the Redis or Valkey memory for sessions and cache, and the OpenSearch heap, then check that the total fits on each host or that each role has its own host. Where background jobs and storefront traffic share a node, plan a limit or a separate node for them so a long reindex does not starve checkout. A load test that mixes realistic traffic with cron and indexer activity is the only reliable way to confirm the budget holds.
Where each component sits in the sizing model
The request starts at the load balancer, which passes traffic to Varnish for full-page cache hits. Misses continue to the nginx and PHP-FPM web nodes, which can be added horizontally. Those nodes read and write MySQL, Redis or Valkey, and OpenSearch, and publish asynchronous work to RabbitMQ. Cron and consumer workers drain that queue and run indexers, so check that worker capacity and database memory keep pace with the web tier before adding nodes.
Web nodes scale out, while the database, cache, search and queue tiers are sized as units.
Sizing options and when each fits
This table compares four ways to lay out a self-hosted Magento Open Source store: a single host, separated web and database tiers, a multi-node web tier, and a dedicated worker node. Read each row against your traffic, your staff capacity and how much change you expect over the store's life. The main takeaway is that every step up in topology adds staff effort to run, and the cost of that effort is easier to absorb before launch than after.
| Layout | When it fits | Staff time to run | What it makes harder later |
|---|---|---|---|
| Single host | Small catalog, modest traffic, a team with limited ops capacity, and a pilot or early launch phase | Lowest: one server to patch, back up and monitor, but every incident touches the whole stack | Scaling requires a rebuild; PHP, MySQL, search, Redis and cron compete for the same memory and cores |
| Separated web and database tiers | Traffic has grown past one host, or the team wants database backups and tuning isolated from PHP-FPM | Moderate: two sets of OS patches, network rules between tiers and separate monitoring | Database sizing and failover choices become a distinct project; search and cache services still need placement decisions |
| Multi-node web tier behind a load balancer | Steady or peak traffic requires more PHP capacity, and session and cache services are shared across nodes | High: deployment must reach every node in step, shared storage and session handling need design, and load balancer health checks need tuning | Release pipelines, static content and config drift across nodes; a load test is needed to confirm node counts |
| Dedicated worker node for cron and consumers | Message queue consumers or indexers slow the web tier during business hours, or long-running jobs need their own memory budget | Moderate to high: separate service units, process supervision and alerting for stalled consumers | Consumers must point at the same queue and cache backends; mistakes show up as silent backlogs rather than errors |
| Confirm before choosing | Ask your partner or Adobe documentation for the hardware ratios that apply to your Magento version and extensions | Estimate the on-call load for each layout with your own team, including out-of-hours patching | Check that your hosting platform supports the layout you pick and the scaling you expect in the next release cycle |
Tuning each tier: cores, PHP memory, database memory and cache
The web tier runs PHP-FPM workers that render storefront pages, serve the admin and handle REST and GraphQL calls, so its sizing starts from the PHP and nginx versions the release supports. Adobe's system requirements list the supported combinations for each release, and Adobe supports only those combinations, so confirm them before you size anything. Adobe's hardware guidance is the starting point for cores and memory per node, but the worker count that fits your catalog and traffic comes from your own test.
- Core count: Cores limit how many requests a node can process at the same time. Size them from peak concurrent requests observed in the load test, using daily visits only as an input.
- PHP-FPM workers: Set
pm.max_childrenso the combined resident memory of all workers fits in RAM with room left for the operating system and nginx. Measure worker memory under both cold and warm cache. - Memory limit: Set
memory_limitfor PHP at or above the minimum Adobe documents for your release, then confirm peak use during heavy admin saves and bulk actions. - Colocated jobs: Cron, message queue consumers and indexers add CPU and memory load. If they share a host with web traffic, the load test must run them at the same time.
Check that the test records CPU saturation, PHP-FPM queue wait time and worker memory at the peak traffic mix before you fix the node size.
MySQL or MariaDB holds the catalog, orders, customers and index tables, and its performance depends on whether the working set fits in memory and whether the connection limit covers every process that talks to it. The supported versions for each release are in Adobe's system requirements. For the 2.4.9 line, Adobe lists MySQL 8.4 or MariaDB 12.3 as recommended, with MariaDB 11.8 also listed, so the version choice comes before any memory setting. Confirm the current memory and connection guidance in Adobe's installation and configuration documentation for your release.
- Buffer pool: Size
innodb_buffer_pool_sizeto hold the hot part of the catalog and index tables. Measure the buffer pool hit ratio and disk reads during the test, and watch how reindexing changes them. - Connection limit: Count every PHP-FPM worker on every web node, plus cron, consumers and admin sessions.
max_connectionsmust cover that total with headroom, or requests will queue or fail. - Slow queries: Enable the slow query log during the test. Heavy category filters and admin grids often show up here before they show up in page timings.
- Storage: Reindexing and order writes depend on disk throughput. Record write latency and IOPS during peak and during full reindex runs.
Before you lock the database size, confirm that the test captured one full reindex and one peak storefront window, because each stresses different tables.
The in-memory layer holds the default cache, the page cache backend and sessions. Adobe's 2.4.9 requirements list Redis or Valkey 9, and the 2.4.8-p5 requirements list Redis or Valkey 8.1, so the version must match the release you deploy. Adobe also documents Varnish as the full-page cache for self-managed installations, and its 2.4.8-p5 requirements list Varnish 8. Use the configuration guidance for each layer to set memory and eviction, and use your own test to set the actual sizes.
- Separate instances: Sessions, default cache and page cache have different eviction needs. Keep them on separate instances so one workload cannot evict another's data.
- Eviction policy: Sessions must not be evicted under memory pressure. Set the eviction policy and
maxmemoryfor the cache instance so that session data is protected, and confirm the policy in Adobe's Redis or Valkey configuration notes. - Memory headroom: Leave room for persistence and lazy freeing overhead. Measure used memory at peak and after a full cache flush.
- Varnish storage: Size the Varnish cache by how many full pages you expect to hold. Measure object count, storage use and the hit ratio across cold and warm runs.
After the test, confirm that evictions on the session instance stayed at zero and that cache hit ratios met your target.
Catalog search runs on OpenSearch, and background work such as asynchronous operations and some integrations runs on message queues. The 2.4.9 requirements list OpenSearch 3 and RabbitMQ 4.3, and Adobe documents MySQL-backed queues as an alternative to RabbitMQ for smaller setups. Search memory and queue capacity depend on catalog size, product attributes and how many consumers run in parallel, so Adobe's requirements set the supported versions while your catalog and workload set the size.
- Search heap and index size: OpenSearch memory depends on the JVM heap and on index size, which grows with products, attributes and store views. Follow the heap guidance in Adobe's and OpenSearch's documentation, then measure query latency at peak.
- Search during reindex: Record search latency while indexers run, because index rebuilds and queries compete for the same resources.
- Queue depth: Track queue length and consumer throughput during the test. A queue that keeps growing means consumer count or node size is too low.
- Consumer processes: Each consumer process uses memory and a database connection, so add them to the connection count on the database tier.
- Broker resources: RabbitMQ needs memory and disk headroom for message backlogs. Set alarms before the broker reaches its memory threshold.
Before sign-off, confirm that the load test ran search and queue load together with the storefront mix, because each tier can look healthy alone and fail under combined load.
Sizing sequence from traffic forecast to validated build
This sequence turns a traffic forecast into a tested server layout for Magento Open Source, with a check at each step so the sizing is confirmed before the store goes live. It starts from the component versions Adobe supports and ends with a load test that runs cron and indexers alongside shoppers.
Confirm the release line and component versions
Choose the Magento Open Source release line first, then check Adobe's system requirements for that exact release. Record the supported PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ, Composer and nginx versions, and confirm that your combination is one Adobe lists, since Adobe supports only listed combinations. The output is a signed-off version matrix. Check it against the lifecycle policy so the end of regular support date for the chosen line falls after your planned launch and maintenance window.
Estimate peak traffic and cron load
Work from your sales history or launch plan to estimate peak concurrent sessions, checkout rate, admin users and API calls from integrations. Separately, list every scheduled and queued job the store will run, including indexers, consumers and integration syncs, and estimate how long each runs at full catalog size. Ask your merchandising and ERP teams for these numbers in writing. The output is a load profile with a peak figure and a background job schedule, and you know it is done when both teams have reviewed and signed off on the assumptions.
Pick the topology
Decide how many web nodes, database servers, search nodes, cache instances and queue workers the profile needs, and whether each runs on its own host or shares one. Decide where the full-page cache sits, since Adobe documents Varnish for self-managed installations. Keep cron and queue workers separate from web nodes if the background load would compete with shoppers. The output is a diagram with a named host for each role and the network path between them, reviewed by the security team for segmentation.
Apply Adobe's documented hardware guidance
Use Adobe's published hardware guidance for the release line to convert the load profile into core counts and memory for each role. Size web nodes by expected concurrent PHP workers, not total visitors, and size the database and cache for the working set of the catalog and sessions. Record the ratio you used and the source page, so an auditor or a future engineer can trace each number. The check is a sizing sheet where every host has a stated basis and a headroom margin you agreed with the business.
Set PHP-FPM and MySQL parameters
Translate the per-node memory budget into PHP-FPM pool settings, including process manager mode, maximum children and the memory limit per worker, and set MySQL buffer pool size, connection limits and temporary table settings to fit the host. Keep the values in version-controlled configuration. Confirm that the sum of PHP-FPM worker memory and the database buffer pool leaves room for the operating system and cache services. The check is a pool status page showing no requests queued during a warm-up run, and a MySQL buffer pool hit rate that holds steady under light test traffic.
Deploy the sized build in staging
Build the same topology in a staging environment that matches production hardware, network paths and versions, and load the production-sized catalog or a representative copy. Run the deployment through your normal pipeline so the configuration you tested is the one you ship. The check is that every service starts cleanly, health checks pass on each node, and the store renders category and product pages on a cold cache without errors in the Magento logs.
Run a load test with cron and indexers active
Run a load test that mixes browsing, search, cart and checkout traffic at the forecast peak, while cron, indexers and queue consumers run on their real schedule. Include a cold cache run and a warm cache run, since they stress the stack differently. Use the same staging environment and capture PHP-FPM pool status, MySQL buffer pool hit rate, queue backlog and response times at each stage. The check is that the peak run completes without queued requests, error spikes or indexer backlog that keeps growing.
Adjust and retest before launch
Compare the load test results with the sizing sheet and change the values that caused the bottleneck, such as worker counts, memory limits, buffer pool size or the number of consumer processes. Rerun the test with the changed settings and record each version of the configuration. Repeat until the forecast peak passes with the headroom you agreed, then freeze the final sizing and document it. The output is a signed-off sizing record with test evidence attached, which is the basis for production capacity and for future load tests.
Security and operational considerations for the sized environment
A correctly sized Magento Open Source environment still fails if the admin tier is reachable from the public internet, the database is exposed, or nobody watches capacity until the store slows. The cards below cover the decisions that sit alongside the CPU, PHP memory and database numbers and that must be settled before the environment goes live.
Separate admin and storefront tiers
Plan the admin and storefront as distinct entry points on the web tier, with the admin reachable only from approved networks or through a VPN or identity-aware proxy. Storefront traffic is far larger and spikier than admin traffic, so the two should be sized and scaled separately. Ask your team which hostnames, ports and IP ranges reach the admin, and confirm that the admin path is not shared with public storefront load balancing rules.
System requirementsKeep database and cache ports private
MySQL or MariaDB, Redis or Valkey, OpenSearch and RabbitMQ should listen only on the private network between Magento nodes and their services. Publicly reachable database or cache ports are one of the most common reasons a store is compromised, and they also add latency that distorts sizing tests. Confirm security group or firewall rules for each service port and verify them from outside the private network with a scan.
Encrypt backups and restrict restore access
Database dumps, env.php contents and media backups all carry data that an attacker can use, so backups need encryption at rest and in transit, with keys held apart from the backup store. Restore tests also determine whether your sizing estimates hold on the replacement hardware. Ask who can read backup buckets, how keys are rotated, and how long a full restore takes on the sized database node.
- Adobe upgrade guidance
- Every patch cycle
Patch on the supported release line
Adobe's upgrade guide recommends upgrading every patch cycle to stay secure and PCI compliant, and the release schedule says security patches ship at least annually for supported lines. Running an unsupported 2.4.x release means sizing decisions are made against a platform that no longer receives fixes. Confirm the current end of regular support date for your release, the PHP and MySQL versions it requires, and who schedules the maintenance window that a patch needs.
- 2.4.8 regular support ends
- May 31, 2028
Alert before capacity saturates
Set alerts on CPU load per web core, PHP-FPM active workers and queue depth, MySQL connection use and buffer pool hit rate, and Redis memory use, with thresholds below the saturation point you calculated. Cron and indexer runs can push load high for long periods, so alert on sustained conditions rather than single spikes. Ask whether your monitoring stack can read PHP-FPM status and MySQL performance counters, and confirm who receives the page at night.
Size edge layers for CSP and payment pages
Adobe's developer documentation states that Content Security Policy headers are supported from 2.3.5, and from 2.4.7 CSP runs in restrict mode by default on storefront and admin payment pages. Reverse proxies, Varnish and any CDN in front of the store must pass these headers through unchanged, and a rewrite that drops or alters them can break payment forms. Include header handling in your load test and confirm that the edge layer still caches pages correctly when CSP headers are present.
Content security policiesQuestions buyers ask before sizing a Magento Open Source store
What drives the cost of sizing a Magento Open Source store?
The cost follows the amount of work in the scope, mostly the number of environments to size, how much production data history is available, and how many load test runs are needed to read the results. A partner is paid for analysis, the test plan and the written sizing recommendation, while your team pays for the staff time that supplies data and reviews findings. Ask for a quote that separates the one-time sizing study from any later retest or re-sizing after a change. Costs rise when the catalog is large, when traffic is spiky, or when integrations such as ERP and payment services add load that must be modeled.
How long does sizing and load testing a Magento Open Source store take?
Duration depends on how much baseline data already exists, how many test scenarios are planned, and how long each cache warm and cold run takes. Teams with clean traffic logs and a stable staging environment usually move faster than teams that must first build a test environment that matches production. Scheduling matters too: the test must include realistic cron and indexer activity, and any peak season deadline limits the window for changes. Ask the provider for a written plan with the number of test rounds and the dependencies on your environment, and confirm the timeline in the fixed scope before work starts.
What does our team need to provide for a sizing study?
Prepare three groups of inputs before the work begins:
- Traffic history: page views, peak hours, promotional spikes and the share of anonymous versus logged-in sessions.
- Catalog and data: product, category and customer counts, configurable and bundle product sizes, and the number of store views and websites.
- Operations: the cron schedule, indexer modes, message queue consumers and any scheduled imports or ERP syncs that run alongside storefront traffic.
Also provide the current hosting layout, the target PHP, MySQL, OpenSearch, Redis or Valkey and RabbitMQ versions, and the access needed to a staging environment that mirrors production. Missing cron or import data is the most common reason sizing results are later revised.
Can our internal team size a Magento Open Source store alone?
Yes, if the team has engineers who can read Magento logs, run a repeatable load test and interpret CPU, PHP-FPM, MySQL and cache metrics against the traffic model. The work is manageable for a team that already runs the store in production, but it requires someone to own the test plan, the cache warm and cold runs, and the link between cron activity and the results. Teams without that experience, or those preparing for a peak season with little room for error, often bring in an outside partner for the study and keep the operating knowledge in-house. Whichever path you take, the written sizing decision should name the assumptions and the evidence behind each server count.
How does sizing change after a Magento Open Source release upgrade?
A release upgrade can change the PHP version, database engine, search and cache services and the code paths that load on each request, so previous sizing numbers may no longer apply. Adobe's upgrade guide recommends upgrading every patch cycle and names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort, which also affect how much CPU and memory the store needs. Confirm the supported stack for your target release in Adobe's system requirements before you size, and repeat a load test on staging after each minor or major move. Patch-level upgrades usually need a smaller check than a change of release line.
Which PHP and database versions should we size against?
Size against the versions that Adobe lists as supported for your release, because Adobe supports only the listed combinations. For Magento Open Source 2.4.9, Adobe's system requirements list PHP 8.5 and MySQL 8.4, with MariaDB 12.3 recommended or 11.8 as alternatives, along with OpenSearch 3, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64. Adobe's 2.4.8-p5 requirements list different PHP and MariaDB options, so a store on that line needs its own sizing baseline. Confirm the exact combination in the requirements page before you choose instance types.
Does the support lifecycle affect how much capacity to plan for?
Indirectly. Adobe's lifecycle policy gives each 2.4.x release three years of standard support from general availability, with end of regular support on May 31, 2028 for 2.4.8 and May 31, 2029 for 2.4.9. A store planned to run on a line that is near end of support will likely need an upgrade during its planning horizon, which changes the runtime stack and therefore the sizing. Include the expected upgrade date in your sizing assumptions so the capacity plan covers the post-upgrade stack as well as the current one.
How DeployOpen scopes and validates server sizing
DeployOpen starts sizing work with a written scope that fixes the inputs everything else depends on: the traffic model (page types, peak concurrency, the share of anonymous and logged-in sessions), the expected cron and queue load, the catalog size that drives indexer work, and the topology the store will run on. The scope also names the Magento Open Source version and the PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey, RabbitMQ and nginx combinations to be used, because Adobe's system requirements only support the listed combinations and the version chosen sets the baseline. Before any hardware is ordered, the reader should confirm which of these inputs the business can actually provide, since guessed traffic figures are the most common reason a sizing estimate misses.
Once the scope is agreed, DeployOpen implements the sized environment inside the client's own cloud accounts, data centers or private networks, so the web nodes, PHP-FPM pools, database, cache and search services are the ones the client's security and operations teams will run. The build includes the cache layers and worker processes that change memory and CPU demand, such as Varnish where the self-managed architecture uses it, and the consumers that process asynchronous work. Load testing then runs against that environment with a test plan agreed in advance, covering cache warm and cold runs and cron and indexer activity during the test. The outcome is a written report that records the measured results, the tuning changes made to PHP-FPM, MySQL and cache settings, and the remaining headroom, so the client can check the decisions rather than rely on them.

