Move data without moving the app.
The shard map is signed and versioned by epoch. Key ranges move and split online with the rdb-shard tool, and the map change reaches the gateway and the shards without a restart.
Sharding and the gateway shipped in 1.1.0: every release server can run as a shard, and the gateway has release archives of its own. Not built yet: backup and restore of a whole cluster at one point, commit timestamps from a hybrid logical clock, and splitting a shard by cloning it.
The map
- A signed shard map with epochs: a shard refuses an older map
- Fetched from a shard at gateway start, or read from a file
- Misrouted writes refused by the shard, then retried by the gateway
Moves and splits
A hot range splits in two by an online move; a range moves to another shard while it keeps serving, and the gateway retries what a move refuses in flight. Reference tables are declared once and copied everywhere.
rdb-shard show --map cluster.map rdb-shard rebalance --plan rdb-shard ddl "SHARD REFERENCE TABLE countries"
Seeing the whole cluster
- Cluster-wide SHOW DATABASE STATS and TABLE STATS
- A configuration API with a bearer token
- rdb_studio's SHARDS screen: the map, the shards, and a rebalance run from the console
- Roles created once and known on every shard
- Small global tables copied to every shard, so a join with them stays local
Not built yet
Backup and restore of a whole cluster at one point, commit timestamps from a hybrid logical clock, lease reads, splitting a shard by cloning it, and per-tenant disk quotas. A fix for gateway routes that go stale after a shard's schema changes is in progress. The What's new page keeps this list.