When self-hosting the Superblocks data plane, Superblocks database integrations support connection pooling. That is, when a backend API using a database integration is executed, the agent caches the connection so that subsequent queries can reuse it, instead of establishing a new connection. The default connection pool settings can be adjusted with the following environment variables.Documentation Index
Fetch the complete documentation index at: https://docs.superblocks.com/llms.txt
Use this file to discover all available pages before exploring further.
Connection pool variables
| Environment Variable | Description | Default |
|---|---|---|
SUPERBLOCKS_CONNECTION_CACHE_TTL_MS_DEFAULT | Time connections remain open / idle in the pool (setting this to 0 disables connection pooling) | 60000 ms |
SUPERBLOCKS_CONNECTION_CACHE_MAX_CONNECTIONS_PER_DATASOURCE | Max pool size for a given DB integration | 5 |
SUPERBLOCKS_CONNECTION_CACHE_MAX_CONCURRENT_CONNECTIONS | Max pool size across all integrations | 1000 |

