The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add a note on interaction between IPv4 addon and RRs (#22848)
Div Arora1c2c2f99dc99
diff --git a/apps/docs/content/guides/platform/ipv4-address.mdx b/apps/docs/content/guides/platform/ipv4-address.mdxindex 5d5c1038df8..8301bacbf96 100644--- a/apps/docs/content/guides/platform/ipv4-address.mdx+++ b/apps/docs/content/guides/platform/ipv4-address.mdx@@ -31,6 +31,12 @@ You can enable the IPv4 add-on in your project [add-on settings](https://supabasGenerally, this should be less than a minute.</Admonition>+## Read Replicas++When the IPv4 add-on is enabled, an IPv4 address is provisioned for each database in your project.++By default, this is only the Primary database for your project. If [Read replicas](/docs/guides/platform/read-replicas) are being used, each replica also gets its own IPv4 address, with a corresponding $4 charge.+## CaveatsFor regular use-cases like a restart or compute size changes, the IPv4 address remains unchanged.diff --git a/apps/docs/content/guides/platform/read-replicas.mdx b/apps/docs/content/guides/platform/read-replicas.mdxindex f60dc4cd9fe..8814c1368f1 100644--- a/apps/docs/content/guides/platform/read-replicas.mdx+++ b/apps/docs/content/guides/platform/read-replicas.mdx@@ -76,7 +76,9 @@ Each Read Replica has its own dedicated database and API endpoints.Read Replicas only support `GET` requests and the [REST API](/docs/guides/api). Requests to other Supabase products, such as Auth, Storage, and Realtime, aren't able to use a Read Replica or its API endpoint. Support for more products will be added in the future.-## Dedicated connection pool+If you're using an [IPv4 add-on](/docs/guides/platform/ipv4-address#read-replicas), the database endpoints for your Read Replicas will also use an IPv4 add-on.++### Dedicated connection poolA connection pool through Supavisor is also available for each Read Replica. Find the connection string on the [Database Settings page](/dashboard/project/_/settings/database) under **Connection String**.diff --git a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsxindex 3d822a59e64..327a9228feb 100644--- a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx+++ b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx@@ -135,6 +135,7 @@ const IPv4SidePanel = () => {addresses. Enabling the dedicated IPv4 add-on allows you to directly connect to yourdatabase via a IPv4 address.</p>+<p className="text-sm">If you are connecting via our connection pooler, you do not need this add-on as ourpooler resolves to IPv4 addresses. You can check your connection info in your{' '}@@ -208,7 +209,9 @@ const IPv4SidePanel = () => {</p><div className="flex items-center space-x-1 mt-2"><p className="text-foreground text-sm">{formatCurrency(option.price)}</p>- <p className="text-foreground-light translate-y-[1px]"> / month</p>+ <p className="text-foreground-light translate-y-[1px]">+ / month / database+ </p></div></div></div>@@ -233,9 +236,17 @@ const IPv4SidePanel = () => {minute.</Alert><p className="text-sm text-foreground-light">- Upon clicking confirm, the amount of{' '}- <span className="text-foreground">{formatCurrency(selectedIPv4?.price)}</span>{' '}- will be added to your monthly invoice.+ By default, this is only applied to the Primary database for your project. If{' '}+ <Link+ href="/docs/guides/platform/read-replicas"+ className="text-brand"+ target="_blank"+ >+ Read replicas+ </Link>{' '}+ are used, each replica also gets its own IPv4 address, with a corresponding{' '}+ <span className="text-foreground">{formatCurrency(selectedIPv4?.price)}</span>+ charge.</p></>)}