Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 4 min read Announcement easyNovice

Multigres private alpha: automatic failover for Supabase Postgres

Multigres, an open source Postgres cluster manager from the Vitess team, is now in private alpha on Supabase, running Postgres on three nodes across availability zones with automatic failover and built-in connection pooling behind a single connection string. Failover is treated as a consensus problem layered on Postgres synchronous replication: writes are acknowledged only once replicated enough to survive a failure, and surviving nodes agree on the committed set before promoting a replica, so acknowledged commits aren't lost. The pooler tracks session state per query instead of requiring a PgBouncer-style mode, uses per-user pools with fair-share allocation, and deduplicates prepared statements. The alpha is free for up to two projects on paid plans but lacks Realtime, PITR, resizing, and multi-region support, and is not for production.

Assumes: Postgres replication basicsconnection pooling

Related posts

  • Multigres v0.1 Alpha: an operating system for Postgres

    Supabase easyNovice

    Multigres v0.1 alpha is an open-source management layer for Postgres. It aims to bring Vitess-style sharding, connection pooling, automatic failover and backup orchestration to Postgres, and this first release ships a single-shard cluster with HA, pooling and a Kubernetes operator. HA uses a generalized-consensus protocol over unmodified Postgres replication, with user-defined durability policies that are not tied to majority quorums. Pooling is split into a multigateway and a multipooler that parse queries to pool by connection state, keep a separate pool per user, and deduplicate prepared statements. Backups use pgBackRest taken from replicas; sharding is not included yet, the CR API is unstable, and the release is not production-ready.

  • Scale without limits: Multigres, OrioleDB, and dbarena

    Supabase easyNovice

    Supabase launched three Postgres scaling efforts. Multigres, from the Vitess team, adds built-in connection pooling and automated failover across three availability-zone nodes, using a consensus protocol over synchronous replication so no committed write is lost. It is in private alpha. OrioleDB, in public beta, is a storage engine that replaces heap storage with a page-level undo log, removing bloat and the need for VACUUM, and uses 64-bit transaction IDs to avoid wraparound; it reports up to 1.8x heap throughput on TPC-C-derived benchmarks and can be chosen per table with USING orioledb. dbarena publishes reproducible, cost-normalized benchmarks comparing Supabase, RDS and Cloud SQL.

  • Supavisor 1.0: a scalable connection pooler for Postgres

    Supabase mediumAdept

    Supavisor 1.0, Supabase's Elixir-based Postgres connection pooler, is production-ready and adds query load balancing, named prepared statement support in transaction mode, and query cancelation. All SQL is now parsed via pg_query.rs through Rustler. Reads are randomly spread across primary and replicas, while writes find the primary by probing until a write succeeds, which adds a few milliseconds but makes failover transparent. PREPARE statements are broadcast to all backend connections, trading some memory for throughput. The release also raises default client limits for smaller projects and uses IPv4-to-IPv6 mediation to avoid AWS IPv4 charges.

  • Supavisor: Scaling Postgres to 1 Million Connections

    Supabase mediumAdept

    Supavisor is a multi-tenant Postgres connection pooler written in Elixir that Supabase built to replace single-threaded PgBouncer. In benchmarks one 16-core instance held 250,000 client connections over a 400-connection database pool, and a 64-core instance held 500,000. Two 64-core nodes, one connected to the database and one relaying through it, held 1,003,200 connections at 20,000 QPS. Median query latency was under 2ms at 5,000 QPS, but running the pooler as a separate cluster adds about 2ms per query compared with co-located PgBouncer, in exchange for not consuming the database server's CPU and RAM.

  • Fly Postgres, managed by Supabase

    Supabase easyNovice

    Supabase and Fly.io launched Fly Postgres, a managed Postgres running on Fly Machines (Firecracker VMs) with Supabase features like Supavisor pooling, pgvector, PITR, branching and auto-generated REST/GraphQL APIs; the offering has since been deprecated. Under the hood, Supabase packages all its services into a single All In One Docker image built from its Packer pipeline. Because Fly volumes lack network-attached storage, they are treated as ephemeral, with WAL-G continuously streaming WAL to S3 for recovery onto new hosts. Open issues include client IPs being masked by the Fly proxy, which breaks network restrictions, and inter-cloud bandwidth costs from backing up to AWS.

The quest for software engineering knowledge.

Look:
Layout: