Support binding a TiFlash node to a specific keyspace
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start by locating TiFlash startup configuration and the code that builds the proxy's --labels argument; the issue names no files or tests. Trace how store labels are reported to PD and how startup configuration is validated. Done means flash.keyspace_name is validated and, when set, reported as the keyspace label; the required client-go filter is a companion change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Enhancement
Background
With keyspace-based multi-tenancy, a single cluster hosts multiple keyspaces. TiDB instances are bound to their keyspaces, but TiFlash nodes are not: PD's GetTiFlashComputeStores returns all tiflash compute stores in the cluster regardless of keyspace, and there is no way to dedicate a TiFlash (CN) node to one keyspace.
As a result, in multi-keyspace deployments every keyspace shares every TiFlash node. One keyspace's workload can consume all TiFlash compute capacity and starve the others, and per-keyspace capacity planning is impossible.
Proposal
Introduce a config item, flash.keyspace_name, that binds a TiFlash node to a keyspace:
- When set, the node reports a
keyspace=<name>store label to PD (through the proxy's--labelsargument). The label is consumed by client-go'sGetTiFlashComputeStores, so a TiDB only dispatches MPP tasks to nodes bound to its keyspace. - Nodes without the config keep reporting no such label and remain shared by all keyspaces — fully backward compatible, existing clusters are unaffected.
- The value is validated at startup with the same rules as PD's keyspace name (
^[-A-Za-z0-9_]{1,20}$); an invalid value is a clear startup failure instead of a silently mis-registered node.
Note: this requires a companion change in client-go (KeyspaceLabelKey filter in GetTiFlashComputeStores).
Value
- Per-keyspace resource isolation for TiFlash compute: dedicated or shared compute pools per keyspace in multi-keyspace clusters.
- Zero migration cost for existing clusters.
- Ngôn ngữ chính
- C++
- Star
- 1k
- Fork
- 428
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 100
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingcap/tiflash
-
component/compute type/bug
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Out-of-bounds read in MyDateTime formatting from unvalidated packed valuesCó thể đã có người làm @ChangRui-Ryan đã nhận hôm nay. Đang mởaffects-25.10 affects-26.3 affects-26.9 affects-7.5 affects-8.1 affects-8.5 severity/major type/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
component/storage severity/moderate type/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
pingcap/tiflash#11335 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing validation in JSON constructors, LEFT expressions, and CH-block decodingCó thể đã có người làm @windtalker đã nhận hôm nay. Đang mởtype/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[disagg] Query fails with Code: 11000 NoSuchKey when S3 GC (ScanThenDelete) removes a DMFile that a compute node still readsCó thể đã có người làm @JinheLin đã nhận 6 ngày trước. Đang mởmay-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/moderate type/bug
pingcap/tiflash#11291 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingcap/tiflash
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
useless statementĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
grizzlypeak3d/DJV#962 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày