Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

go.etcd.io/etcd/tools/rw-heatmaps/v3

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go.etcd.io/etcd/tools/rw-heatmaps/v3

  • v3.0.0-20241221192055-e30a4abc75c9
  • Go
  • Socket score

Version published
Created
Source

etcd/tools/rw-heatmaps

etcd/tools/rw-heatmaps is the mixed read/write performance evaluation tool for etcd clusters.

Installation

Install the tool by running the following command from the etcd source directory.

  $ go install -v ./tools/rw-heatmaps

The installation will place executables in the $GOPATH/bin. If $GOPATH environment variable is not set, the tool will be installed into the $HOME/go/bin. You can also find out the installed location by running the following command from the etcd source directory. Make sure that $PATH is set accordingly in your environment.

  $ go list -f "{{.Target}}" ./tools/rw-heatmaps

Alternatively, instead of installing the tool, you can use it by simply running the following command from the etcd source directory.

  $ go run ./tools/rw-heatmaps

Execute

Benchmark

To get a mixed read/write performance evaluation result:

  # run with default configurations and specify the working directory
  $ ./rw-benchmark.sh -w ${WORKING_DIR}

rw-benchmark.sh will automatically use the etcd binary compiled under etcd/bin/ directory.

Note: the result CSV file will be saved to current working directory. The working directory is where etcd database is saved. The working directory is designed for scenarios where a different mounted disk is preferred.

Plot Graphs

To generate two images (read and write) based on the benchmark result CSV file:

  # to generate a pair of read & write images from one data csv file
  $ rw-heatmaps ${CSV_FILE} -t ${IMAGE_TITLE} -o ${OUTPUT_IMAGE_NAME}

To generate two images (read and write) showing the performance difference from two result CSV files:

  # to generate a pair of read & write images from one data csv file
  $ rw-heatmaps ${CSV_FILE1} ${CSV_FILE2} -t ${IMAGE_TITLE} -o ${OUTPUT_IMAGE_NAME}

To see the available options use the --help option.

  $ rw-heatmaps --help

rw-heatmaps is a tool to generate read/write heatmaps images for etcd3.

Usage:
  rw-heatmaps [input file(s) in csv format] [flags]

Flags:
  -h, --help                       help for rw-heatmaps
  -f, --output-format string       output image file format (default "jpg")
  -o, --output-image-file string   output image filename (required)
  -t, --title string               plot graph title (required)
      --zero-centered              plot the improvement graph with white color represents 0.0 (default true)

FAQs

Package last updated on 21 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc