Before you begin
- Contact LangChain through the Support Portal before you begin so the team can review your infrastructure plan.
- Set up SmithDB observability before you begin. The steps below use metrics to verify each stage.
- Start from a running LangSmith installation on Kubernetes. For a new installation on LangSmith 0.17, see Install without ClickHouse.
- Upgrade one major version at a time until the installation meets the cloud support minimum: LangSmith 0.16 with Helm chart
0.16.14or later on AWS (EKS) and GCP (GKE), or LangSmith 0.17 on Azure (AKS). Follow the upgrade guide. - Keep the Helm values from your current installation. This guide adds SmithDB configuration to them.
- Confirm you can apply the LangSmith Helm release to the cluster, directly or through your GitOps workflow.
- Review the SDK migration guide and plan your SDK upgrade alongside this installation.
Installation sequence
Step 1. Prepare supporting infrastructure
Follow Prepare SmithDB supporting infrastructure to provide:- A dedicated PostgreSQL 18 or later metastore
- Dedicated object storage with workload identity or equivalent credentials
- Cache storage for SmithDB: network-attached disks, or local SSD for the best cache performance
- Network connectivity and a Kubernetes Secret containing the metastore connection details
smithdb.cache.storageClassName. Local SSD on either version also needs the node selectors and tolerations shown there.
SmithDB infrastructure Helm values
SmithDB infrastructure Helm values
azure.workload.identity/use: "true" label to every SmithDB workload. See Configure Blob Storage access.Step 2. Upgrade to the required LangSmith version
SmithDB requires the LangSmith version listed in Cloud support. Upgrade to it before enabling SmithDB. Preserve the existing ClickHouse configuration and keep SmithDB disabled:Step 3. Configure and deploy SmithDB services
Before enabling SmithDB, choose a tested baseline from Configure SmithDB for scale. Configure its replica counts and per-replica CPU, memory, and cache size, and confirm the cluster can provision the total. Merge the infrastructure values prepared in Step 1 and your selected sizing baseline into the existing LangSmith values. Leave the existing ClickHouse configuration unchanged, then enable the SmithDB services without changing LangSmith ingestion or queries:Pending or CrashLoopBackOff has not. See Troubleshoot SmithDB.
Do not enable LangSmith integration flags until these checks pass.
Step 4. Enable dual ingestion
Begin writing to SmithDB while continuing to write to ClickHouse:- Routing:
sdb_ingestion_enabledistrueandsdb_query_enabledisfalse. - Flow:
ingest_flush_countincreases while traffic arrives. A flat counter means writes are not reaching object storage. - Capacity:
langsmith_asynq_ingestion_queue_pendingstays low and stable through a period that includes your peak traffic. Sustained growth means ingestion is undersized. Resolve it with Configure SmithDB for scale before Step 5 or Step 6.
Step 5. Choose how to handle historical data
Once dual ingestion is stable, decide whether ClickHouse history needs to be reachable through SmithDB-backed queries:- Migrate it: Follow Migrate ClickHouse history to SmithDB, then return here for query cutover.
- Leave it in ClickHouse: Skip migration. Existing data stays in ClickHouse but is not queryable through LangSmith after cutover unless queries are directed back to ClickHouse.
Step 6. Switch queries to SmithDB
After dual ingestion is healthy and any ClickHouse migration has completed, enable SmithDB-backed queries:true:
Install without ClickHouse
On LangSmith 0.17, a new installation can run SmithDB as its only trace store. Complete Step 1, then install LangSmith 0.17 with ClickHouse disabled and both SmithDB paths enabled, in place of Steps 2 through 6:Troubleshooting
If something fails during or after installation, see Troubleshoot SmithDB or contact LangChain through the Support Portal.Connect these docs to your agent of choice via MCP for real-time answers.

