Skip to main content

Python script for managing and repairing Scylla Cluster

Project description

scylla-cli

Python script for managing and repairing (in a smart way) Scylla Cluster. It repairs the primary range of a Scylla node in discrete steps using advanced repair techniques.

Prerequisites

  • Python >=3.5
  • SSH connection to every Scylla host in the cluster should be possible
  • Scylla REST API listens on every Scylla host on localhost:10000

Following env variables could be set to make your life easier:

export SCYLLA_HOST='10.210.92.46' # initial endpoint for obtaining cluster topology
export SCYLLA_USERNAME='root' # ssh user on Scylla host
export SCYLLA_PKEY='/home/USER/.ssh/id_rsa' # Defaults to ~/.ssh/id_rsa

Installation

pip3 install scylla-cli

Developing

virtualenv -p python3 scylla-cli
pip3 install --editable .

Checking cluster status

scli status

Repairing Scylla Cluster

# connect to the cluster via 10.210.92.46 with root credentials and repair
# sync keyspace on every endpoint in local DC only
$ scli -u root -p repair sync --local

# connect to the cluster via 10.210.92.46 with root credentials and repair
# sync keyspace on 10.210.92.46 only
$ scli -u root -p repair sync --local --hosts 10.210.92.46

# connect to the cluster via 10.210.92.46 with root credentials and repair
# sync keyspace on every host except 10.210.92.46
$ scli -u root -p repair sync --local --exclude 10.210.92.46

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scylla-cli, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size scylla-cli-0.1.4.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page