Skip to content

Enabling the IPv4 add-on FAQ

启用 IPv4 附加功能会给你的项目计算实例附加一个 IPv4 地址,同时保留现有的 IPv6 地址。DNS 记录 ref.supabase.codb.ref.supabase.co 都会更新为指向这个 IPv4 地址。

🌐 Enabling the IPv4 add-on will attach an IPv4 address to your project's compute instance, while preserving the existing IPv6 address. Both DNS records ref.supabase.co and db.ref.supabase.co will be updated to point to the IPv4 address.

启用 IPv4 附加组件时,大约会有多长时间的停机? #

🌐 How much downtime can be expected when enabling the IPv4 add-on?

启用 IPv4 附加功能不会导致任何停机,因为现有连接不会被断开。新的入站连接(包括端口 5432 和 6543 的直接连接,以及 PostgREST 请求)将使用新分配的 IPv4 地址。

🌐 Enabling the IPv4 add-on will not cause any downtime since existing connections will not be dropped. New inbound connections (both direct connections on ports 5432 and 6543, as well as PostgREST requests) will use the newly allocated IPv4 address.

这个项目实例会被重启吗? #

🌐 Will the project instance be restarted?

不,IPv4 插件不需要重启实例。

🌐 No, the IPv4 add-on will not require a restart of the instance.

IPv6 地址会改变吗? #

🌐 Will IPv6 address change?

IPv6 地址将会保留。新的入站连接(包括端口 5432 和 6543 的直接连接,以及 PostgREST 请求)将使用新分配的 IPv4 地址。

🌐 The IPv6 address will be preserved. New inbound connections (both direct connections on ports 5432 and 6543, as well as PostgREST requests) will use the newly allocated IPv4 address.

现有的连接会被中断吗? #

🌐 Will existing connections be dropped?

DNS 的更改不会影响已经建立的连接,只有新的连接才会解析更新后的记录。对于 db.ref.supabase.co(即通过端口 5432 和 6543 的数据库连接),现有的 AAAA 记录将更新为指向 IPv4 地址的 A 记录。这本质上是对 db.ref.supabase.co 的值和记录类型进行就地更新,外部表现为删除 AAAA 记录并创建 A 记录,从而避免出现某一时刻没有可用记录的情况。

🌐 DNS changes do not affect already-established connections, and only new connections will resolve the updated record. For db.ref.supabase.co (i.e database connections through ports 5432 and 6543), the existing AAAA record will be updated to an A record pointing to the IPv4 address. This is essentially an in-place update for db.ref.supabase.co's value and record type which would externally translate to an AAAA removal and an A record creation, which mitigates against split moments in time where no record would be available.

是不是新 IPv4 地址在 DNS 更新之前不能连接? #

🌐 Is it the case that the new IPv4 address cannot be connected until DNS is updated?

客户只有在 DNS 传播完成后才会使用新的 IPv4 地址;在此之前,IPv6 仍然可以解析并维持连接。

🌐 Clients will use the new IPv4 address only after DNS propagation; until then, IPv6 continues to resolve and work for connectivity.

移除 IPv4 插件 #

🌐 Removing the IPv4 add-on

移除 IPv4 插件确实会导致数据库连接在不到一分钟的时间内出现“停机”,因为客户端之前已经解析了现在指向未分配 IP 地址的 A 记录,需要等待 DNS 传播完成才能使用 AAAA 记录。

🌐 Removing the IPv4 add-on does tend to result in 'downtime' at a sub-minute time interval for database connections, given clients would've resolved the A record which now points to an unassigned IP address, and would need to wait for DNS propagation to go through in order for the AAAA record to be available