tikv / tikv/pd

distribution skew of primary election in keyspace group

Open
#10,031 1 comment 0 reactions 0 assignees View on GitHub
contribution first-time-contributor type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Enhancement Task
We have a very important goal in developing the keyspace group, which is to save resources and control the failure radius of a single TSO. Each KG independently selects its primary TSO. In the current implementation, the distribution of KGs is uniform (handled by the balancer), but the primary election functionality still relies on lock contention among TSOs. As a result, the distribution of primaries between two TSO servers can be quite random. In extreme cases, such as during a TSO server upgrade, it's possible for all primaries to end up on a single TSO server. This would significantly diminish the effectiveness of the keyspace group.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.