Odoo server sizing starts with how many people work at once
Odoo server sizing depends on how many requests run at the same time, how many worker processes can serve them, how much RAM each worker needs and how much CPU is available, not on total headcount alone. A company with a large staff may only have a fraction of users active in any given minute, while a smaller team that runs batch imports or heavy reports can exhaust a server quickly. Start the specification by estimating peak concurrent users, then translate that figure into workers. This page covers the settings in odoo.conf, the worker roles (HTTP, longpolling and cron), the sizing steps and the point at which PostgreSQL should move to its own machine. Treat every figure here as a starting point, and check it against the Odoo version you plan to run, because worker behavior and defaults change between releases.
Before you buy or provision anything, ask your implementation team or Odoo contact to confirm three things for your version: the current worker recommendations in the official documentation, the memory limits that apply to heavy and light requests, and whether your planned modules (for example, manufacturing reports or large accounting closings) add load beyond the standard profile. Record the peak concurrent user count from your rollout plan, the number of scheduled actions and the expected volume of imports. These inputs decide the worker count and RAM per worker, which drive the rest of the specification. Your team or partner should be able to show how each number on the final server sheet traces back to one of these inputs.
Which odoo.conf settings control workers, memory and cron
This table compares the odoo.conf options that set worker count, cron capacity, memory and CPU limits, and database connections. Read each row for what the setting controls, when to change it, and what it costs you if it is set too high or too low. Setting workers above zero enables the multi-processing server, which production installs need.
| Setting | What it controls | When to change it and trade-off |
|---|---|---|
| workers | Number of HTTP worker processes. Above zero enables the multi-processing server, and zero keeps the threaded development server. | Raise it as concurrent users grow. Each worker holds RAM and a database connection, so more workers help throughput only while the server has memory and CPU to spare. |
| max_cron_threads | Number of worker threads that run scheduled actions (cron jobs). | Increase it when scheduled jobs queue up behind each other. Each cron thread uses a database connection and memory, so raising it can starve interactive users. |
| limit_memory_soft | Per-worker memory level above which the worker is recycled after its current request finishes. | Set it from measured worker memory under real load. A low value causes frequent worker restarts, and a high value lets memory grow across the pool. |
| limit_memory_hard | Per-worker memory ceiling at which the worker is killed immediately. | Keep it above the soft limit. A very high value risks memory exhaustion on the host, and a very low value can kill workers during heavy reports or imports. |
| limit_time_cpu | Maximum CPU seconds a single request may use before the worker is stopped. | Raise it for legitimate long calculations such as large reports, but know that a high value lets one request hold a worker for longer. |
| limit_time_real | Maximum wall-clock seconds a single request may take, including waiting on the database. | Raise it only when slow but valid requests are cut off. A high value hides slow queries and ties up workers while users wait. |
| db_maxconn | Maximum PostgreSQL connections the Odoo process opens per database pool. | Keep it aligned with workers plus cron threads, and confirm the PostgreSQL max_connections value on the database server. Too low causes request queueing, and too high can exhaust the database. |
How HTTP, longpolling and cron workers share the load
Odoo spreads work across three kinds of process and one shared database. HTTP workers answer requests, a longpolling or websocket process keeps live connections open, and cron workers run scheduled actions. All three draw on PostgreSQL, so sizing one part without the others usually just moves the bottleneck.
HTTP workers serving web and RPC requests
HTTP workers handle every page load, form save, report request and RPC call from users and integrations. Their load grows with the number of concurrently active users and with heavy requests such as large list views, reports and imports, which hold a worker for longer. When too few are configured, requests queue behind each other, and users see slow screens or timeouts that look like a network fault. Check the worker count and request limits in the configuration file for your Odoo version, then test with your heaviest screens.
Longpolling worker for live updates
The longpolling or websocket process keeps live-update connections open for features such as notifications and chat, so each signed-in browser holds one connection for the whole session. Its load follows the number of open browser sessions more than the number of requests. If it is undersized or the reverse proxy does not forward its traffic, notifications arrive late or stop altogether. Confirm in the documentation for your version how this process is enabled and which port the proxy must forward.
Cron workers running scheduled actions
Cron workers run scheduled actions such as automated emails, reminders, replenishment rules and queued imports. They use the same database and memory as the other processes, so a long job competes with interactive users for CPU and connections. A large scheduled job that runs during working hours can starve interactive users. Plan cron capacity deliberately, move heavy jobs outside peak hours, and review the scheduled actions list before go-live.
PostgreSQL connections every worker consumes
Each worker opens connections to PostgreSQL, so the total number of processes sets the ceiling on concurrent database connections. HTTP, longpolling and cron processes all draw from the same server, which also needs memory for its own caches and sorts. Undersized database capacity shows up as connection errors, lock waits and slow queries for every user at once. Compare the server's connection limit with your total worker count, and watch for the point where a separate database server makes sense.
How a user request reaches a worker and the database
The diagram starts at the browser, which sends traffic to a reverse proxy on the public side of the trust boundary. The proxy hands regular HTTP requests to the HTTP worker pool and live connections to the longpolling process, while cron workers run scheduled jobs on their own path. Every worker opens connections to PostgreSQL, so the database connection limit is the hand-off to check first. When you size the server, confirm that the number of workers multiplied by the connections each one opens stays within what the database server accepts.
Request path from browser to workers and PostgreSQL, with the trust boundary at the proxy.
From user count to worker count and RAM per worker
Worker count follows concurrency, not headcount. An Odoo server with 200 licensed users may only have a few dozen requests in flight at the busiest minute, and that number is what the multi-processing server has to absorb. The usual planning starting point is roughly six concurrent users per worker, a rule of thumb that gives you a first number to test, not a guarantee. Treat it as a hypothesis. Your own workload, customizations and integrations can move it a long way in either direction, so the figure has to be checked against your environment before you buy hardware. Set the workers key in odoo.conf from that estimate, then adjust after load testing.
RAM is planned per worker, and the requests that drive it are not equal. A page load in a list view is light. Printing a batch of PDF reports, running a large import or recomputing inventory valuation can hold much more memory for the length of the request. Size for the heavy case you expect to run concurrently, not the average. Odoo's limit_memory_soft and limit_memory_hard settings cap how much memory a worker may use: a soft limit lets the worker finish its current request and recycle, while the hard limit stops a runaway process so it cannot take the whole host down. Confirm the exact behavior of these keys for your release in the source installation documentation.
CPU sizing is about avoiding starvation. Each worker needs a share of a core while it runs Python, and cron workers and PostgreSQL compete for the same cores. Check that the total worker count, plus the cron workers you configure, plus the database load, does not leave the host with fewer usable cores than it needs. Before buying hardware, measure real peak concurrency: pull request counts per minute from your reverse proxy or Odoo logs over several business cycles, include month-end and the heaviest report run, and compare that with a load test on a staging copy. Ask your hosting or infrastructure team to confirm memory and CPU headroom at that peak. Those measurements, not a headcount ratio, are what should justify the specification.
Setting worker count, memory limits and cron on a production server
This sequence turns measured user load into a tested odoo.conf with worker, memory and cron settings, so the server carries its expected load without swapping or exhausting database connections.
Measure peak concurrent users and heavy activity
The operator of the current or pilot Odoo instance records how many users are signed in at the busiest hour, and which periods bring heavy work: month-end reports, bulk imports, large exports and scheduled actions. Ask the business owners for these periods, then confirm the numbers from web and application logs, not from headcount alone. The step is done when you have a peak concurrent-user figure and a short list of heavy jobs with their expected timing.
Calculate a starting worker count
Apply Odoo's worker rule of thumb to the measured peak: roughly one worker per CPU core for the web process, with about six concurrent users served per worker. Add a cron worker allowance and keep some CPU headroom for PostgreSQL on the same machine if the database is not split out. Confirm the exact formula and any current guidance in Odoo's documentation for your version before you commit. The output is a written starting number for workers and cron threads, labeled as a starting point to be tested.
Set memory per worker from observed use
Start one Odoo process under a representative load, then run the heaviest report or import you listed in step one. Record resident memory per worker during the run and the idle baseline after it finishes. Use the larger heavy-request figure to size RAM, since a few heavy requests drive the memory ceiling more than average traffic does. The check is a table of idle and peak memory per worker that you can set against total server RAM.
Write workers, memory limits and cron threads
Edit the odoo.conf file on the server, setting the worker count, the per-worker soft and hard memory limits, and the cron thread count to the values from the previous steps. Keep the limits consistent with the RAM you measured, leaving room for the operating system, PostgreSQL and any reverse proxy. Keep a copy of the previous file so you can roll back. The step is done when the file is saved with the new values and the changes are listed in your change record.
Restart the service and confirm the workers
Restart the Odoo systemd service so the new configuration loads. Then read the startup log and confirm that the expected number of HTTP workers and cron workers started, and that no configuration error appears. The Odoo process list should show the same count. The check is a log extract showing the worker numbers matching your configuration.
Load test and watch memory, CPU and swap
Run a controlled load test that reproduces the peak concurrent users and the heavy jobs, using a staging copy of the database rather than production. During the run, watch CPU load, memory use, swap activity and the number of PostgreSQL connections against the limit you set. A worker that repeatedly hits its memory limit, or swap that begins to grow, means the sizing needs adjusting. The step is done when the test runs without swapping and connection counts stay below the configured ceiling.
Adjust sizing and decide on a separate database server
Compare the load test results with the starting numbers and change workers, memory limits or cron threads as the evidence requires, then retest. If database connections, disk I/O or CPU contention stay high even after tuning, plan to move PostgreSQL to its own machine, which the separate database server page covers. Record the final settings and the test evidence so the next sizing review starts from measured data. The output is an approved configuration with its supporting test record.
When to split PostgreSQL onto its own machine
Move PostgreSQL to its own server when the database and the Odoo workers start competing for the same resources on the application host, and the sizing worksheet can no longer be satisfied on one machine. The first signal to check is CPU and RAM contention: if PostgreSQL's memory use, which grows with active sessions and query work, pushes the host into swapping or leaves the workers without room for their memory limits, the workers will time out under load even when the worker count is correct. Watch for disk I/O as well. Heavy reads and writes from the database, especially during month-end reports or large imports, can slow the processes that serve pages, and the symptom often looks like slow screens rather than a database fault.
Connection pressure is the third signal. Each Odoo worker holds its own database connection, so a larger worker count multiplies the sessions PostgreSQL must manage. If you see connection errors or long waits for a free connection as you add workers, the database tier needs its own capacity and limits. The fourth signal is maintenance. Backups, vacuum activity and major upgrades that run on the same host can make users wait, and a separate database machine lets you schedule and monitor those jobs without touching the application tier. Confirm each of these with your own measurements over a representative period, not with a single benchmark.
The trade-offs are real and should be costed before you split. Odoo's queries now cross a network, so latency between the two hosts adds to every round trip, and the database host needs its own operating system, patching, monitoring and backups. Once the database is remote, you must control who can reach port 5432 through pg_hba.conf and listen_addresses, and you should encrypt the connection with TLS, set through the db_sslmode option. The configuration steps, including the non-superuser role and connection limits, are in the separate PostgreSQL server guide. Treat the split as a decision based on measured contention, and confirm the sizing of both hosts with your own load tests before you buy hardware.
Operational risks that sizing mistakes create
A server sized on paper still fails in operation when limits, background jobs, connections and monitoring are left at defaults. The six risks below connect the sizing decisions to the controls that keep an Odoo host stable as users, data and versions grow.
Runaway requests exhaust host memory
A single heavy report, export or large import can use far more RAM than a typical page load. Without a per-worker memory ceiling, one request can push the whole host into swap or the out-of-memory killer, taking every user down with it. Set the memory limits in odoo.conf from your RAM budget per worker, then test the heaviest reports you actually run. Check that the limits leave headroom for PostgreSQL and the operating system.
Cron jobs overrun business hours
Scheduled actions share the same CPU and database capacity as interactive users. Stock valuation, mail fetching, or bulk recomputations scheduled during the working day can make screens slow even when the worker count looks correct. Reserve dedicated cron workers, then move heavy scheduled actions to quiet windows and confirm which jobs run in the business day. Review the scheduled actions list after each module installation.
Database connection exhaustion
Each Odoo worker opens its own connections to PostgreSQL, so raising the worker count raises the connection load on the database. When the connection limit is reached, new requests fail with errors that look like application faults rather than capacity limits. Calculate the connections your worker layout needs, set the PostgreSQL connection limit with that figure in mind, and monitor active connections during peak use. Connection pooling is a decision to make before adding workers, not after errors appear.
Worker ports exposed without a reverse proxy
Odoo's HTTP worker and the long-polling or websocket port are meant to sit behind a reverse proxy that handles TLS, timeouts and buffering. Exposing them directly to the internet bypasses those controls and leaves the application server handling raw client connections. Publish only the proxy port, keep the Odoo ports on a private interface, and confirm with a port scan from outside your network. Document the proxy settings so sizing assumptions about concurrency still hold.
Missing swap and monitoring hide early pressure
A host without monitoring shows no warning before users complain, and undersized or absent swap turns a brief memory spike into a sudden outage. Track memory, swap activity, CPU load, worker recycling and PostgreSQL connections over time, and set alerts on trends rather than on single readings. Ask your team which metrics they will review each week and who acts on them. Sizing decisions are only as good as the data that proves them.
Capacity planning ignores version upgrades
Each major Odoo version can change resource use, and the upgrade path itself needs a second environment with comparable hardware. A server sized for the current version may be undersized after an upgrade, and a test database restored onto a smaller host gives misleading timings. Check the support window for your version, plan a staging server that matches production capacity for upgrade tests, and re-measure load after each upgrade. Odoo's standard support windows set when upgrades become unavoidable.
Odoo upgrade docsLimits to confirm before you buy hardware
The worker formula gives a starting point, not a guarantee. Load testing on representative data is the only reliable way to validate the specification. Build a copy of your largest database (neutralized, so no live email or payment connections fire), replay the screens and reports your heaviest users run at peak, and measure memory, CPU and response times on the same machine size you plan to buy. Confirm with your Odoo partner or Odoo's documentation which Odoo version you will run, because worker behavior and resource use change between major releases.
Several factors move the numbers in ways the general guidance cannot predict. Enterprise apps such as Accounting, Manufacturing or Studio-built views can load more data per request than Community equivalents, and custom modules, heavy report templates or large computed fields can raise memory use per worker. Check which modules you will deploy and ask the developer of any custom code to profile it. If you plan to run on Odoo.sh or in Docker, confirm with Odoo or your hosting provider how workers, memory limits and cron processes are configured on that platform, because the limits you set on a bare Linux server may not apply there.
PDF rendering needs its own check. Invoices and reports are generated through wkhtmltopdf, which runs on the same host unless you move it, so its CPU and memory use during month-end runs adds to the Odoo worker load. Confirm the wkhtmltopdf version your target Odoo release requires and test report generation at the same time as normal user traffic. Finally, confirm the support window for your chosen version in Odoo's standard and extended support documentation before you commit to a server plan, since the hardware you buy now will run that version until its support ends.
What buyers ask about Odoo server sizing before hiring help
How much does an Odoo server sizing exercise cost?
No fixed figure applies to every Odoo environment, because the cost follows the written scope. The main drivers are how much load testing is needed, how many custom modules sit on top of the standard apps, and how many environments must be sized, such as production, staging and a restored test copy. A sizing review that only reads your current metrics and applies Odoo's worker guidance costs less than one that builds a realistic load profile and measures response times under concurrent use. Ask for a quote that lists each environment, each test scenario and the deliverable, such as a written server specification and a worker configuration. DeployOpen does not publish a price list, and a quote follows from that written scope.
How long does Odoo server sizing take?
The duration depends on how much data you can give up front and how many environments and test runs the scope includes. A team that already has a stable production server, clear user counts and monitoring history can move faster than one that must first install a new environment and collect baseline data. Load testing adds time because each run needs setup, execution and analysis, and any finding can trigger a retest after a change. Ask for a timeline in the written scope that names the inputs you must supply and the points where your team must review results. DeployOpen agrees timelines in writing before work starts.
What information must we provide for an Odoo sizing review?
The reviewer needs a clear picture of who uses Odoo and when. Prepare the following so the engagement starts with evidence rather than estimates:
- Named user counts by app and role, with concurrent-user estimates for peak hours
- Peak schedules, such as month-end close, shift starts or batch order imports
- Report and document volumes, including invoice PDFs and large exports
- Current server metrics for CPU, RAM, disk I/O and PostgreSQL activity, covering at least one business cycle if available
- Existing
odoo.confsettings, scheduled action lists and any integrations that call Odoo in bulk
Missing peak data is the most common cause of undersized specifications, so confirm these inputs before the first test.
Can our internal IT team size Odoo without outside help?
Yes, a capable internal team can apply Odoo's worker guidance and measure its own server, provided it has the right skills. The team needs working knowledge of Linux process and memory behavior, PostgreSQL tuning and connection limits, Odoo's multi-processing server and its cron workers, and a load testing method that reproduces real user actions. Internal teams often struggle to separate application limits from database limits and to reproduce month-end workloads safely outside production. Decide which parts you will own, such as monitoring and configuration changes, and which you may hand to a partner, such as a documented load test and a written specification.
Does an Odoo upgrade change the server sizing?
It can, because a new major version may change memory use, request handling and database behavior, and custom modules may behave differently under load. Odoo's documentation describes an upgraded test database that you should test before production, so sizing should be repeated on that copy rather than assumed unchanged. Odoo's support windows also set when upgrades become necessary. Standard support covers the first three years after a major release, and on Odoo Online and Odoo.sh major version upgrades are mandatory every two years according to Odoo's upgrade documentation. Plan a sizing check as part of each upgrade test cycle.
How is a fixed-scope Odoo sizing engagement quoted?
A quote follows from a written scope that DeployOpen agrees with you before work starts. The scope should state the environments covered, the user and load profiles to be tested, the custom modules that affect performance, the infrastructure you provide for testing, and the deliverables, such as a server specification, worker settings and a database placement recommendation. Each item in the scope changes the effort, so ask for line items rather than a single total. Also ask what happens if testing finds a bottleneck that needs a configuration change and a retest, and whether that retest is included or quoted separately.
Which Odoo sizing decisions are one-time and which recur?
The initial specification, load test and worker configuration are one-time work, although they must be repeated when the workload or version changes. Recurring costs come from the infrastructure itself, such as cloud instances, storage and backups, and from ongoing monitoring and review. Ask a partner to separate the one-time sizing deliverable from any retainer for periodic review, since a retainer covers continued checks rather than a single exercise. Also confirm who owns the load test scripts, so your team can rerun them after changes without another engagement.
How DeployOpen works on this
DeployOpen turns Odoo's worker formula into a server specification for your own infrastructure, starting from your user count, your heaviest reports and your database growth. The sizing is written down, built, load tested and handed over with the configuration that makes it hold.
How we scope
- We record concurrent users by role, the heaviest reports and imports, and the scheduled actions that will run on the server.
- The written scope states the worker counts, memory targets, cron worker plan and database placement we will deliver for your environment.
- Engagements are fixed-scope, so the sizing deliverables and their acceptance checks are agreed in writing before work starts.
How we build
- We size the application server and PostgreSQL host together, then set workers, limits and memory headroom in odoo.conf to match.
- We run load tests with representative users and report on worker saturation, memory use and slow screens before go-live.
- We confirm the reverse proxy, database connection limits and backup window fit the chosen layout before we call the build complete.
How we hand over
- You receive the sizing worksheet, the final configuration with its reasoning, and the test results that support each number.
- The runbook explains how to add workers, when to split PostgreSQL onto its own machine and which metrics signal a need to resize.
- We walk your platform and operations team through the configuration so they can review changes against the documented assumptions.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including re-sizing after user growth or a new Odoo version.
- Retainer work can repeat load tests after major version upgrades, since the resource profile of a release can change.
- Ask any partner for the sizing assumptions in writing, the test evidence behind them and the process for changing them later.

