tikv / tikv/client-go

Too many goroutines in commit phase affect performance

Open
#342 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
362
Forks
274
Avg merge
4d 19m
Merged PRs (30d)
12

Description

@BusyJay found too many goroutines in commit phase affect performance a lot. The committer-concurrency is 1024. The region size on left side is smaller than right side.
image
It's not an apple to apple comparison, because larger region results in larger requests and batch, but the throughput of TiKV is the same.
image

Disregarding TiKV, too many goroutines affects GC, schedule of TSO goroutine and so on. We can improve it.
image
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by profiling the commit phase and tracing the committer-concurrency setting, then compare goroutine, GC, scheduling, and throughput behavior; done means reducing unnecessary goroutine impact without harming throughput.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.