... | ... | @@ -53,20 +53,35 @@ Well, first these two. |
|
|
* Current Thinking:
|
|
|
* The performance difference between Redis-Cluster and Redis-Single is caused by the client side random redirecting when requesting the data.
|
|
|
* Demo of the situation is like this:
|
|
|
|
|
|
`127.0.0.1:7000> set foo bar`
|
|
|
|
|
|
`-> Redirected to slot [12182] located at 127.0.0.1:7002`
|
|
|
|
|
|
`OK`
|
|
|
|
|
|
`127.0.0.1:7002> set bar foo`
|
|
|
|
|
|
`-> Redirected to slot [5061] located at 127.0.0.1:7000`
|
|
|
|
|
|
`OK`
|
|
|
|
|
|
`127.0.0.1:7000> get foo`
|
|
|
|
|
|
`-> Redirected to slot [12182] located at 127.0.0.1:7002`
|
|
|
|
|
|
`"bar"`
|
|
|
|
|
|
`127.0.0.1:7002> set min 2`
|
|
|
|
|
|
`-> Redirected to slot [9696] located at 127.0.0.1:7004`
|
|
|
|
|
|
`OK`
|
|
|
|
|
|
`127.0.0.1:7004> set dif r`
|
|
|
|
|
|
`-> Redirected to slot [14969] located at 127.0.0.1:7002`
|
|
|
|
|
|
`OK`
|
|
|
* Whatever
|
|
|
|
... | ... | |