A python command line tool to provide the commands necessary to run on citus to have a balanced cluster
Project description
# python-citus-rebalancer A python command to get recommendations on commands to run to rebalance an unbalaned citus cluster.
Sometimes when your cluster grows, you can have an uneven size on nodes: for example if one customers ingests more data than other. This simple commands helps you figure out what master_move_shard commands to run on your coordinator.
## Installation ### Install with pip install
Run pip install py-citus-rebalancer
### Install from source code
Clone the github repository
Run python setup.py develop
## Running the command
This command has different options:
–host: is your postgres connection string
–delta: is the maximum difference you expect between the node size and the idea size. For example if you have 4 nodes and 20GB of data, the idea size would be 5GB per node. The delta that you can give is for example 10% difference. It’s an integer representing the percent.
–file: path to the file where you want the command to be written: example /path/to/rebalance.sql. You can then run the file on your coordinator
Run the command citus-rebalancer –host=postgres://user:pwd@host:5432/dbname –delta=10
It will return commands to run, run them on your coordinator to rebalance the cluster.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-citus-rebalancer-1.0.4.tar.gz.
File metadata
- Download URL: py-citus-rebalancer-1.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c17bfd0ca20409fd2724c3e3783ad41fc552a539a1c0a0796c307504283c8b71
|
|
| MD5 |
0acd4d6e700a882ae0f9cbcbb3b38901
|
|
| BLAKE2b-256 |
bf201279f3446bc41acaa5e075f78a97b8d667388d67e537b267d3b6fae0d026
|
File details
Details for the file py_citus_rebalancer-1.0.4-py3-none-any.whl.
File metadata
- Download URL: py_citus_rebalancer-1.0.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9689a69e17deb8d2fe23eb57fb90d477c73e6ac5b899b6bfdf561c8a63ff7055
|
|
| MD5 |
d00d1d28be43057a1fed24f093f71304
|
|
| BLAKE2b-256 |
4df05ea21ccd0d3075a90f9824578af020dc8febaf097166accda4578820ee3b
|