KeyvizBaker: A tool to bake heatmaps on TiDB's Key Visualizer
More samples can be found here.
go build
- Deploy a TiDB cluster. It's handy to use TiUP playground.
NOTE: To make KeyvizBaker to work well, it's recommended to use the config files here. Also to make the heatmaps look nicer, it's recommended to build your own
pd-server
using this branch.
- Run
keyviz-baker
with the following options:
Required:
-image_path: Path to to the image to render. Must be PNG format.
-db: Database connection string. E.g. 'root:@tcp(127.0.0.1:4000)/test'.
Optional:
-name: Name of this bake.
-skip_prepare: Skip preparation.
-align_sec: Second to align to start baking.
-interval_sec: Interval in seconds to draw each Y axis.
Examples:
./keyviz-baker -name="mandelbrot" -image_path="image/mandelbrot.png" -db="root:@tcp(127.0.0.1:4000)/test" -align_sec=7 -interval_sec=5
To bake a nice heatmap requires lots of tweaks. I don't plan to describe all of them. But welcome to ask questions on this repo.