powbench

command
v0.2.0-pre.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 10 Imported by: 0

README

Powergate bench

Powergate bench is an utility tool that allows to run benchmark scenarios against a properly configured Powergate server.

> go build -o powbench .
> ./powbench -h
Usage of ./powbench:
      --maxParallel int    Max parallel file storage (default 1)
      --minerAddr string   Miner address to force Powergate to select for making deals (default "t01000")
      --pgAddr string      Powergate server multiaddress (default "/ip4/127.0.0.1/tcp/5002")
      --randSeed int       Random seed used to generate random samples data (default 42)
      --sampleSize int     Size of randomly generated files in bytes (default 1024)
      --totalSamples int   Total samples to run (default 3)

The targeted Powergate server should have enabled the auto-funding of newly created FFS instances wallet addresses. This means:

  • The Lotus node owned by Powergate must have a wallet address; the master address.
  • master address should have funds.
  • This address will be used to automatically send funds to the new FFS instance that will run the benchmark.
  • Powergate should be started with two flags:
    • --lotusmasteraddr: with the above mentioned address.
    • --walletinitialfund: an reasonable amount of attoFIL that will be transferred from the master address to the created FFS instance. It should be enough to fund all deals that will be ran in the scenario.
    • Note: env variables can be used instead of command line flags, i.e: POWD_LOTUSMASTERADDR and POWD_WALLETINITIALFUND respectively.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL