Skip to content

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

Multi-tenancy Remove topic Multi-tenancy Clear all 1 posts RSS

Sunday, Sep 27

PlanetScale

Handling hot shards

Opinion 7 min +70 XP

When a shard key like tenant_id stops matching reality because a few whale tenants dominate load or cross-tenant queries appear, Neki (PlanetScale's sharded Postgres from the Vitess maintainers) offers three escalating fixes: vertically scale the hot shard with its own configuration profile, isolate the whale by narrowing hashed key ranges in the declarative data topology, or reshard specific tables by a better key.

The quest for software engineering knowledge.

Look:
Layout: