Skip to content

Open source alternative to Semrush and Ahrefs

Increase production Hyperdrive connection pool to 30 (#930)

Ben Senescu69cdc93c2f31
diff --git a/deploy/alchemy/alchemy.run.ts b/deploy/alchemy/alchemy.run.ts
index 376e67bd..6e3f80f2 100644
--- a/deploy/alchemy/alchemy.run.ts
+++ b/deploy/alchemy/alchemy.run.ts
@@ -148,6 +148,8 @@ const makeHyperdrive = () =>
// Prod runs with Hyperdrive caching OFF (no write invalidation for a SaaS
// with per-user reads-after-writes).
caching: { disabled: true },
+ // Raise Postgres max_connections to 100 before deploying this pool limit.
+ originConnectionLimit: 30,
}).pipe(Alchemy.RemovalPolicy.retain());
const optionalVar = (name: string) =>