tikv / tikv/pd

Speed up tso service discovery

Open
#6,376 0 comments 0 reactions 1 assignee Claimed by @binshi-bing View on GitHub
component/mcs type/development
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Development Task
Issue Number: Ref https://github.com/tikv/pd/issues/5895

Currently, the pd client follows the path "discovers api leader->asks api leader for tso nodes->asks tso nodes in round-robin to find the primary of the keyspace group of the keyspace that the client belongs to", which is slower than before. The reason of the last part "asks tso nodes in round-robin ..." is that a tso node only knows the participants on the node and doesn't know the other participants. We need to let every tso node watch primaries of all keyspace group to get global picture, which will speed up both service discovery and getMembers API.

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.