The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: update Supavisor pooler limits (#22313)
Wen Bo Xie36ec375cd240
diff --git a/apps/docs/content/guides/platform/compute-add-ons.mdx b/apps/docs/content/guides/platform/compute-add-ons.mdxindex d48fc8eb67d..a8a2e3ad4e6 100644--- a/apps/docs/content/guides/platform/compute-add-ons.mdx+++ b/apps/docs/content/guides/platform/compute-add-ons.mdx@@ -16,14 +16,14 @@ Free plan resources subject to changes.| ----------- | ---------------- | ----------------- | ----------------------- | ------------ | ------------------- | ------------------- | --------------------------- || Nano (free) | $0 | $0 | Shared | Up to 0.5 GB | 60 | 200 | 500MB || Micro | $0.01344 | ~$10 | 2-core ARM (shared) | 1 GB | 60 | 200 | 10GB |-| Small | $0.0206 | ~$15 | 2-core ARM (shared) | 2 GB | 90 | 200 | 50GB |-| Medium | $0.0822 | ~$60 | 2-core ARM (shared) | 4 GB | 120 | 200 | 100GB |-| Large | $0.1517 | ~$110 | 2-core ARM (dedicated) | 8 GB | 160 | 300 | 200GB |-| XL | $0.2877 | ~$210 | 4-core ARM (dedicated) | 16 GB | 240 | 700 | 500GB |-| 2XL | $0.562 | ~$410 | 8-core ARM (dedicated) | 32 GB | 380 | 1500 | 1TB |-| 4XL | $1.32 | ~$960 | 16-core ARM (dedicated) | 64 GB | 480 | 3000 | 2TB |-| 8XL | $2.562 | ~$1,870 | 32-core ARM (dedicated) | 128 GB | 490 | 6000 | 4TB |-| 12XL | $3.836 | ~$2,800 | 48-core ARM (dedicated) | 192 GB | 500 | 9000 | 6TB |+| Small | $0.0206 | ~$15 | 2-core ARM (shared) | 2 GB | 90 | 400 | 50GB |+| Medium | $0.0822 | ~$60 | 2-core ARM (shared) | 4 GB | 120 | 600 | 100GB |+| Large | $0.1517 | ~$110 | 2-core ARM (dedicated) | 8 GB | 160 | 800 | 200GB |+| XL | $0.2877 | ~$210 | 4-core ARM (dedicated) | 16 GB | 240 | 1,000 | 500GB |+| 2XL | $0.562 | ~$410 | 8-core ARM (dedicated) | 32 GB | 380 | 1,500 | 1TB |+| 4XL | $1.32 | ~$960 | 16-core ARM (dedicated) | 64 GB | 480 | 3,000 | 2TB |+| 8XL | $2.562 | ~$1,870 | 32-core ARM (dedicated) | 128 GB | 490 | 6,000 | 4TB |+| 12XL | $3.836 | ~$2,800 | 48-core ARM (dedicated) | 192 GB | 500 | 9,000 | 6TB || 16XL | $5.12 | ~$3,730 | 64-core ARM (dedicated) | 256 GB | 500 | 12,000 | 10TB |Number of connections above are recommended values.diff --git a/apps/docs/content/guides/platform/performance.mdx b/apps/docs/content/guides/platform/performance.mdxindex 59c3c15e2f9..a08e5d5b619 100644--- a/apps/docs/content/guides/platform/performance.mdx+++ b/apps/docs/content/guides/platform/performance.mdx@@ -175,21 +175,7 @@ You can pair the information available from `pg_stat_statements` with the detail## Optimizing the number of connections-By default, the number of connections allowed to Postgres and Supavisor is configured based on the resources available to the database.--| Compute Add-on | Postgresql connections | Supavisor connections |-| -------------- | ---------------------- | --------------------- |-| Nano (free) | 60 | 200 |-| Micro | 60 | 200 |-| Small | 90 | 200 |-| Medium | 120 | 200 |-| Large | 160 | 300 |-| XL | 240 | 700 |-| 2XL | 380 | 1500 |-| 4XL | 480 | 3000 |-| 8XL | 490 | 6000 |-| 12XL | 500 | 9000 |-| 16XL | 500 | 12000 |+The default connection limits for Postgres and Supavisor is based on your compute size. See the default connection numbers in the [Compute Add-ons](/docs/guides/platform/compute-add-ons) section.If the number of connections is insufficient, you will receive the following error upon connecting to the DB:diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.tsindex 0c526a04bb3..6b6e15d41bb 100644--- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts+++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.constants.ts@@ -11,19 +11,19 @@ export const POOLING_OPTIMIZATIONS = {poolSize: 15,},ci_small: {- maxClientConn: 200,+ maxClientConn: 400,poolSize: 15,},ci_medium: {- maxClientConn: 200,+ maxClientConn: 600,poolSize: 15,},ci_large: {- maxClientConn: 300,- poolSize: 15,+ maxClientConn: 800,+ poolSize: 20,},ci_xlarge: {- maxClientConn: 700,+ maxClientConn: 1000,poolSize: 20,},ci_2xlarge: {diff --git a/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx b/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdxindex 04d487edb73..a3687d25628 100644--- a/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx+++ b/apps/www/_blog/2023-12-13-supavisor-postgres-connection-pooler.mdx@@ -87,18 +87,18 @@ For the Supavisor rollout, we maintained consistent pooling settings between PgBNow, we're raising the client connection limit for smaller projects in Supavisor. Here are the updated default configurations:-| Database Size | default_pool_size | max_connections | default_max_clients |-| ------------- | ----------------- | --------------- | --------------------- |-| micro | 15 | 60 | 200 |-| small | 15 | 90 | 1000 (previously 200) |-| medium | 15 | 120 | 1000 (previously 200) |-| large | 15 | 160 | 1000 (previously 300) |-| xl | 20 | 240 | 1000 (previously 700) |-| 2xl | 25 | 380 | 1500 |-| 4xl | 32 | 480 | 3000 |-| 8xl | 64 | 490 | 6000 |-| 12xl | 96 | 500 | 9000 |-| 16xl | 128 | 500 | 12000 |+| Database Size | default_pool_size | max_connections | default_max_clients |+| ------------- | ----------------- | --------------- | ---------------------- |+| Micro | 15 | 60 | 200 |+| Small | 15 | 90 | 400 (previously 200) |+| Medium | 15 | 120 | 600 (previously 200) |+| Large | 20 | 160 | 800 (previously 300) |+| XL | 20 | 240 | 1,000 (previously 700) |+| 2XL | 25 | 380 | 1,500 |+| 4XL | 32 | 480 | 3,000 |+| 8XL | 64 | 490 | 6,000 |+| 12XL | 96 | 500 | 9,000 |+| 16XL | 128 | 500 | 12,000 |In this table:diff --git a/apps/www/data/PricingAddOnTable.json b/apps/www/data/PricingAddOnTable.jsonindex 4f46142da70..46c5da32861 100644--- a/apps/www/data/PricingAddOnTable.json+++ b/apps/www/data/PricingAddOnTable.json@@ -42,7 +42,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "200"+ "value": "400"}]},@@ -61,7 +61,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "200"+ "value": "600"}]},@@ -80,7 +80,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "300"+ "value": "800"}]},@@ -99,7 +99,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "700"+ "value": "1,000"}]},@@ -118,7 +118,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "1500"+ "value": "1,500"}]},@@ -137,7 +137,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "3000"+ "value": "3,000"}]},@@ -156,7 +156,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "6000"+ "value": "6,000"}]},@@ -175,7 +175,7 @@{"key": "poolerConnections","title": "Connections: Pooler (recommended)",- "value": "9000"+ "value": "9,000"}]},