deploy.addons:
squid.yaml
14, 15, 16, 17, and 18. The current default is Postgres 18.
Connection variables
Cloud injects these variables into theinit, processor, and api services:
DB_SSLDB_HOSTDB_PORTDB_NAMEDB_USERDB_PASSDB_URL
DB_URL or the individual injected fields rather than defining its own production database credentials.
Database configuration
Timeouts accept an integer number of milliseconds or a value ending in
us, ms, s, min, h, or d.
Direct access
Open the deployment’s DB access tab in the Cloud app to obtain a connection string forpsql, a migration tool, or an external service.
Limit external connections in the manifest:
max_connections accepts 0 through 100; plan-level limits may also apply. Use a small application pool and release connections promptly. Every named processor, API replica, and background job consumes database connections.
Compute and storage
small, medium, large, xlarge, and 2xlarge. See Pricing details for current allocations and rates.
Storage values use G, Gi, T, or Ti. The default is 10Gi.
For tables that repeatedly update the same rows, follow Update-heavy tables. For historical schema work, follow Schema changes and backfills.
Transactions and background work
The Squid SDK processor normally writes each batch in a transaction. Do not run long, wall-clock-scheduled aggregates inside that transaction. Use a separate background processor service with:- its own database pool;
- an explicit isolation level;
- a statement timeout;
- overlap protection;
- Prometheus metrics.
Complete example
squid.yaml