Skip to main content

Documentation Index

Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-featse-1779998369-ad736a3.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

When running LangSmith on Google Cloud Platform (GCP), self-hosted mode deploys a complete LangSmith platform with observability functionality. This page provides:
LangChain publishes production-ready Terraform modules for GCP that provision GKE, Cloud SQL, Memorystore, Cloud Storage, and networking in a single workflow. Start with the Deploy with Terraform overview to choose between the Terraform and Helm-only paths.

Initial setup

1

Deploy to Kubernetes

Follow the Kubernetes installation guide. LangSmith is tested on Google Kubernetes Engine (GKE).GKE-specific notes:
  • LangSmith works with standard GKE clusters
  • Use GCE persistent disk storage class
2

Configure external services

For production deployments, connect to GCP managed services:

Google Cloud Storage

Store trace data in GCS

Cloud SQL

PostgreSQL database

Memorystore

Redis or Valkey for caching

ClickHouse Cloud

Analytics database
3

Set up authentication

After completing these initial setup steps, you can review the complete GCP architecture and best practices below.

Reference architecture

We recommend leveraging GCP’s managed services to provide a scalable, secure, and resilient platform. The following architecture applies to both self-hosted and hybrid and aligns with the Google Cloud Well-Architected Framework: Architecture diagram showing GCP relations to LangSmith services
  • Ingress & networking: Requests enter via Cloud Load Balancing within your VPC, secured using Cloud Armor and IAM-based authentication.
  • Frontend & backend services: Containers run on Google Kubernetes Engine (GKE), orchestrated behind the load balancer. Routes requests to other services within the cluster as necessary.
  • Storage & databases:
    • Cloud SQL for PostgreSQL: metadata, projects, users, and short-term and long-term memory for deployed agents. LangSmith supports PostgreSQL version 14 or higher.
    • Memorystore (Redis or Valkey): caching and job queues. Memorystore can be in single-instance or cluster mode. LangSmith requires Redis OSS version 5 or higher, or Valkey 8.
    • ClickHouse + Persistent Disks: analytics and trace storage.
    • Cloud Storage: object storage for trace artifacts and telemetry.
  • LLM integration: Optionally proxy requests to Vertex AI for LLM inference.
  • Monitoring & observability: Integrate with Cloud Monitoring and Cloud Logging

Compute options

LangSmith supports multiple compute options depending on your requirements:
Compute optionDescriptionSuitable for
Google Kubernetes Engine (preferred)Advanced scaling and multi-tenant supportLarge enterprises
Compute Engine-basedFull control, BYO-infraRegulated or air-gapped environments

Google cloud Well-Architected best practices

This reference is designed to align with the six pillars of the Google Cloud Well-Architected Framework:

Operational excellence

Security

Reliability

Performance optimization

Cost optimization

Sustainability

Security and compliance

LangSmith can be configured for: Customers can deploy in Assured Workloads regions for compliance with ISO, HIPAA, or other regulatory requirements as needed.

Monitoring and evals

Use LangSmith to:
  • Capture traces from LLM apps running on Vertex AI.
  • Evaluate model outputs via LangSmith datasets.
  • Track latency, token usage, and success rates.
Integrate with: