vedran

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Vedran

Polkadot chain load balancer.

Get vedran package
  1. Install Golang 1.13 or greater
  2. Run the command below
go get github.com/NodeFactoryIo/vedran
  1. Run vedran from your Go bin directory. For linux systems it will likely be:
~/go/bin/vedran

Note that if you need to do this, you probably want to add your Go bin directory to your $PATH to make things easier!

Usage

Load balancer is started using command start.

$ vedran -h

vedran is a command line interface for polkadot load balancer

Usage:
  vedran [command]

Available Commands:
  help     Help about any command
  start    Starts vedran load balancer

Use "vedran [command] --help" for more information about a command.

When running vedran load balancer, flags described below can be used to customize instance.

--auth-secret string   [REQUIRED] Authentication secret used for generating tokens
--capacity int         [OPTIONAL] Maximum number of nodes allowed to connect, where -1 represents no upper limit (default -1)
--fee float32          [OPTIONAL] Value between 0-1 representing fee percentage (default 0.1)
--log-file string      [OPTIONAL] Path to logfile (default stdout)
--log-level string     [OPTIONAL] Level of logging (eg. info, warn, error) (default "error")
--name string          [OPTIONAL] Public name for load balancer, autogenerated name used if omitted (default "load-balancer-wAbqMEaavbwy")
--port int32           [OPTIONAL] Port on which load balancer will be started (default 4000)
--selection string     [OPTIONAL] Type of selection used for choosing nodes (default "round-robin")
--whitelist strings    [OPTIONAL] Comma separated list of node id-s, if provided only these nodes will be allowed to connect
Demo
Requirements

Run demo with docker-compose up

This demo starts three separate dockerized components:

  • Polkadot node
  • Vedran daemon
  • Vedran loadbalancer

License

This project is licensed under Apache 2.0:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
mocks
pkg

Jump to

Keyboard shortcuts

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