Redis cluster administration toolkit
Project description
# Ruskit
[![Build Status](https://travis-ci.org/eleme/ruskit.svg?branch=master)](https://travis-ci.org/eleme/ruskit)
[![Version](https://img.shields.io/pypi/v/ruskit.svg)](https://pypi.python.org/pypi/ruskit)
Redis cluster administration toolkit.
## Usage
```bash
pip install ruskit
```
##### Create cluster
```bash
ruskit create -s 1 192.168.0.11:{8000,8001,8002} 192.168.0.12:{8000,8001,8002}
```
##### Add nodes
```bash
# Add masters:
ruskit add 192.168.0.11:8000 192.168.0.13:8000 192.168.0.14:8000
# Add slaves:
# ruskit add <node belong to cluster> <slave node>,<master node>
ruskit add 192.168.0.11:8000 192.168.0.14:8001,192.168.0.13:8000
```
##### Query cluster info
```bash
ruskit info 192.168.0.11:8000
```
##### Delete nodes
```bash
ruskit delete 192.168.0.11:8000 192.168.0.13:8000
```
##### Migrate slots
```bash
# migrate 100 slots from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 -c 100 192.168.0.11:8000
# migrate all slots from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 192.168.0.11:8000
# migrate slot 866 from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 -s 866 192.168.0.11:8000
# migrate 100 slots from 192.168.0.11:8000 to other nodes in the cluster
ruskit migrate -c 100 192.168.0.11:8000
# migrate 100 slots from the cluster to 192.168.0.11:8000
ruskit migrate -c 100 -i 192.168.0.11:8000
```
##### Balance slots
```bash
ruskit reshard 192.168.0.11:8000
```
##### Fix cluster
```bash
ruskit fix 192.168.0.11:8000
```
##### Replicate
```bash
ruskit replicate 192.168.0.14:8001 192.168.0.11:8000
```
##### Destroy cluster
```bash
ruskit destroy 192.168.0.11:8000
```
[![Build Status](https://travis-ci.org/eleme/ruskit.svg?branch=master)](https://travis-ci.org/eleme/ruskit)
[![Version](https://img.shields.io/pypi/v/ruskit.svg)](https://pypi.python.org/pypi/ruskit)
Redis cluster administration toolkit.
## Usage
```bash
pip install ruskit
```
##### Create cluster
```bash
ruskit create -s 1 192.168.0.11:{8000,8001,8002} 192.168.0.12:{8000,8001,8002}
```
##### Add nodes
```bash
# Add masters:
ruskit add 192.168.0.11:8000 192.168.0.13:8000 192.168.0.14:8000
# Add slaves:
# ruskit add <node belong to cluster> <slave node>,<master node>
ruskit add 192.168.0.11:8000 192.168.0.14:8001,192.168.0.13:8000
```
##### Query cluster info
```bash
ruskit info 192.168.0.11:8000
```
##### Delete nodes
```bash
ruskit delete 192.168.0.11:8000 192.168.0.13:8000
```
##### Migrate slots
```bash
# migrate 100 slots from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 -c 100 192.168.0.11:8000
# migrate all slots from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 192.168.0.11:8000
# migrate slot 866 from 192.168.0.11:8000 to 192.168.0.12:8000
ruskit migrate -d 192.168.0.12:8000 -s 866 192.168.0.11:8000
# migrate 100 slots from 192.168.0.11:8000 to other nodes in the cluster
ruskit migrate -c 100 192.168.0.11:8000
# migrate 100 slots from the cluster to 192.168.0.11:8000
ruskit migrate -c 100 -i 192.168.0.11:8000
```
##### Balance slots
```bash
ruskit reshard 192.168.0.11:8000
```
##### Fix cluster
```bash
ruskit fix 192.168.0.11:8000
```
##### Replicate
```bash
ruskit replicate 192.168.0.14:8001 192.168.0.11:8000
```
##### Destroy cluster
```bash
ruskit destroy 192.168.0.11:8000
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ruskit-0.0.5.tar.gz
(9.7 kB
view hashes)
Built Distribution
ruskit-0.0.5-py2.py3-none-any.whl
(12.4 kB
view hashes)
Close
Hashes for ruskit-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0282fc2fa72127ada213aa75cca99a6ef919f42350d7b6b6c31fb25d7d53ed8 |
|
MD5 | 1e5a8e82df8a6b8c895a974b94b4d018 |
|
BLAKE2b-256 | 4da0ff8c95c5caf915ca2d7a48023a96c9da2125a5c2b34cf386bdb6d3ae6fef |