Comments (6)
Corvus is just a redis protocol proxy and can't build a cluster itself. It serve between the clients and redis cluster so that clients don't need to support redis cluster protocol.
You have already successfully runned it. slot map updated: corverd 16384 slots
means corvus is ready to serve. Now you can use any redis client to connect to corvus (0.0.0.0:12345 in your case) and just treat it like a redis 2.x .
$ redis-cli -p 12345 GET key
from corvus.
There're some modified and unsupported commands, see readme for details. As multi-key commands are splitted into sub commands for performance, they don't satisfy atomicity and isolation any more.
Corvus will find all the masters itself by sending CLUSTER NODES
to redis cluster, so you don't need to fill all the nodes in the node
field of config file. But when you remove some nodes from the cluster, make sure that there's at least one existing node in the config file.
from corvus.
ah so i must make the cluster first and node array is for each cluster's master ?
i setup 9 redis server 3x sets of 1x master + 2x slaves
./redis-generator.sh 9 cluster
join them to a redis cluser
redis-cluster-tool -C "cluster_create 127.0.0.1:6479[127.0.0.1:6480|127.0.0.1:6481] 127.0.0.1:6482[127.0.0.1:6483|127.0.0.1:6484] 127.0.0.1:6485[127.0.0.1:6486|127.0.0.1:6487]"
Waiting for the nodes to join...
All nodes joined!
Cluster created success!
change corvus.conf
node 127.0.0.1:6479,127.0.0.1:6482,127.0.0.1:6485
start corvus
src/corvus /etc/corvus/corvus.conf
2017-03-15 04:21:49,561 DEBUG [default 12345 31183 31183]: Registering signal[Interrupt] (corvus.c:62)
2017-03-15 04:21:49,562 DEBUG [default 12345 31183 31183]: Registering signal[Terminated] (corvus.c:62)
2017-03-15 04:21:49,562 DEBUG [default 12345 31183 31183]: Registering signal[Segmentation fault] (corvus.c:62)
2017-03-15 04:21:49,562 INFO [default 12345 31183 31183]: starting slot manager thread (slot.c:533)
2017-03-15 04:21:49,562 DEBUG [default 12345 31183 31185]: slowlog enabled (corvus.c:256)
2017-03-15 04:21:49,562 DEBUG [default 12345 31183 31186]: slowlog enabled (corvus.c:256)
2017-03-15 04:21:49,564 INFO [default 12345 31183 31183]: serve at 0.0.0.0:12345 (corvus.c:481)
2017-03-15 04:21:49,563 DEBUG [default 12345 31183 31187]: slowlog enabled (corvus.c:256)
2017-03-15 04:21:49,565 INFO [default 12345 31183 31184]: updating slot map using 127.0.0.1:6479 (slot.c:290)
2017-03-15 04:21:49,564 DEBUG [default 12345 31183 31188]: slowlog enabled (corvus.c:256)
2017-03-15 04:21:49,567 INFO [default 12345 31183 31184]: slot map updated: corverd 16384 slots (slot.c:353)
???
from corvus.
thanks @doyoubi for the clarification. When you mean treat it like redis 2.x, are there some limitations if using redis 3.x servers ?
also is it correct to use
node 127.0.0.1:6479,127.0.0.1:6482,127.0.0.1:6485
where redis cluster is 3x masters on 6479, 6482, 6485 ?
from corvus.
thanks so i only need
node 127.0.0.1:6479
from my redis cluster ?
from corvus.
Yes, but I recommand adding all the nodes on it.
from corvus.
Related Issues (20)
- pub/sub cmd HOT 6
- Allow increasing maxclients HOT 9
- Redis 4 Support HOT 2
- Issue installing v0.2.7 from the release page HOT 2
- unknown command type 'Q' (parser.c:155) HOT 4
- Do you have a plan for supporting backend redis cluster configed with requirepass? HOT 2
- Support hashtag key ? HOT 2
- support redis 4.x later ? HOT 2
- corvus是否支持ssdb或者pika? HOT 2
- Corvus key distribution algorithm HOT 2
- corvus metrics信息, 有没有命令直接取出来? HOT 1
- corvus health check HOT 2
- monitoring slowlog in Corvus HOT 1
- 是否在检测到redis连接不上的情况下 关闭server的端口不接收请求? HOT 3
- KEYS should be possible HOT 4
- Support of Redis 5+ HOT 10
- 在redis_cluster集群基础上安装了corvus后为啥tps降低了 HOT 15
- How to configuration node password in corvus HOT 1
- 在线压缩、backup-read、大key检查 HOT 1
- Can I use Lettuce with corvus? Maybe there are some bugs! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corvus.