Server infrastructure
In addition to the Agent Server itself, the following infrastructure components for each server are also included in the broad definition of “data plane”:- PostgreSQL: persistence layer for user, run, and memory data.
- Redis: communication and ephemeral metadata for workers.
- Secrets store: secure management of environment secrets.
- Autoscalers: scale server containers based on load.
Listener application
The data plane listener application periodically calls control plane APIs to:- Determine if new deployments should be created.
- Determine if existing deployments should be updated (i.e. new revisions).
- Determine if existing deployments should be deleted.
PostgreSQL
PostgreSQL stores server resources (threads, runs, assistants, crons) and items saved in the long-term memory store. It is also the default backend for checkpoints (graph execution state). You can optionally store checkpoints in MongoDB instead—see Configure checkpointer backend. PostgreSQL is always required regardless of the checkpointer backend.Redis
Redis is used in each Agent Server as a way for server and queue workers to communicate, and to store ephemeral metadata. No user or run data is stored in Redis.Communication
All runs in an Agent Server are executed by a pool of background workers that are part of each deployment. In order to enable some features for those runs (such as cancellation and output streaming) we need a channel for two-way communication between the server and the worker handling a particular run. We use Redis to organize that communication.- A Redis list is used as a mechanism to wake up a worker as soon as a new run is created. Only a sentinel value is stored in this list, no actual run information. The run information is then retrieved from PostgreSQL by the worker.
- A combination of a Redis string and Redis PubSub channel is used for the server to communicate a run cancellation request to the appropriate worker.
- A Redis PubSub channel is used by the worker to broadcast streaming output from an agent while the run is being handled. Any open
/streamrequest in the server will subscribe to that channel and forward any events to the response as they arrive. No events are stored in Redis at any time.
Ephemeral metadata
Runs in an Agent Server may be retried for specific failures (currently only for transient PostgreSQL errors encountered during the run). In order to limit the number of retries (currently limited to 3 attempts per run) we record the attempt number in a Redis string when it is picked up. This contains no run-specific info other than its ID, and expires after a short delay.Data plane features
This section describes various features of the data plane. For platform-specific behavior, see Cloud platform features or Deploy to self-hosted.Autoscaling
Dedicated type deployments automatically scale across containers. Scaling is based on 3 metrics:- CPU utilization
- Memory utilization
- Number of pending (in progress) runs
queue_cpu_limit for queue workers and cpu_limit for API servers. The CPU request does not affect the target. For example, queue_cpu: 0.3 with queue_cpu_limit: 1.8 gives queue workers a target of 900m per pod.
To lower a CPU request without changing when the deployment scales, send both the request and the limit in the resource_spec. If you omit the limit, it defaults to 2x the request, so lowering the request also lowers the scaling target. See Resource spec.
Scale down actions are delayed for 30 minutes before any action is taken. In other words, if the autoscaler decides to scale down a deployment, it will first wait for 30 minutes before scaling down. After 30 minutes, the metrics are recomputed and the deployment will scale down if the recomputed metrics result in a lower number of containers than the current number. Otherwise, the deployment remains scaled up. This “cool down” period ensures that deployments do not scale up and down too frequently.
MongoDB checkpointing
Available for Cloud (with an externally managed MongoDB instance) and Standalone deployments.
LangSmith tracing
Agent Server is automatically configured to send traces to LangSmith. See the table below for details with respect to each deployment option.Telemetry
Agent Server is automatically configured to report telemetry metadata for billing purposes. See the table below for details with respect to each deployment option.Licensing
Agent Server is automatically configured to perform license key validation. See the table below for details with respect to each deployment option.Connect these docs to your agent of choice via MCP for real-time answers.

