Support traffic replay
Maintainer thường phản hồi trong vòng 1 ngày
@djshow832 đang làm issue này rồi.
Từ ngày 26/8/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Feature Request
Describe your feature request related problem
There are some cases when users want to capture the traffic on the production cluster and replay the traffic on a testing cluster:
- A new TiDB version may have compatibility breakers, such as the statements failing, running slower, or resulting in different query results.
- When the cluster runs unexpectedly, users want to capture the traffic so that they can investigate it later by replaying the traffic.
- Test the maximum throughput of a scaled-up or scaled-down cluster using the real workload instead of Sysbench or TPCC.
Some traffic replay tools are widely used, including tcpcopy, mysql-replay, and query-playback. Tcpcopy and mysql-replay capture data like tcpdump, while query-playback is based on slow logs. Although some of them are built for MySQL, deploying them on the proxy instance also works.
However, they have some limitations:
- Users need to learn the deployment and usage of these tools.
- Tcpcopy only captures new connections, which is unfriendly for persistent connections. Mysql-replay can capture existing connections but it loses session states such as prepared statements and session variables, which may make replay fail.
- The tools replay the traffic with one username and one current schema, which requires modification to the testing cluster.
- Tcpcopy and mysql-replay don't support TLS because they can't decode the encrypted data.
- Users need to verify the results and performance manually.
Describe the feature you'd like
Capturing traffic on one TiDB cluster and replaying the traffic on a new TiDB cluster to verify the SQL compatibility and performance of the new TiDB cluster.
Tasks
Design
- #643
Traffic Capture
P1:
- #645
- #647
- #674
- #676
- #672
- #681
P2:
- #726
- #717
- #719
- #729
- #722
P3:
- Support more command types
Traffic Replay
P1:
- #652
- #654
- #657
- #659
- #678
- #687
- #700
P2:
- #711
P3:
- Streaming reading and sending large commands
- Track and limit the memory of pending commands
- Support more auth plugins
- Support replaying as fast as possible
- #866
- Support reading from MySQL slow logs
- Support reading from tcpdump files
- Support reading from TiDB statements summary tables
- Support reading from MySQL statements summary tables
Comparison and Report
P1:
- #661
- #683
User Interface
P1:
- #665
- #667
- #669
- #685
P2:
- #723
- #735
- #737
- #740
- #744
- #742
- #748
P3:
- Show the estimated disk usage of the traffic files
- Run as a replayer client
- Ngôn ngữ chính
- Go
- Star
- 73
- Fork
- 41
- Merge trung bình
- 10 giờ 52 phút
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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/tiproxy
-
contribution first-time-contributor type/enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
pingcap/tiproxy#1239 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type/enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky test TestForwardUntilErrorĐang mởseverity/minor type/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingcap/tiproxy
Issue tương tự
-
raised-by:worker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
medici-finance/assay#2486 ·
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 78/100
openimsdk/openim-sdk-core#1127 ·
-
github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Hochfrequenz/aibap.mcp#578 ·
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 85/100
mvanhorn/cli-printing-press#4980 ·
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 62/100
lenaxia/LLMSafeSpaces#1644 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày