Cluster resource requirements per selected component · Based on Helm chart 0.17+ defaults
Stages from the LangChain Agentic Operating Model. Picking one sets a starting load, users, components and where Postgres and Redis run; change any of them afterwards.
SmithDB is the default trace store and runs on its own node pool.
Auto follows the load: small: 0 peak runs/s (under 100 small, under 1,000 medium, under 10,000 large); 2 concurrent users ≈ 4 query requests/s against the tested query QPS (small 10, medium 40, large 100). The write side follows peak runs/s: under 100 small, under 1,000 medium, under 10,000 large. The read side uses the tested query QPS. Reads raise the tier — a bigger query pod — not the query replica count, since each pod keeps its own cache. From large, stats and mutations run as their own services.
ClickHouse is deprecated and support ends in v0.19. Turn it on only for Dual Digest (dual write) on an existing install, until query cutover.
Applies to every trace store: the SmithDB bucket keeps 5 days past it, and the LangSmith bucket expires its ttl_s/ prefix at it. Extended retention is set in the Trace payload card.
Profile: Low reads · Low writes · 20% scheduling overhead included
| Service | Replicas | CPU req | RAM req |
|---|---|---|---|
| 11 | 12.0 | 24.0 GiB | |
| SmithDB serves reads — chart default | 2 | 2.0 | 4.0 GiB |
| 3 | 3.0 | 6.0 GiB | |
| ≈1 CPUs at peak · 2-CPU pods | 2 | 4.0 | 8.0 GiB |
| 1 | 0.5 | 1.0 GiB | |
| 1 | 1.0 | 2.0 GiB | |
| 1 | 0.5 | 1.0 GiB | |
| 1 | 1.0 | 2.0 GiB | |
| 5 | 18.25 | 36.25 GiB | |
| scales to 10 | 1 | 4.0 | 8.0 GiB |
| scales to 10 | 1 | 4.0 | 8.0 GiB |
| 1 | 2.0 | 4.0 GiB | |
| scales to 10 | 1 | 8.0 | 16.0 GiB |
| 1 | 0.25 | 0.25 GiB | |
| Services total | — | 30.25 | 60.25 GiB |
The SmithDB cache needs SSD with 7,000+ IOPS and 1,000 MiB/s throughput. The SmithDB cache StorageClass needs the same floor per volume — cluster defaults are usually too slow. Cache figures are the small tier.
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.
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
In-cluster rows are counted in the vCPU/RAM totals above. External rows are what to provision outside the cluster — sized here, but not part of those totals. Open a row for instance types and requirements.
| Database | Runs | CPU req | RAM req | Storage | |
|---|---|---|---|---|---|
| internal | 2 | 8 GiB | — | ||
| dedicated Postgres | — | — | 50 GiB | ||
| every run · no lifecycle rules | object storage | — | — | 2 GB | |
| blob · fields ≥ 20 KiB + attachments | object storage | — | — | 2 GB | |
| scales with write load | internal | 2 | 8 GiB | — | |
| In-cluster DB total | — | 4.0 | 16.0 GiB | — |
# ═══════════════════════════════════════════════════════════════════════ # REFERENCE GUIDANCE ONLY — not a production-ready values.yaml. # This snippet shows which keys to configure and rough sizing based on your # inputs. Review against the current chart defaults, fill in real secrets/ # connection strings, and validate in a staging environment before deploying. # ═══════════════════════════════════════════════════════════════════════ # ── langsmith chart ──────────────────────── config: blobStorage: enabled: true engine: S3 # GCS on GKE (with the GCS apiURL below); Azure on AKS, which takes azureStorageAccountName + azureStorageContainerName instead of bucketName and ignores apiURL bucketName: "<langsmith-blobs>" # also holds every attachment apiURL: "https://s3.<region>.amazonaws.com" # your bucket's region (chart default is us-west-2); https://storage.googleapis.com on GKE minBlobStorageSizeKb: "20" # KiB per field (× 1024); chart default 20; lower = less Redis, more object-store requests settings: redisRunsExpirySeconds: "21600" # ≥ worst ingest backlog + ~3.5 h of feedback retries; tolerates a 2.5 h backlog # Never lower this to save Redis memory: a payload that expires before its run is stored is skipped silently. # ── Features not selected ────────────────── # The chart enables Insights and Polly by default; turn off the ones you are not sizing. insights: enabled: false polly: enabled: false # ── Scaled services ───────────────────────── frontend: deployment: replicas: 1 platformBackend: deployment: replicas: 3 resources: limits: cpu: "2" # never below 2: Go runs at least two threads, and a 1-CPU limit throttles most scheduling windows # ≈1 CPUs = 0 peak runs/s ÷ 34.9 runs/s per core × 1.25, in 2-CPU pods ingestQueue: deployment: replicas: 2 # ignored while KEDA is on resources: requests: cpu: "2" memory: 4Gi limits: cpu: "2" # never below 2 — Go sets its threads from this limit memory: 4Gi autoscaling: keda: enabled: true # scales on queue depth — the workers are I/O-bound, so a CPU HPA does not fire minReplicaCount: 2 maxReplicaCount: 5 backend: deployment: replicas: 2 # ── PostgreSQL ────────────────────────────── postgres: external: enabled: false # chart default: in-cluster Postgres StatefulSet # In-cluster Postgres is dev/POC only — no backups, no failover, no disk autoexpansion # ── Redis ─────────────────────────────────── # ≥8 GiB redis: statefulSet: resources: requests: memory: 8Gi limits: memory: 8Gi persistence: size: 8Gi # holds an RDB snapshot of the full memory; chart default 8Gi # ── ClickHouse / SmithDB ──────────────────── # SmithDB only. New installs on chart 0.17+ only: on an existing install this deletes the # chart-managed ClickHouse and may delete or orphan its volumes. clickhouse: enabled: false smithdb: enabled: true # Requests and limits for every SmithDB pod: query 4 vCPU / 8 GiB, ingestion 4 vCPU / 8 GiB, compaction 2 vCPU / 4 GiB, compaction-worker 8 vCPU / 16 GiB, cluster-manager 0.25 vCPU / 0.25 GiB. resourceTier: small langsmith: ingestion: enabled: true migration: enabled: false # nothing to backfill without ClickHouse query: enabled: true # SmithDB serves every read # Pod identity instead of static keys: the IRSA role ARN on EKS, or the GCP # service account for the Workload Identity binding on GKE, or the Azure Workload Identity # client ID on AKS. serviceAccount: create: true annotations: {} # <irsa-role-arn> or <workload-identity-service-account> config: # Dedicated Postgres 18 metastore, reachable on a private IP. The migration job # requires an empty database — never point it at the LangSmith Postgres. existingSecretName: smithdb-metastore metastore: hostSecretKey: smithdb_metastore_db_host databaseSecretKey: smithdb_metastore_db_name usernameSecretKey: smithdb_metastore_db_username passwordSecretKey: smithdb_metastore_db_password port: "5432" useSsl: true # false on Cloud SQL — SmithDB cannot verify its certificate # Dedicated bucket for the .vortex segments. Never the LangSmith blob bucket. # Reach it privately: an S3 gateway endpoint on AWS, Private Google Access on GCP, # a private endpoint on Azure. On AKS set type: azure and objectStore.azure.accountName # (required), and drop the s3 block. objectStore: type: s3 # gcs on GKE, azure on AKS (+ objectStore.azure.accountName) bucket: "<smithdb-dedicated-bucket>" s3: region: "<region>" accessKeyIdSecretKey: "" # empty — credentials come from the pod identity above secretAccessKeySecretKey: "" # Every SmithDB workload runs on its own node pool, labelled and tainted # langsmith-nodepool/smithdb=true:NoSchedule as the Terraform modules do. To run on one # pool instead, drop the nodeSelector and tolerations below. # # Network-attached cache: the chart requests a generic ephemeral volume per pod, sized # by the tier, so Kubernetes creates the claim with the pod and deletes it with the pod. # Requires chart 0.17.0 or later. cache: storageClassName: smithdb-cache # empty uses the cluster default, which is usually too slow query: deployment: nodeSelector: langsmith-nodepool/smithdb: "true" tolerations: - key: langsmith-nodepool/smithdb operator: Equal value: "true" effect: NoSchedule ingestion: deployment: nodeSelector: langsmith-nodepool/smithdb: "true" tolerations: - key: langsmith-nodepool/smithdb operator: Equal value: "true" effect: NoSchedule compaction: deployment: nodeSelector: langsmith-nodepool/smithdb: "true" tolerations: - key: langsmith-nodepool/smithdb operator: Equal value: "true" effect: NoSchedule compactionWorker: deployment: nodeSelector: langsmith-nodepool/smithdb: "true" tolerations: - key: langsmith-nodepool/smithdb operator: Equal value: "true" effect: NoSchedule clusterManager: deployment: nodeSelector: langsmith-nodepool/smithdb: "true" tolerations: - key: langsmith-nodepool/smithdb operator: Equal value: "true" effect: NoSchedule # The chart's HPAs can scale smithdb-query to 10, smithdb-ingestion to 10, smithdb-compaction-worker to 10. # The totals size the starting count, not that ceiling — cap maxReplicas in a quota namespace. # Provision that StorageClass with at least 7000 IOPS and 1000 MiB/s per volume, # reclaimPolicy: Delete, and volumeBindingMode: WaitForFirstConsumer. Use gp3 on # EKS, hyperdisk-balanced on GKE, PremiumV2_LRS on AKS. # # The backfill Job needs a whole 8 vCPU / 32 GiB node and, on chart 0.17.46+, a # 100 GiB PVC per pod from this StorageClass (older charts request 100 GiB of node # ephemeral-storage instead). # # Leave metastoreMigration unpinned. It is a pre-install hook that runs before any # SmithDB pod exists, so it belongs on the application pool, which always has nodes. commonEnv: - name: "GO_INGESTION_QUEUE_PRIORITY" value: "6" # runs before feedback: feedback for an unstored run only retries - name: "GO_FEEDBACK_QUEUE_PRIORITY" value: "1" # Run-once Jobs the chart also renders, left out of the vCPU/RAM totals because they finish: # backend migrations, auth bootstrap and e2e test (basic auth) 200m / 500 MiB each, backfill check # 100m / 256 MiB, SmithDB metastore migration 250m / 256 MiB. # Leave room for them on the application pool during an install or upgrade.