How big the servers, the web app and PostgreSQL should be for the number of people who use the Wiki. The numbers come from load tests of the current release (results at the end of this page); start from the table for your size, then watch the real load and adjust.
1. How to read the numbers
- People is everyone with an account who uses the Wiki. Active at peak is how many of them have the Wiki open and are clicking through pages at the busiest moment of the day. For a company wiki that is usually 5–10% of the people; the tables use 10%, so most installations have room to spare.
- An active person in the tests opens a page every 10 seconds on average and keeps a tab open with its live connection. Someone reading a long page for a few minutes costs less.
- The tables size for about half the CPU at peak, so a spike, a large import or a server restart doesn't slow everyone down.
- Every part scales out: more servers (a cluster, Pro), more web app processes behind your proxy, and a bigger PostgreSQL.
2. What one active person costs
| Part | Per 1,000 active people | Notes |
|---|---|---|
| Web app | About 0.2 CPU with /api routed to the server; 150 MB per process | It draws the pages only. One process can't use more than about one CPU; run one per CPU behind the proxy. If API calls go through the web app instead, it needs about 1.9 CPU per 1,000 active people |
| Server | About 0.3 CPU and 150 MB, plus about 200 MB for the server itself | Measured up to 3,500 active people on one CPU |
| PostgreSQL | About 0.3 CPU | Plus memory for the data people read most (see below) |
| Redis | Small (well under 0.1 CPU) | Only for a cluster |
3. Recommended sizes
| People | Active at peak | Servers | Web app | PostgreSQL | Redis |
|---|---|---|---|---|---|
| Up to 500 | 50 | 1 × 1 CPU, 1 GB | 1 process, 1 CPU, 1 GB | 2 CPU, 4 GB | — |
| 2,000 | 200 | 1 × 1 CPU, 1 GB | 1 process (2 for availability) | 2 CPU, 4 GB | — |
| 5,000 | 500 | 1 × 2 CPU, 2 GB (2 for availability) | 2 processes, 1 CPU, 1 GB each | 2 CPU, 8 GB | Cluster only |
| 10,000 | 1,000 | 2 × 2 CPU, 2 GB | 2 processes | 4 CPU, 16 GB | 1 CPU, 1 GB |
| 25,000 | 2,500 | 2 × 2 CPU, 4 GB | 3 processes | 8 CPU, 32 GB | 1 CPU, 2 GB |
| 50,000 | 5,000 | 3 × 2 CPU, 4 GB | 4 processes (2 hosts × 2 CPU) | 8 CPU, 32 GB, a standby replica | 2 CPU, 2 GB, Sentinel |
| 100,000 | 10,000 | 4 × 2 CPU, 4 GB | 8 processes (2 hosts × 4 CPU) | 16 CPU, 64 GB, a standby replica | 2 CPU, 4 GB, Sentinel |
Up to about 2,000 people everything can share one machine of 4 CPU and 8 GB (server, web app and PostgreSQL), as long as it is backed up. From 5,000 people, give PostgreSQL its own machine or use a managed database. A cluster needs the Pro licence, Redis and shared storage; see Single server & cluster.
The web app column assumes your proxy sends /api straight to the server (see Install the Wiki). Without that route every API call passes through the web app, which then needs about ten times as many processes.
If more of your people are active at once (for example everyone opens the Wiki at 9 a.m. for a stand-up), size by the number of active people you expect, not by the number of accounts.
4. Settings that matter at scale
- Memory limit. Give each server at least 1 GB and set GOMEMLIMIT to about 80% of its memory limit (for example GOMEMLIMIT=800MiB for 1 GB). A server that runs out of CPU queues requests and its memory grows; past its limit it is stopped. Keep peak CPU at about half and add servers before that.
- Database connections. Each server opens pool_max_conns connections (default 4, or the number of CPUs if more). The default carried 3,500 active people per server CPU in the tests. Raise it at a server's first start, in DATABASE_URL (…?pool_max_conns=16), only when PostgreSQL has CPUs to spare, and keep servers × pool_max_conns plus 20 under PostgreSQL's max_connections.
- PostgreSQL CPUs. Give PostgreSQL at least as many CPUs as the servers together: in the tests it needed as much CPU as the server did.
- PostgreSQL memory. Enough to keep the pages, versions and people that are read most in memory: shared_buffers about a quarter of its memory. The test database (2,000 people, 2,100 pages) was 31 MB; a page with its versions and analytics takes about 15 KB on average, so 100,000 pages with history is roughly 2–5 GB, plus page views (kept month by month, see Analytics).
- API traffic. Send /api from the proxy straight to the server, not through the web app (see Behind a proxy). A call passed on by the web app costs it about ten times the CPU the server spends answering it; in the tests, routing /api directly cut the web app's CPU from 1.9 to 0.2 CPU per 1,000 active people. The sizes above assume this route.
- Web app processes. Run one process per CPU on each host and spread them behind the proxy. Compress responses at the proxy (gzip or Brotli), and let it cache /_next/static/ for a long time: those files never change within a release.
- The live connection. Every open tab holds one WebSocket on /api/ws, and editors one more for the page they edit. Allow enough open files for them on each server (LimitNOFILE in systemd, ulimits in a container): at least 4 × the active people you expect per server.
- Rate limits. The default limits suit the sizes above. Behind a proxy, set TRUSTED_PROXIES so limits apply to each person's address, not the proxy's (see Rate limits).
5. Watching the load
- Settings → Clustering shows each server's CPU and memory; the system check warns when one is unhealthy.
- Monitoring gives Prometheus metrics for request rates, live editing and the server process. Add a server when peak CPU stays above about 60%, or when page loads in your monitoring slow down.
- Watch the web app's CPU separately, above all if API calls pass through it.
6. Load test results
The numbers above come from these tests, run on 20 November 2026 against the current release. They are a guide for planning, not a promise: your pages, plugins and habits differ.
| Setting | Value |
|---|---|
| Machine | One 4-CPU cloud machine; each part pinned to its own CPUs and limited like a container (--cpus, --memory) |
| Data | 2,000 people, 17 spaces, 2,100 pages made from the ready-made templates (720 published) |
| People | Signed in, a tab open with its live connection, a new page every 10 s on average: 60% reading pages, 10% space overviews, 8% the dashboard, 8% search, 4% editing (editors open the live editor), the rest the spaces list, Q&A, history and blogs. One view in five is a full page load |
| Pass | 95% of page loads (all of a screen's requests) within 1.5 seconds, under 1% of requests failing |
| Not included | Typing in the editor, uploads, imports and exports; static files the browser caches |
The server alone (requests straight to the server, PostgreSQL on two CPUs):
| Server limit | Active people that passed | Page views per second | Requests per second | Page load, 95% | Server CPU used | Server memory | PostgreSQL CPU used |
|---|---|---|---|---|---|---|---|
| 0.5 CPU, 512 MB | 1,500 | 150 | 1,520 | 0.15 s | 0.44 | 213 MB | 0.45 |
| 1 CPU, 1 GB | 3,000 | 300 | 2,980 | 0.26 s | 0.84 | 362 MB | 0.89 |
| 1 CPU, 1 GB | 3,500 (limit) | 332 | 3,330 | 1.3 s | 0.92 | 562 MB | 0.91 |
With the web app in front and /api routed straight to the server (pages from one web app process limited to 1 CPU and 1 GB, the server at 1 CPU, PostgreSQL on one CPU):
| Active people | Page views per second | Page load, 95% | Web app CPU used | Web app memory | Server CPU used |
|---|---|---|---|---|---|
| 500 | 50 | 0.04 s | 0.11 | 121 MB | 0.16 |
| 1,000 | 100 | 0.04 s | 0.21 | 129 MB | 0.32 |
| 1,500 | 150 | 0.06 s | 0.30 | 131 MB | 0.45 |
| 2,000 | 200 | 0.12 s | 0.38 | 137 MB | 0.61 |
At twice that load (240 page views a second) the server and PostgreSQL, sharing the test machine, ran short first; the web app was at 0.43 CPU. The test had 2,000 accounts, so the web app's own limit is above that.
Every request through the web app (no /api route at the proxy; same limits):
| Active people | Page views per second | Page load, 95% | Web app CPU used | Web app memory | Server CPU used |
|---|---|---|---|---|---|
| 100 | 10 | 0.11 s | 0.21 | 147 MB | 0.05 |
| 200 | 20 | 0.16 s | 0.43 | 150 MB | 0.09 |
| 300 | 30 | 0.19 s | 0.61 | 157 MB | 0.12 |
| 400 | 40 | 0.36 s | 0.78 | 173 MB | 0.15 |
| 500 (over the limit) | 48 | 2.0 s | 0.93 | 176 MB | 0.16 |
- The server's cost grows in a straight line with the number of people until its CPU is used up; then page loads slow down within seconds. Plan for half.
- Forwarding a request costs the web app about ten times what answering it costs the server, so route /api to the server. Pages now carry only the text their screen needs (about 46 KB, 13 KB compressed, down from 177 KB); the rest loads once as files the browser caches.
- A server that ran out of CPU and memory together was stopped by its memory limit instead of slowing down: set GOMEMLIMIT and keep headroom (above).
- No screen asks the server for the same thing twice: a browser check of 24 screens found one repeated request (the space overview's "Start here" list), now fixed.