Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.33 KB

gettingstarted.md

File metadata and controls

65 lines (52 loc) · 1.33 KB

Quick start

Tutorial Video

here is a video demo。

Install

You are able to install tape via ways blow:

  1. download binary:fromrelease pagedownload binary。

  2. local complie

make tape
  1. Docker image:
docker pull ghcr.io/hyperledger-twgc/tape

Local Docker complie(optional)

make docker

Edit configuration file according to your fabric network

according to this edit config file.

Run

default run:

./tape --config=config.yaml --number=40000

CommitOnly

docker run -v $PWD:/tmp ghcr.io/hyperledger-twgc/tape tape commitOnly -c $CONFIG_FILE -n 40000

EndorsementOnly

docker run -v $PWD:/tmp ghcr.io/hyperledger-twgc/tape tape endorsementOnly -c $CONFIG_FILE -n 40000

Prometheus

./tape --config=config.yaml --number=40000 --prometheus

and the Prometheus will listen :8080/metrics, the metrics names as transaction_latency_duration and read_latency_duration for now, they are float based time duration.

Log level

environment TAPE_LOGLEVEL for log level

export TAPE_LOGLEVEL=debug

default is warn

  • panic
  • fatal
  • error
  • warn
  • warning
  • info
  • debug
  • trace