chorctl

command module
v0.0.0-...-cc3575b Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Chorctl

CLI for chorus management api.

chorctl.png

Install

cd ./tools/chorctl && go build .

Or download binary from the latest release.

Or with homebrew (MacOS and Linux only):

brew install clyso/tap/chorctl

Usage

chorctl sends requests to GRPC api hosted by Chorus worker. Deploy worker and provide GRPC api address to chorctl with --address flag or CHORUS_ADDRESS envar, for example:

export CHORUS_ADDRESS=127.0.0.1:9670
 ./chorctl help
 
Chorctl is a CLI tool to monitor and manage chorus application
performing live migrations and replication of s3 storages.

Usage:
  chorctl [command]

Available Commands:
  agent       Prints information about registered notification agents
  check       Checks the files in the source and destination match.
  completion  Generate the autocompletion script for the specified shell
  dash        Open migration interactive dashboard
  help        Help about any command
  repl        list replications
  storage     Prints information about underlying chorus s3 storages

Flags:
  -a, --address string   address to chorus management grpc api (default: http://localhost:9670) (default "localhost:9670")
      --config string    config file (default is $HOME/.chorctl.yaml)
  -h, --help             help for chorctl
  -u, --user string      storage user
  -v, --verbose          prints additional log information

Use "chorctl [command] --help" for more information about a command.
Useful commands:

Show live dashboard with bucket replication statuses:

chorctl dash

Manage replicatoins (run chorclt repl -h to see all commands).

List buckets avaiable for replication for given S3 user:

chorctl repl buckets -u <s3 user name from chorus config> -f <souce s3 storage from chorus config> -t <destination s3 storage from chorus config>

Start replication for given S3 user/bucket:

chorctl repl add -b <bucket name> -u <s3 user name from chorus config> -f <souce s3 storage from chorus config> -t <destination s3 storage from chorus config>

Enable replication for all user buckets:

chorctl repl add-user -u <s3 user name from chorus config> -f <souce s3 storage from chorus config> -t <destination s3 storage from chorus config>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
api
ui

Jump to

Keyboard shortcuts

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