pingcap / go-tpc

A toolbox to benchmark TPC workloads in Go
Apache License 2.0
178 stars 94 forks source link

support plan replayer for tpch #131

Closed Yisaer closed 2 years ago

Yisaer commented 2 years ago

Plan replayer is to help us reproduce the environment which is used by optimizer to decide how to generate Plan for each query. This is quite useful for us to debug if the plan unexpected changed.

This requests supports dump plan replatyer for tpch test.

The dumped zip file saved the following file: / |-q1_time.zip (plan replayer results for q1) |-q2_time.zip |-q3_time.zip |-... /

As we need status port to download plan replayer results from tidb-server, a quick example is like fowllowing:

go-tpc tpch --sf=1 run -H <host> -P 4000 -S 10080 --use-plan-replayer true
CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

dbsid commented 2 years ago

@Yisaer please resolve the conflicts.