Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roadmap: add TiKV 2024 roadmap #16924

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

zhangjinpeng87
Copy link
Member

@zhangjinpeng87 zhangjinpeng87 commented Apr 25, 2024

What is changed and how it works?

Issue Number: Close #16923

What's Changed: added TiKV 2024 updated roadmap, the major investing directions are:

  • Stable and predictable performance and latency under different scenarios like too many mvcc version, disk IO jitter, hot read, etc.
  • Comprehensive memory management, introduce component memory usage monitoring, limit the memory quota of coprocessor, etc.
  • Powerful and robust RocksDB and Titan engine.
  • Better observability to empower issues locating efficiency.
  • Better local test mechanism to improve developer experience and efficiency.

Notice: this PR will be public for at least 7 days for reviewing and updating.

None

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Release note

None

Signed-off-by: zhangjinpeng87 <zzzhangjinpeng@gmail.com>
Copy link
Contributor

ti-chi-bot bot commented Apr 25, 2024

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

Signed-off-by: zhangjinpeng87 <zzzhangjinpeng@gmail.com>
Signed-off-by: zhangjinpeng87 <zzzhangjinpeng@gmail.com>
doc/roadmap-2024.md Outdated Show resolved Hide resolved
Signed-off-by: zhangjinpeng87 <zzzhangjinpeng@gmail.com>
@zhangjinpeng87
Copy link
Member Author

@easonn7 This PR will be public for at least 7 days for reviewing and updating.

doc/roadmap-2024.md Outdated Show resolved Hide resolved
doc/roadmap-2024.md Outdated Show resolved Hide resolved
Copy link
Contributor

@hbisheng hbisheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggested some minor edits to improve readability

README.md Outdated Show resolved Hide resolved
doc/roadmap-2024.md Outdated Show resolved Hide resolved
doc/roadmap-2024.md Outdated Show resolved Hide resolved
doc/roadmap-2024.md Outdated Show resolved Hide resolved
doc/roadmap-2024.md Outdated Show resolved Hide resolved
zhangjinpeng87 and others added 7 commits April 25, 2024 18:50
Co-authored-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>
Co-authored-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>
Co-authored-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>
Co-authored-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>
Co-authored-by: Bisheng Huang <hbisheng@gmail.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>
Signed-off-by: zhangjinpeng87 <zzzhangjinpeng@gmail.com>

### RocksDB Engine

Newer version RocksDB introduced some promising features like "WAL compression support" and "async-io", we are going to upgrade TiKV's RocksDB to 8.10 version and leverage these powerful features.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also explore using async rocksdb API which integrates better with TiKV's read pool.

doc/roadmap-2024.md Outdated Show resolved Hide resolved
zhangjinpeng87 and others added 3 commits May 7, 2024 09:51
Co-authored-by: glorv <glorvs@163.com>
Signed-off-by: Jinpeng Zhang <zzzhangjinpeng@gmail.com>

TiKV has some soft limits for different components' memory usage like scheduler, raftstore, but there are still some components like coprocessor don't have memory quota limit. In the coprocessor, we use the amount of pending queries to throttle the resources usage of coprocessor, but this still can result in Out-Of-Memory(OOM) when there are too many "BIG" queries which retrieve a large amount of data.

## Powerful and Robust Storage Engine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be add experimenting with using io_uring based https://github.com/bytedance/monoio to replace sync IO for raft engine.


This domain aims to enhance TiKV to provide predictable single-digit millisecond latency under different scenarios like too many MVCC versions, disk IO temporarily jitter, high read QPS in a small data range, etc.

### In-Memory Engine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to add a comment about other uses for in-memory usage?

@BusyJay
Copy link
Member

BusyJay commented May 21, 2024

Is current performance good enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TiKV 2024 roadmap
9 participants