← All projects
Project record2 mentions
Originally shared on Hacker News

Egres

Egres is a Postgres-compatible database designed to tackle heavy workloads and run thousands of tenants on the same server, working with psql and drivers unchanged. It is built on the zdb storage engine (an LSM forest of LSM trees that runs on local disk or object storage, with native roaring bitmaps integration and instant zero-copy branches for database or table) and a custom co-routine system called zfiber. Egres meters CPU ticks, disk IOPS and memory used per query and per tenant to avoid the noisy neighbor problem. The initial release is single node with equality-only queries (no joins) and Raft replication baked in, and it is open source under Apache 2.0.

Last shared
01 / The problem

What it addresses

Running thousands of tenants on the same server for heavy, multi-tenant workloads leads to noisy neighbor problems.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Egres

    Egres is a Postgres-compatible database designed to tackle heavy workloads and run thousands of tenants on the same server, working with psql and drivers unchanged. It is built on the zdb storage engine (an LSM forest of LSM trees that runs on local disk or object storage, with native roaring bitmaps integration and instant zero-copy branches for database or table) and a custom co-routine system called zfiber. Egres meters CPU ticks, disk IOPS and memory used per query and per tenant to avoid the noisy neighbor problem. The initial release is single node with equality-only queries (no joins) and Raft replication baked in, and it is open source under Apache 2.0.

    Problem: Running thousands of tenants on the same server for heavy, multi-tenant workloads leads to noisy neighbor problems.

    Posted by @mrjn · Original source ↗

    Story title · @mrjn · · Source ↗

    Show HN: Egres, A Postgres-compatible database for heavy, multi-tenant workloads

    Submitted URL · @mrjn · · Source ↗

    https://manishrjain.com/egres/

    Source text · @mrjn · · Source ↗

    Author here. Egres is a Postgres-compatible database designed to tackle heavy workloads and run thousands of tenants on the same server. It works with psql and drivers unchanged.

    Source text · @mrjn · · Source ↗

    For Egres, I built a new storage engine called zdb, which is pioneering LSM forest concept -- a tree of LSM trees. zdb can run on local disk or object storage, has native roaring bitmaps integration, can do instant zero-copy branches for database or table.

    Source text · @mrjn · · Source ↗

    All of this runs on a custom co-routine system I built called zfiber, so all queries execute on that. Egres meters CPU ticks, disk IOPS and memory used per query, per tenant, so it can run thousands of tenants on the same server without noisy neighbor problem.

    Source text · @mrjn · · Source ↗

    This release is single node and the query ability is limited to equality (no joins) queries only. Raft replication is already baked in, future releases would allow multi-node clusters.

    Source text · @mrjn · · Source ↗

    Egres is open source under Apache 2.0, the GitHub repo is here: https://github.com/manishrjain/egres.

    Source text · @mrjn · · Source ↗

    Before Egres, I was the founder of Dgraph -- author of Dgraph and Badger. ex-Google, ex-Uber. So, been working on databases for a while now.
  2. Egres

    Egres is a Postgres-compatible database for heavy, multi-tenant workloads, designed to run thousands of tenants on a single server while metering CPU ticks, disk IOPS, and memory per query and per tenant to avoid the noisy-neighbor problem. It works with psql and existing drivers unchanged, though query capabilities are currently limited. It is built on the custom zdb storage engine (an LSM-forest design that runs on local disk or object storage, with native roaring bitmaps and instant zero-copy branches) running on the zfiber co-routine system, and this single-node release has Raft replication baked in, with multi-node clusters planned for future releases.

    Problem: Running thousands of tenants on the same server without the noisy-neighbor problem, for heavy multi-tenant workloads.

    Posted by @mrjn · Original source ↗

    Story title · @mrjn · · Source ↗

    Show HN: Egres: A Postgres-compatible database for heavy, multi-tenant workloads

    Submitted URL · @mrjn · · Source ↗

    https://manishrjain.com/egres/

    Source text · @mrjn · · Source ↗

    Egres is a Postgres-compatible database designed to tackle heavy workloads and run thousands of tenants on the same server. It works with psql and drivers unchanged.

    Source text · @mrjn · · Source ↗

    For Egres, I wrote a new storage engine called zdb, which is pioneering LSM forest concept -- a tree of LSM trees. zdb can run on local disk or object storage, has native roaring bitmaps integration, can do instant zero-copy branches for database or table.

    Source text · @mrjn · · Source ↗

    All of this runs on a custom co-routine system I wrote called zfiber, so all queries execute on that.

    Source text · @mrjn · · Source ↗

    Egres meters CPU ticks, disk IOPS and memory used per query, per tenant, so it can run thousands of tenants on the same server without noisy neighbor problem.

    Source text · @mrjn · · Source ↗

    This release is single node, but Raft replication is already baked in. Future releases would allow multi-node clusters.

    Source text · @mrjn · · Source ↗

    Install: curl -fsSL https://egresql.io/install.sh | sh.

    Source text · @mrjn · · Source ↗

    Repo: https://github.com/manishrjain/egres.