Skip to content

Latest commit

 

History

History
435 lines (232 loc) · 9.97 KB

File metadata and controls

435 lines (232 loc) · 9.97 KB

ecctool

ecctool is a command line utility used to perform operations toward a local ecChronos instance. Run ‘ecctool <subcommand> –help’ to get more information about each subcommand.

usage: ecctool [-h] {rejections,repair-info,repairs,run-repair,running-job,schedules,start,status,stop} ...

-h, --help

show this help message and exit

ecctool rejections

Manage ecchronos rejections. Use ‘ecctool rejections <action> –help’ for action information.

usage: ecctool rejections [-h] [-u URL] [-c COLUMNS] [-o OUTPUT] {create,delete,get,update} ...

-h, --help

show this help message and exit

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

-c <columns>, --columns <columns>

table columns to display (format: 0,1,2,…,N)

-o <output>, --output <output>

output formats: json, table (default)

ecctool rejections create

usage: ecctool rejections create [-h] -k KEYSPACE -t TABLE -sh START_HOUR -sm START_MINUTE -eh END_HOUR -em END_MINUTE -dcs DC_EXCLUSIONS [DC_EXCLUSIONS ...] [-u URL]

-h, --help

show this help message and exit

-k <keyspace>, --keyspace <keyspace>

keyspace

-t <table>, --table <table>

table

-sh <start_hour>, --start-hour <start_hour>

start hour

-sm <start_minute>, --start-minute <start_minute>

start minute

-eh <end_hour>, --end-hour <end_hour>

end hour

-em <end_minute>, --end-minute <end_minute>

end minute

-dcs <dc_exclusions>, --dc-exclusions <dc_exclusions>

datacenters to exclude (format: <dc1> <dc2> … <dcN>)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool rejections delete

usage: ecctool rejections delete [-h] [-a ALL] [-k KEYSPACE] [-t TABLE] [-sh START_HOUR] [-sm START_MINUTE] [-dcs DC_EXCLUSIONS [DC_EXCLUSIONS ...]] [-u URL]

-h, --help

show this help message and exit

-a <all>, --all <all>

delete all

-k <keyspace>, --keyspace <keyspace>

keyspace

-t <table>, --table <table>

table

-sh <start_hour>, --start-hour <start_hour>

start hour

-sm <start_minute>, --start-minute <start_minute>

start minute

-dcs <dc_exclusions>, --dc-exclusions <dc_exclusions>

datacenters to exclude (format: <dc1> <dc2> … <dcN>)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool rejections get

usage: ecctool rejections get [-h] [-k KEYSPACE] [-t TABLE] [-u URL]

-h, --help

show this help message and exit

-k <keyspace>, --keyspace <keyspace>

keyspace

-t <table>, --table <table>

table

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool rejections update

usage: ecctool rejections update [-h] -k KEYSPACE -t TABLE -sh START_HOUR -sm START_MINUTE [-dcs DC_EXCLUSIONS [DC_EXCLUSIONS ...]] [-u URL]

-h, --help

show this help message and exit

-k <keyspace>, --keyspace <keyspace>

keyspace

-t <table>, --table <table>

table

-sh <start_hour>, --start-hour <start_hour>

start hour

-sm <start_minute>, --start-minute <start_minute>

start minute

-dcs <dc_exclusions>, --dc-exclusions <dc_exclusions>

datacenters to exclude (format: <dc1> <dc2> … <dcN>)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool repair-info

Get information about repairs for tables. The repair information is based on repair history, meaning both manual and scheduled repairs will be a part of the repair information. This subcommand requires the user to provide either –since or –duration if –keyspace and –table is not provided. If repair info is fetched for a specific table using –keyspace and –table, the duration will default to the table’s GC_GRACE_SECONDS.

usage: ecctool repair-info [-h] [-c COLUMNS] [-k KEYSPACE] [-t TABLE] [-s SINCE] [-d DURATION] [--local] [-u URL] [-l LIMIT] [-o OUTPUT]

-h, --help

show this help message and exit

-c <columns>, --columns <columns>

table columns to display (format: 0,1,2,…,N)

-k <keyspace>, --keyspace <keyspace>

keyspace

-t <table>, --table <table>

table

-s <since>, --since <since>

repair information from specified date (ISO8601 format) to now (required unless using –duration or –keyspace/–table)

-d <duration>, --duration <duration>

repair information for specified duration (ISO8601 or simple format: 5s, 5m, 5h, 5d) from now-duration to now (required unless using –since or –keyspace/–table)

--local

local node only

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

-l <limit>, --limit <limit>

limit output rows (use -1 for no limit)

-o <output>, --output <output>

output formats: json, table (default)

ecctool repairs

Show the status of all manual repairs.

usage: ecctool repairs [-h] [-c COLUMNS] [-k KEYSPACE] [-t TABLE] [-u URL] [-i ID] [-l LIMIT] [-o OUTPUT] [--hostid HOSTID]

-h, --help

show this help message and exit

-c <columns>, --columns <columns>

table columns to display (format: 0,1,2,…,N)

-k <keyspace>, --keyspace <keyspace>

keyspace (mutually exclusive with -i/–id)

-t <table>, --table <table>

table (requires -k/–keyspace and is mutually exclusive with -i/–id)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

-i <id>, --id <id>

only matching id (mutually exclusive with -k/–keyspace and -t/–table)

-l <limit>, --limit <limit>

limit output rows (use -1 for no limit)

-o <output>, --output <output>

output formats: json, table (default)

--hostid <hostid>

show repairs for specified cassandra instance host id

ecctool run-repair

Triggers a manual repair in ecChronos. This will be done through the Cassandra JMX interface.

usage: ecctool run-repair [-h] [-c COLUMNS] [-u URL] [--local] [-o OUTPUT] [-r REPAIR_TYPE] [-k KEYSPACE] [-t TABLE]

-h, --help

show this help message and exit

-c <columns>, --columns <columns>

table columns to display (format: 0,1,2,…,N)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

--local

local node only

-o <output>, --output <output>

output formats: json, table (default)

-r <repair_type>, --repair_type <repair_type>

type of repair (accepted values: vnode, parallel_vnode and incremental)

-k <keyspace>, --keyspace <keyspace>

keyspace (applies to all tables within the keyspace with a replication factor greater than 1)

-t <table>, --table <table>

table (requires -k/–keyspace)

ecctool running-job

Show which (if any) job is currently running.

usage: ecctool running-job [-h] [-o OUTPUT] [-u URL]

-h, --help

show this help message and exit

-o <output>, --output <output>

output formats: json (defaults to no format)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool schedules

Show the status of schedules.

usage: ecctool schedules [-h] [-c COLUMNS] [-f] [-i ID] [-k KEYSPACE] [-l LIMIT] [-o OUTPUT] [-t TABLE] [-u URL]

-h, --help

show this help message and exit

-c <columns>, --columns <columns>

table columns to display (format: 0,1,2,…,N)

-f, --full

show full schedules with configuration and vnode state (requires -i/–id)

-i <id>, --id <id>

only matching id (mutually exclusive with -k/–keyspace and -t/–table)

-k <keyspace>, --keyspace <keyspace>

keyspace (mutually exclusive with -i/–id)

-l <limit>, --limit <limit>

limit output rows (use -1 for no limit)

-o <output>, --output <output>

output formats: json, table (default)

-t <table>, --table <table>

table (requires -k/–keyspace and is mutually exclusive with -i/–id)

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

ecctool start

Start the ecChronos service.

usage: ecctool start [-h] [-f] [-o OUTPUT] [-p PIDFILE]

-h, --help

show this help message and exit

-f, --foreground

run in foreground (executes in current terminal and logs to stdout)

-o <output>, --output <output>

output formats: json (defaults to no format)

-p <pidfile>, --pidfile <pidfile>

file for storing process id

ecctool status

View status of the ecChronos instance.

usage: ecctool status [-h] [-u URL] [-o OUTPUT]

-h, --help

show this help message and exit

-u <url>, --url <url>

ecchronos host URL (format: http://<host>:<port>)

-o <output>, --output <output>

output formats: json (defaults to no format)

ecctool stop

Stop the ecChronos service (sends SIGTERM to the process).

usage: ecctool stop [-h] [-o OUTPUT] [-p PIDFILE]

-h, --help

show this help message and exit

-o <output>, --output <output>

output formats: json (defaults to no format)

-p <pidfile>, --pidfile <pidfile>

file containing process id

Examples

For example usage and explanation about output refer to ECCTOOL_EXAMPLES.md