apple / apple/foundationdb

Add command to manually split a shard

Open
#3,554 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
1.6k
Avg merge
1d 20h
Merged PRs (30d)
126

Description

Because data distribution does not currently take into account read load, we could end up with a small read-hot key range that is never split into multiple shards. If we could manually insert a shard boundary through the management API, we could split these key ranges across multiple shards, even if the created shards are smaller than `MIN_SHARD_BYTES`.

Contributor guide

Open the contributing guide

Research direction

Start with the management API and the existing shard-splitting behavior, paying attention to the MIN_SHARD_BYTES constraint. Determine how a manually inserted shard boundary should be represented and validated; done means read-hot key ranges can be split through the API even when the resulting shards are smaller than MIN_SHARD_BYTES.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.