LangSmith Self-Hosted — Cluster Sizing Calculator

Cluster resource requirements per selected component · Based on Helm chart 0.17+ defaults

Cloud
Layout

What you run

Maturity stage
Under 10K traces/month · 1–2 projects · under 5% adoption
Components
Sandboxes
Enable sandboxes
Own node pool, bucket and Redis

How much load

Load Profile
Concurrent users (reads)
Low 5Med 20High 50100+
Traces / second (writes)
Low 10Med 100High 1k
traces / month · below the slider
average · peak ≈ 0.11 runs/s, which sets the SmithDB tier, Redis and ingest
Reads: LowWrites: Low
guide blend 70% small / 25% medium / 5% large · offload ≥ 20 KiB · Redis TTL 6 h

Where data lives

SmithDB
Tier
Auto picks small for this load.
Cache
One PVC per pod · 7,000 IOPS / 1,000 MiB/s
LangSmith Postgres
In-cluster StatefulSet — not for production
LangSmith Redis
In-cluster StatefulSet
ClickHouse
SmithDB only — new installs on 0.17+

More options

Trace retention
Options
Blob storage
S3, GCS or Azure Blob
Autoscaling (HPA + KEDA)
Replica counts become ceilings

Cluster Resource Requirements

Reads: LowWrites: Low

Profile: Low reads · Low writes · 20% scheduling overhead included

Traces
SmithDB
Total vCPU needed
42 cores
services + in-cluster DBs
Total RAM needed
92 GiB
services + in-cluster DBs
Est. app nodes
3 nodes
8 vCPU / 32 GiB each · + 2 SmithDB pool nodes (16 / 64)
Object storage
4 GB
+0 GB/day · SmithDB + LangSmith buckets

Service Replicas

16 total pods
ServiceReplicasCPU reqRAM req
1112.024.0 GiB
518.2536.25 GiB
Services total—30.2560.25 GiB

Storage

2 GB
+0 GB/day · steady state after 405 d · 20% headroom · every run, no attachment bytes
2 GB
fields ≥ 20 KiB · base copy ttl_s/ 14 d · extended copy ttl_l/ 400 d · +0 GB/day · plus attachments at raw size
SmithDB cache
400 GiB
ephemeral PVCs — 200/100/100 GiB per pod
PostgreSQL
10 GiB
+ enable autoexpansion
8 GiB
in-cluster · scales with write load
The SmithDB cache needs SSD: 7,000+ IOPS, 1,000 MiB/s.

Node pools

AWS
Application
3 × 8 vCPU / 32 GiB
m5.2xlarge
Runs the LangSmith services and in-cluster databases · 19.2 vCPU / 48.0 GiB with overhead
Details

19.2 vCPU / 48.0 GiB with 20% overhead — the LangSmith services and the in-cluster databases.

Leave the SmithDB metastore-migration hook unpinned so it runs here. It is a pre-install hook that starts before any SmithDB pod exists.

  • AWS m5.2xlarge (8 / 32, as terraform.tfvars.dev sets it); the terraform default node group is m5.4xlarge (16 / 64), min 3, and terraform.tfvars.production sets m5.4xlarge, min 6
  • GCP n2-standard-8 (8 / 32, calculator recommendation); the terraform default gke_machine_type is e2-standard-4 (4 / 16)
  • Azure Standard_D8s_v5 — default_node_pool_vm_size default
  • Bare Metal 8 vCPU / 32 GiB equivalent worker
SmithDB
2 × 16 vCPU / 64 GiB min 2
m6i.4xlarge
Small tier · 400 GiB network-disk cache · 21.9 vCPU / 43.5 GiB with overhead
Details

Label and taint langsmith-nodepool/smithdb=true:NoSchedule — carries smithdb-query, smithdb-ingestion, smithdb-compaction, smithdb-compaction-worker and smithdb-cluster-manager: 21.9 vCPU / 43.5 GiB with 20% overhead at the small tier. Every node must fit the largest pod whole: smithdb-compaction-worker at 8 vCPU / 16 GiB. Same node type as the application pool or larger. To run on one pool instead, remove the SmithDB nodeSelector and tolerations from the values. The minimum of 2 nodes is the calculator's floor for rollout headroom; terraform sets none.

The label key is the calculator's own convention — SmithDB accepts any label and taint that keep its pods on the pool. The terraform modules use different keys, so on a terraform-built cluster match the nodeSelector and tolerations to its nodes, not to this label: smithdb-local/instance-store and smithdb-local/compute on AWS, GCP and bare metal; on Azure, kubernetes.azure.com/agentpool: smithdb with the taint workload=smithdb, once you add that pool.

This card models one SmithDB pool. The AWS and GCP terraform modules split it in two: a cache pool for query, ingestion, the compaction worker and the backfill Job, and a smaller compute pool for compaction and the cluster manager (GCP n2-standard-8 / 8 / 16 by tier; AWS Karpenter 2xlarge to 8xlarge). The calculator's vCPU and memory cover both: on a terraform cluster smithdb-compaction at 2 vCPU / 4 GiB and smithdb-cluster-manager at 0.25 vCPU / 0.25 GiB run on the compute pool, and every other pod above runs on the cache pool.

The backfill Job adds 8 vCPU / 32 GiB while the migration gate is on — leave the pool maximum room for it. On chart 0.17.46+ its 100 GiB scratch is a PVC from the cache StorageClass.

Network-disk cache: 400 GiB across 3 claims from a StorageClass — ≥7,000 IOPS and 1,000 MiB/s per volume, reclaimPolicy: Delete, volumeBindingMode: WaitForFirstConsumer. Kubernetes creates each claim with its pod and deletes it with the pod.

gp3 · 7,000 IOPS / 1,000 MiB/s

  • AWS ebs.csi.aws.com — type: gp3, iops: 7000, throughput: 1000 (needs the EBS CSI driver). Baseline guidance: the AWS terraform module does not provision this StorageClass; it builds the cache on instance-store local NVMe
  • GCP pd.csi.storage.gke.io — type: hyperdisk-balanced, provisioned-iops-on-create: 7000, provisioned-throughput-on-create: 1000Mi
  • Azure disk.csi.azure.com — skuName: PremiumV2_LRS, cachingMode: None, DiskIOPSReadWrite: 7000, DiskMBpsReadWrite: 1000 (zonal, region-limited)
  • Bare Metal any CSI driver that sustains 7,000 IOPS / 1,000 MiB/s per volume
  • AWS 4xlarge / 8xlarge / 16xlarge via Karpenter (small / medium / large; amd64 default, e.g. m6i / m7i; arm64 m6g optional) — calculator recommendation for the network-disk cache. The AWS terraform module builds SmithDB only on instance-store local NVMe, as two pools: smithdb-instance-store (query, ingestion, compaction worker, backfill Job; label and taint smithdb-local/instance-store) and smithdb-compute (Karpenter 2xlarge / 4xlarge / 8xlarge; compaction and cluster manager; smithdb-local/compute)
  • GCP c3-standard-22 / 44 / 88 (C3/C3D for Hyperdisk Balanced); terraform's smithdb_cache_storage defaults to local-ssd at small / medium / large, so set network-disk. Terraform builds this as the cache pool (query, ingestion, compaction worker, backfill Job; label and taint smithdb-local/instance-store) plus a compute pool, n2-standard-8 / 8 / 16, for compaction and the cluster manager (smithdb-local/compute)
  • Azure Standard_D16s_v5 / D32s_v5 / D64s_v5, zonal for Premium SSD v2 — the Azure module's SmithDB sizing guidance, not provisioned by the terraform module: by default SmithDB runs on the default pool (Standard_D8s_v5), which cannot fit the small-tier compaction worker. Add additional_node_pools.smithdb (zoned) and pin SmithDB to it with nodeSelector kubernetes.azure.com/agentpool: smithdb and a toleration for the taint workload=smithdb:NoSchedule
  • Bare Metal 16/64 · 32/128 · 64/256 vCPU/GiB workers by tier. The bare-metal terraform module's optional SmithDB pools use the cloud modules' keys: smithdb-local/instance-store (cache) and smithdb-local/compute (compaction, cluster manager)

Databases

AWS
In-cluster rows count toward the totals; external rows are yours to provision.
DatabaseRunsCPU reqRAM reqStorage
internal28 GiB—
dedicated Postgres——50 GiB
every run · no lifecycle rulesobject storage——2 GB
blob · fields ≥ 20 KiB + attachmentsobject storage——2 GB
scales with write loadinternal28 GiB—
In-cluster DB total—4.016.0 GiB—

Architecture Diagram

Helm values