You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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:
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
Traffic Capture
P1:
P2:
Traffic Replay
P1:
P2:
P3:
Comparison and Report
P1:
P2:
User Interface
P1:
P2:
--force
arg to remove the traffic file or report forcibly if it existsThe text was updated successfully, but these errors were encountered: