Prerequisites and sizing
Checklist​
Before you start, have the following ready:
- Access to the Breign images (and the Helm chart if you use Kubernetes): registry credentials provided with your license.
- Somewhere to run containers: a Kubernetes cluster, a container platform, or Linux servers with Docker or Podman. See Deployment options.
- Domain names and TLS certificates for the app and the API (for example
breign.example.comandapi.breign.example.com), and for the object storage if users' browsers reach it directly. See Network and exposure. - A database: PostgreSQL 13 or later, or MongoDB (6.0 or later, or a compatible managed service).
- Object storage: two buckets (or Azure containers) — one private for files, one publicly readable for avatars and logos — with CORS allowing your app's domain.
- A vector database: Weaviate or Qdrant.
- An e-mail account with Resend and a verified sending domain, for sign-in codes and invitations. A deployment where everyone signs in with SSO still sends invitations and notifications.
- At least one AI model provider: an API key for a cloud provider (OpenAI, Mistral, Anthropic, Gemini, Azure OpenAI…) or a self-hosted, OpenAI-compatible endpoint (vLLM, Ollama…). Knowledge bases also need an embedding model. See Connect your models, data and tools.
- Optional — an identity provider (OpenID Connect or SAML) for single sign-on. See Initialization.
- Secrets generated for your deployment (API keys, encryption secret, JWT keys…). See Operations › Security checklist.
Sizing​
The figures below are starting points, based on the deployments we run. Watch the actual usage (see Operations) and adjust.
Containers​
| Component | Minimum (pilot) | Recommended (production) | Replicas |
|---|---|---|---|
| Breign APP | 0.5 vCPU, 1 GiB | 1 vCPU, 1 GiB | 1 or more |
| Breign API | 0.5 vCPU, 1 GiB | 1–2 vCPU, 2 GiB | 1 or more (single replica if you use avatar apps) |
| Breign Document API | 1 vCPU, 2 GiB | 2 vCPU, 4 GiB | 1 or more |
| Breign Scrapping API | 0.25 vCPU, 0.5 GiB | 0.5 vCPU, 1 GiB | 1 |
| Guards API | 2 vCPU, 4 GiB | 2–4 vCPU, 6 GiB | 1 |
| Execution node | 0.5 vCPU, 1 GiB | 1 vCPU, 4 GiB, 10 GiB of disk for workspaces | as many as you need |
A pilot (a few dozen users) fits in about 3 vCPU and 6 GiB for the three required containers, plus the services below.
What makes each component grow:
- Breign API: the number of conversations at the same time, agents that use tools (each bash session can hold up to 32 MB in memory), knowledge indexing (chunking and embeddings run in the API) and voice transcription. Add replicas rather than memory when users increase.
- Breign Document API: each document parsed at the same time needs about 1.6 GB of memory (dense PDFs reach 1.5 GB, Excel files about 190 MB per MB of file). A replica runs one worker per CPU, as long as memory allows. To index large batches of documents faster, add CPUs and memory, or replicas. Files are limited to 100 MB by default.
- Guards API: loads its models in memory when it starts; its memory is mostly fixed.
- Execution nodes: depend on the work the agents do (builds, tests). Each node runs 2 turns at a time by default.
Database​
| Minimum | Recommended | |
|---|---|---|
| PostgreSQL | 1 vCPU, 2 GiB, 20 GB of disk | 2 vCPU, 4 GiB, 50 GB of disk, automatic backups, high availability |
| MongoDB | 1 vCPU, 2 GiB, 20 GB of disk | 3-node replica set, 2 vCPU and 4 GiB each, backups |
Conversations, messages and logs make up most of the volume. Each Breign API replica opens two connection pools (application and sign-in); with MongoDB, count up to 40 connections per replica. Breign APP, Document API and Scrapping API also connect to the database.
Vector database​
Vector memory grows with the amount of indexed text. As an order of magnitude, with the default embedding model (3,072 dimensions), a chunk takes about 12 KB of vector, plus index overhead: a million chunks need around 15–20 GB of memory. Smaller embedding models (1,024 or 1,536 dimensions) divide this by 2 to 3.
| Minimum | Recommended | |
|---|---|---|
| Weaviate or Qdrant | 1 vCPU, 2 GiB, 10 GB of disk | 2 vCPU, 4–8 GiB, 50 GB of disk, backups |
Weaviate on a network file share (NFS) must run as a single instance: never let two instances use the same volume.
Object storage​
Plan about 1.5 times the size of the documents you will index: the original files are kept, along with the Markdown text and the images extracted from them. Conversation attachments (15 MB per file by default), avatars and agent workspaces are stored there too.
Scaling​
| Component | Can run several replicas? |
|---|---|
| Breign APP | Yes |
| Breign API | Yes, except with avatar apps (WebSockets kept in memory) |
| Breign Document API | Yes |
| Breign Scrapping API | No |
| Guards API | No |
| Execution nodes | Yes: each node needs its own state volume |
Platforms that scale containers down to zero (Cloud Run, Container Apps) work, but the API runs background jobs (scheduled tasks, automations, indexing): when no replica is running, they wait. Keep at least one replica of Breign API during the hours your automations must run, and one replica of Document API if documents must be indexed without delay.