From 0e2471b401cb246848409af7f07daabf5855623f Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Tue, 6 May 2025 11:23:55 -0700 Subject: [PATCH] Add LANGGRAPH_POSTGRES_POOL_MAX_SIZE env var (#4562) --- docs/docs/cloud/reference/env_var.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/cloud/reference/env_var.md b/docs/docs/cloud/reference/env_var.md index 07fdc6570..659459219 100644 --- a/docs/docs/cloud/reference/env_var.md +++ b/docs/docs/cloud/reference/env_var.md @@ -91,6 +91,10 @@ Database Connectivity: - The custom Postgres instance must be accessible by the LangGraph Server. The user is responsible for ensuring connectivity. +## `LANGGRAPH_POSTGRES_POOL_MAX_SIZE` + +Beginning with langgraph-api version `0.2.12`, the maximum size of the Postgres connection pool can be controlled using the `LANGGRAPH_POSTGRES_POOL_MAX_SIZE` environment variable. By setting this variable, you can determine the upper bound on the number of simultaneous connections the server will establish with the Postgres database. This is particularly useful for deployments where database resources are limited (or more available) or where you need to tune connection behavior for performance or scaling reasons. If not specified, the pool size defaults to 150 connections. + ## `REDIS_URI_CUSTOM` !!! info "Only for Self-Hosted Data Plane and Self-Hosted Control Plane"