Skip to content
Database

Multigres

Horizontally scalable Postgres for high availability

Multigres 通过在多个节点上运行 Postgres 而不是单个节点,为你的项目提供高可用性,这样即使某个节点失败,读写也能继续进行。它是 Supabase 对 Multigres 的集成,一个开源项目,把 Vitess 给 MySQL 带来的分布式系统方法带到了 Postgres 上。

🌐 Multigres gives your project high availability by running Postgres across multiple nodes instead of one, so reads and writes continue if a node fails. It is Supabase's integration of Multigres, an open-source project that brings the same distributed-systems approach Vitess brought to MySQL to Postgres.

What you get#

When you enable Multigres on a project, your database runs as a small cluster instead of a single instance:

  • Automatic failover

    If a node fails, another in the cluster is promoted within seconds, without you having to intervene.
  • No connection changes

    Use the same connection string. Coordination is transparent to your application.
  • Consensus-backed durability

    Writes are acknowledged only after the cluster agrees they are durable.

请求访问 #

🌐 Requesting access

要申请访问 Multigres 私有测试版,请填写提前访问表格。

🌐 To request access to the Multigres Private Alpha, fill out the early access form.

在私测期间:

🌐 During the Private Alpha:

  • Multigres 对付费计划的组织开放。在免费计划中不可用。
  • 在 Alpha 期间,每个组织最多可以免费使用 Multigres 开发两个项目。

启用 Multigres #

🌐 Enabling Multigres

在仪表板中,创建项目时 Multigres 会显示为 高可用性:

🌐 In the Dashboard, Multigres appears as High availability during project creation:

  1. 在仪表板中打开创建新项目。
  2. 在 高可用性 下,打开 启用高可用性。
  3. 如果显示的话,完成剩下的字段,比如数据库密码、区域和计算大小。
  4. 点击 创建新项目。

如果你没有看到 高可用性,说明你的组织还没有权限。请参见 请求访问。

🌐 If you don't see High availability, your organization doesn't have access yet. See Requesting access.

Alpha版本中没有包括什么 #

🌐 What's not included in the alpha

一些 Supabase 功能和项目操作在基于 Multigres 的项目上尚不可用:

🌐 Some Supabase features and project operations aren't yet available on Multigres-backed projects:

  • 实时。 Multigres 还不支持 Realtime 所依赖的逻辑复制,因此 Realtime 暂不可用。
  • 时间点恢复。 目前只有标准的每日备份可用。
  • 跨区域只读副本。 在 Alpha 阶段,Multigres 项目只在单一区域运行。
  • OrioleDB。 一个项目可以使用 Multigres 或 OrioleDB,但不能两者同时使用。
  • 创建后调整大小。 Multigres 项目创建后,计算大小、磁盘和副本数量不能更改。
  • 分片和自定义持久性策略。 这些在长期路线图上,但不属于 Alpha 阶段。

兼容性 #

🌐 Compatibility

Multigres 旨在与标准 Postgres 完全兼容,但有一些差异需要注意。详情请参见 Multigres 兼容性 。

🌐 Multigres aims for full compatibility with standard Postgres, but there are some differences to be aware of. See Multigres compatibility for details.

资源 #

🌐 Resources

Multigres 文档 — 包含架构、自托管部署以及其他技术细节,比本页涉及的托管 Supabase 集成内容更深入。