From e0da491fe66f71bf83b158c6112f855b82ff1ef6 Mon Sep 17 00:00:00 2001 From: David Asamu Date: Thu, 17 Apr 2025 21:38:41 +0100 Subject: [PATCH 1/3] docs: Add docs for REDIS_KEY_PREFIX env var --- docs/docs/cloud/reference/env_var.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/cloud/reference/env_var.md b/docs/docs/cloud/reference/env_var.md index e15157cac..e82778248 100644 --- a/docs/docs/cloud/reference/env_var.md +++ b/docs/docs/cloud/reference/env_var.md @@ -89,3 +89,12 @@ Database Connectivity: Custom Redis instances are only available for [Self-Hosted Data Plane](../../concepts/langgraph_self_hosted_data_plane.md) and [Self-Hosted Control Plane](../../concepts/langgraph_self_hosted_control_plane.md) deployments. Specify `REDIS_URI_CUSTOM` to use a custom Redis instance. The value of `REDIS_URI_CUSTOM` must be a valid [Redis connection URI](https://redis-py.readthedocs.io/en/stable/connections.html#redis.Redis.from_url). + +## `REDIS_KEY_PREFIX` + +!!! info "Available in API Server version 0.1.9+" + This environment variable is supported in API Server version 0.1.9 and above. + +Specify a prefix for Redis keys. This allows multiple LangGraph Server instances to share the same Redis instance by using different key prefixes. + +Defaults to `''`. From f94eeabebde25cb290a26c215428fa1bd4b1242d Mon Sep 17 00:00:00 2001 From: David Asamu Date: Thu, 17 Apr 2025 23:20:53 +0100 Subject: [PATCH 2/3] add doc for REDIS_CLUSTER env var --- docs/docs/cloud/reference/env_var.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/docs/cloud/reference/env_var.md b/docs/docs/cloud/reference/env_var.md index e82778248..099ee8b9d 100644 --- a/docs/docs/cloud/reference/env_var.md +++ b/docs/docs/cloud/reference/env_var.md @@ -98,3 +98,12 @@ Specify `REDIS_URI_CUSTOM` to use a custom Redis instance. The value of `REDIS_U Specify a prefix for Redis keys. This allows multiple LangGraph Server instances to share the same Redis instance by using different key prefixes. Defaults to `''`. + +## `REDIS_CLUSTER` + +!!! info "Only for Self-Hosted Data Plane and Self-Hosted Control Plane" + Redis Cluster mode is only available for [Self-Hosted Data Plane](../../concepts/langgraph_self_hosted_data_plane.md) and [Self-Hosted Control Plane](../../concepts/langgraph_self_hosted_control_plane.md) deployments. + +Set `REDIS_CLUSTER` to `True` to enable Redis Cluster mode. When enabled, the system will connect to Redis using cluster mode. This is useful when connecting to a Redis Cluster deployment. + +Defaults to `False`. From 24f04fba3700b0b6f22d237807268b9dc68f112d Mon Sep 17 00:00:00 2001 From: Asamu David Date: Wed, 23 Apr 2025 15:52:07 +0100 Subject: [PATCH 3/3] Update REDIS_CLUSTER env doc.md --- docs/docs/cloud/reference/env_var.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/cloud/reference/env_var.md b/docs/docs/cloud/reference/env_var.md index 099ee8b9d..47812b98b 100644 --- a/docs/docs/cloud/reference/env_var.md +++ b/docs/docs/cloud/reference/env_var.md @@ -101,8 +101,8 @@ Defaults to `''`. ## `REDIS_CLUSTER` -!!! info "Only for Self-Hosted Data Plane and Self-Hosted Control Plane" - Redis Cluster mode is only available for [Self-Hosted Data Plane](../../concepts/langgraph_self_hosted_data_plane.md) and [Self-Hosted Control Plane](../../concepts/langgraph_self_hosted_control_plane.md) deployments. +!!! info "Only Allowed in Self-Hosted Deployments" + Redis Cluster mode is only available in Self-Hosted Deployment models, LangGraph Cloud SaaS will provision a redis instance for you by default. Set `REDIS_CLUSTER` to `True` to enable Redis Cluster mode. When enabled, the system will connect to Redis using cluster mode. This is useful when connecting to a Redis Cluster deployment.