Skip to content

Hardware and sizing ​

A self-hosted Cognipeer installation is one container image, a Node.js server on port 3000, next to a database. What it needs depends on what you turn on: sandboxes, browser sessions and local models need resources beyond the server itself. This page lists the resource figures Cognipeer ships, what adds load, and where to size GPU machines.

Defaults, not benchmarks

The figures on this page are the defaults in Cognipeer's own deployment files. They are a starting point, not a measured capacity per user or per request rate. Start with them, watch the usage, and adjust.

When to use ​

  • You are ordering servers or a Kubernetes namespace for a new installation.
  • A security or procurement form asks for the hardware requirements.
  • Cognipeer restarts or slows down under load and you want to know what to give it.

What you size ​

PartNeededWhere it runsSee
Cognipeer serverAlwaysOne container per replicaThe Cognipeer container
DatabaseAlwaysSQLite inside the container, on a volume. MongoDB, or PostgreSQL on the Enterprise edition, on a server of its ownDatabase and disk
RedisWhen you run more than one replicaA server of its ownMore than one replica
Sandboxes (Enterprise)Only when agents run codeDepending on the chart: a Docker engine next to Cognipeer, a sandbox host, or pods in a sandbox namespaceSandboxes
GPU machines (Enterprise, GPU Fleet)Only for models you run yourselfMachines of their ownLocal models

Hosted model providers such as OpenAI, Anthropic or Azure OpenAI need no hardware on your side: Cognipeer forwards the calls to them.

The Cognipeer container ​

The Enterprise Helm charts (the Docker-in-Docker, jail and Kata variants) all give the Cognipeer container the same resources:

CPUMemory
Request (reserved for the container)0.5 core (500m)1 GiB (1024Mi)
Limit (the most it may use)1 core (1000m)2 GiB (2048Mi)

The charts also turn on a horizontal pod autoscaler: 1 to 5 replicas, adding a replica when the average CPU use passes 80%. Running more than one replica has requirements of its own, see More than one replica.

The community repository has no Helm chart (see Deployment). For docker run or your own manifests, the chart values above are the figures to start from.

Work that runs inside the container and adds to its CPU and memory:

  • Browser sessions. Cognipeer runs Chromium on the server for the Browser module and for the crawler's Playwright engine. By default a workspace may have 10 browser sessions open at once (BROWSER_DEFAULT_MAX_CONCURRENT), and a node runs 4 browser actions at once (BROWSER_ACTION_CONCURRENCY). See Browser Runtime.
  • Local OCR. The local OCR engine reads one document at a time per node by default (OCR_LOCAL_MAX_DOCS). See Document extraction (OCR).
  • Background jobs. Agent runs, knowledge ingestion, crawls, evaluations and other jobs run on the same nodes, each type with a per-node concurrency setting. See Job concurrency, and Cluster for separating HTTP traffic from background work.

When you raise these settings, raise the container's memory and CPU with them.

Building the image ​

If you build the image from source, the build gives Node a heap ceiling of 8096 MB (the NODE_BUILD_HEAP_MB build argument in the Dockerfile). The ceiling has to stay below the memory the build gets, so build on a machine, or a Docker builder, with more memory than that. A build that runs out of memory can stop without any error output.

Database and disk ​

Deployment describes the choice: SQLite for local, edge or smaller self-hosted installations, MongoDB for higher concurrency or a central database. PostgreSQL is the third option on the Enterprise edition (see PostgreSQL).

DataWhere it is keptDefault size
SQLite databases and locally stored files/app/data in the containerNo default: mount a persistent volume there
MongoDB bundled with an Enterprise chart (mongodb.enabled: true, the default of the jail chart; the other charts expect an external MongoDB)A StatefulSet with a volume of its own10 GiB volume (mongodb.persistence.size). The charts set no CPU or memory for it.
Sandbox host of the jail chartA volume of its own20 GiB (sandboxHost.persistence.size)

Disk use grows with what you keep: uploaded files and their extracted text, knowledge indexes, traces, audit records and usage logs. Data retention (Enterprise) deletes data by age and class, which keeps that growth in check.

PostgreSQL connections. Each Cognipeer process opens up to PG_POOL_MAX connections (default 10). The server's max_connections must cover the number of replicas times PG_POOL_MAX, plus the extra pods of a rolling update and your own administration tools.

More than one replica ​

  • Redis. The charts note that more than one replica needs Redis: set CACHE_PROVIDER=redis and REDIS_URL (see Cache).
  • Shared job queue. With Redis configured, the job queue switches to BullMQ (QUEUE_PROVIDER=auto), so the replicas share the background work. See Cluster.
  • Limits counted across replicas. Some limits, such as the per-account sign-in limit, are counted across replicas only with RATE_LIMIT_PROVIDER=redis. See Rate Limiting.
  • Database. The charts connect Cognipeer to MongoDB: the one bundled with the chart or an external one.

Sandboxes (Enterprise) ​

Sandboxes, where agents run code, need resources on top of the Cognipeer container. Where they run depends on the chart.

  • Per sandbox. A new sandbox gets 0.5 vCPU, 1 GB of memory and 1 GB of disk unless a project or the sandbox sets other values. Operators change the default with SANDBOX_DEFAULT_* and set a hard cap with SANDBOX_MAX_*. See Resource limits.
  • Jail chart. One sandbox host carries all sandboxes. It requests 2 cores and 4 GiB of memory, may use up to 8 cores and 16 GiB, and has a 20 GiB volume. Size it for the sandboxes that run at the same time: their number times the resources of one sandbox.
  • Docker-in-Docker chart. Sandboxes run in a Docker engine container next to the Cognipeer container, in the same pod. The chart sets no CPU or memory for that container, so the node must have room for the sandboxes that run at the same time.
  • Kata chart. Each sandbox is a pod of its own in a separate sandbox namespace, so the cluster's nodes carry them. See Sandbox on Kubernetes.

Local models ​

Models you run yourself run on GPU machines that join the GPU Fleet (Enterprise), not on the Cognipeer server. Their size depends on the model, not on Cognipeer: see GPU Fleet planner and sizing, including Apple Silicon machines.

Watch and adjust ​

  • Health and diagnostics. Health checks and Settings → Diagnostics show whether the server, the database and the modules are healthy.
  • Kubernetes. Compare the pods' actual CPU and memory with the requests above, and look for restarts caused by the memory limit.
  • Raise one thing at a time. Memory first when the container restarts, CPU when responses slow down under load, replicas once a single container is at its limit.

Studio · Pulse · Console · Agent SDK and more — the Cognipeer documentation hub · Contact Support