Skip to main content

MongoDB

MongoDB for state storage and document persistence.

Installation

Docker Setup

Quick Start

Connection String Format

Tuning the connection

For the sync mongodb state store, any pymongo URI query option overrides the SDK’s default. Common examples:
  • ?retryWrites=false — standalone MongoDB (no replica set)
  • ?maxPoolSize=10 — smaller client-side connection pool
  • ?serverSelectionTimeoutMS=3000 — fail faster when MongoDB is unreachable
See MongoDB State Store → Tuning the connection for the full default table.

Environment Variables

CLI

See also