ngaut / keyviz-baker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyvizBaker: A tool to bake heatmaps on TiDB's Key Visualizer

Alt

More samples can be found here.

Build

go build

Usage

  1. 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.

  1. 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

Acknowledgement

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.

About

License:Apache License 2.0


Languages

Language:Go 100.0%