Mendloop Docs Request access

Sizing

How big a machine Mendloop needs, from one team on 2 vCPU and 4 GB to a Kubernetes cluster.

Mendloop runs on one small server for one team, and splits into separate containers as volume grows. The figures below are estimates until wider load tests.

One team A department A company
Machine 2 vCPU, 4 GB 8 vCPU, 16 GB Kubernetes
Volume Up to about 1 million events a month Up to about 10 million events a month Ingest scales with event volume, workers with queue depth
Processes API, ingest and worker on one host API, ingest and worker as separate containers Helm chart; workers scale on queue depth with KEDA
Postgres and Redis On the same host, 40 GB disk Managed Managed
Fix verification Your CI Docker sandbox runner gVisor sandbox pool

The small-server profile#

The production Compose file is sized for 2 vCPU / 4 GB and runs Postgres, Redis, the API, ingest, the worker, the web app and Caddy. Each service has a memory ceiling and an order in which it is killed when memory runs out: the worker first, Postgres last.

Service CPU share CPU cap Memory cap Killed
postgres 1024 1100m last
redis 768 384m
api 1024 1.6 640m
ingest 768 1.0 288m
worker 256 1.0 832m first
web 256 0.5 256m
caddy 512 128m

The caps add up to 3,628 MB of 4,096 MB and are ceilings, not reservations: steady state is around 2.1 GB. A 2 GB machine works only for a demo.

Measured#

On a machine with 2 dedicated cores and 8 GB, the same profile held 100 events a second with 40 dashboard users and 12 root-cause analyses a minute with no errors, and broke at 200 events a second.

When to go bigger#

  • docker stats shows the API or the worker pinned at its CPU cap.
  • The event backlog (XLEN ml:events in Redis) stops returning to near zero.
  • You turn on the Docker sandbox: it needs more memory than ci-only (SANDBOX_MEMORY_MB defaults to 4096 per sandbox).
Tip:

On your own model keys, the model bill will be many times the server bill. Gating automatic root-cause analysis matters more for cost than the hosting choice; see Configuration.