rcm
rcm.cr 
Redis Cluster Manager in Crystal
- in beta stage (crystal-0.18.2)
Usage
nodes
% rcm -p 7001 nodes
7fc615 [127.0.0.1:7007] master(*) 0-5460
2afb4d [127.0.0.1:7001] +slave(*) (slave of 127.0.0.1:7007)
7f193d [127.0.0.1:7002] master(*) 5461-10922
51fba7 [127.0.0.1:7005] +slave(*) (slave of 127.0.0.1:7002)
053dd7 [127.0.0.1:7003] master(*) 10923-16383
1c8f39 [127.0.0.1:7006] +slave(*) (slave of 127.0.0.1:7003)
56f195 [127.0.0.1:7004] +slave(!) (slave of 127.0.0.1:7001)
b80784 [127.0.0.1:7008] master(*)
6644fc [127.0.0.1:7009] master(*)
become slave
meet
andreplicate
(make 7004 slaveof 7001)
% rcm -p 7004 meet 127.0.0.1:7001 # same as "meet :7001"
% rcm -p 7004 replicate 127.0.0.1:7001 # same as "replicate :7001"
import
Installation
% make
% cp bin/rcm ~/bin/
TODO
- [ ] Dryrun
- [ ] Check
- [ ] Nodes health check
- [ ] Slots coverage check
- [ ] Debug
- [ ] Slots filler
Contributing
- Fork it ( https://github.com/maiha/rcm.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- maiha maiha - creator, maintainer