58 Commits

Author SHA1 Message Date
antirez
a0786d3876 redis-trib: initial output colorization 2013-03-25 12:50:38 +01:00
antirez
e9384bb846 redis-trib: All output wrapped by a specific function.
This is needed in order to colorize it as next step.
We use conventions in output messages such as

>>> This is an action
*** This is a warning
[ERR] This is an error
[OK] That's fine

And so forth, so that a color will be associated checking the first
three chars.
2013-03-22 17:39:43 +01:00
antirez
4047f418f2 redis-trib: fix open slot correction.
Slot zero was hardcoded (!)
2013-03-22 13:03:33 +01:00
antirez
6690bb21e5 redis-trib: added cluster_error method to add errors. 2013-03-22 12:59:18 +01:00
antirez
6b7f840f6a redis-trib: fixed ClusterNode migrating/importing slots detection. 2013-03-22 12:54:04 +01:00
antirez
a919ff08a7 redis-trib: added some more output for check. 2013-03-22 12:47:49 +01:00
antirez
167e31d585 redis-trib: fixed type has_flags? -> has_flag. 2013-03-22 12:28:06 +01:00
antirez
fbc1d38061 redis-trib: ignore slaves when resharding. 2013-03-21 18:17:06 +01:00
antirez
3a6c3eaf51 redis-trib: fix conditional otherwise always true. 2013-03-21 17:22:14 +01:00
antirez
ffc76cd6e8 redis-trib: initial support to fix "open" slots.
Open slots are slots found in importing or migrating slot when a
cluster check is performed.
2013-03-21 17:11:54 +01:00
antirez
1bafc1dc40 redis-trib: load info about importing/migrating slots from node. 2013-03-21 16:31:53 +01:00
antirez
475f2db051 redis-trib: don't load cluster config from nodes in FAIL state. 2013-03-19 09:46:12 +01:00
antirez
5e5b822277 redis-trib: skip nodes without slots when creating the config signature. 2013-02-28 13:12:56 +01:00
antirez
f7e497ce38 redis-trib help. 2013-02-27 18:02:22 +01:00
antirez
8d4ae49ece redis-trib: skip noaddr and disconnected nodes while loading cluster info. 2013-02-27 17:23:11 +01:00
antirez
5b28421929 redis-trib: initial implementation of addnode command. 2013-02-27 15:58:41 +01:00
antirez
3a4bb6cee4 redis-trib: check that all the nodes agree about the slots configuration. 2013-02-22 12:25:16 +01:00
antirez
361e58008b redis-trib: skeleton of coverage fix for "keys in multiple nodes" case. 2013-02-22 11:33:10 +01:00
antirez
d2d9422eba redis-trib: handle slot coverage fix in the "no nodes with keys" case. 2013-02-22 10:23:53 +01:00
antirez
f65afe7592 redis-trib: specify single node address when fixing coverage. 2013-02-22 10:05:07 +01:00
antirez
26ed0c0e48 redis-trib: ability to fix uncovered slots for the trivial case. 2013-02-21 18:10:06 +01:00
antirez
e1c77fb0c6 redis-trib: fixed typo in method name. 2013-02-21 16:58:27 +01:00
antirez
4d33e72fdb redis-trib: move instance vars in the right class. 2013-02-21 13:06:59 +01:00
antirez
1544701d1d redis-trib: some refactoring and skeleton of the "fix" command. 2013-02-21 13:00:41 +01:00
antirez
71d6ea6755 redis-trib: set the migrating slot in the correct way when resharding. 2013-02-20 15:29:53 +01:00
antirez
fe4e3581f2 redis-trib: make a few comments 80-cols friendly. 2013-02-15 17:11:55 +01:00
antirez
4a00f830b9 Cluster: redis-trib updated to use 16384 hash slots. 2013-02-14 12:55:34 +01:00
guiquanz
df7a5b7157 Fixed many typos. 2013-01-19 10:59:44 +01:00
antirez
445868b5d7 redis-trib: fix the MIGRATE call that now has milliseconds timeout (were seconds before). 2012-03-31 11:28:37 +02:00
Dave Hoover
6b8a79234e Fixing inject: it was failing when there was 1 or >2 sources 2011-11-09 19:06:12 -06:00
antirez
d8909d3296 redis-trib: fix for a slot allocation bug. 2011-10-13 15:16:03 +02:00
antirez
fb589e2110 redis-trib: create subcommand fixed calling node info loading method. Was needed after recent refactoring. 2011-10-04 15:53:07 +02:00
antirez
90adbdc496 fixed a few problems with redis-trib resharding. 2011-10-01 01:31:46 +02:00
antirez
7561bd826a redis-trib: initial working implementation of cluster rehashing, more work needed to make it more correct, more reliable. 2011-09-30 22:18:07 +02:00
antirez
63b7e1d9b2 redis-trib: actual slot migration work in progress, more work needed. 2011-09-30 19:21:36 +02:00
antirez
0101386afe redis-trib: better slots allocation strategy for resharding 2011-09-30 18:41:25 +02:00
antirez
76fb2ba03d redis-trib: initial slots allocation strategy, still to improve for better balancing when there are just a few slots to move. 2011-09-30 18:28:51 +02:00
antirez
da1044c890 redis-trib: reshard command work in progress 2011-09-29 16:06:49 +02:00
antirez
7b7ca05bbd redis-trib: minor refactoring creating a method to load the cluster information starting from a single node 2011-09-29 15:45:10 +02:00
antirez
f8a5bb158f redis-trib: don't crash loading node info for nodes without assigned slots 2011-09-29 15:31:02 +02:00
antirez
0c464a8087 redis-trib: added cluster state to node info string 2011-09-29 15:04:23 +02:00
antirez
d783732be5 redis-trib: all node information into a single hash 2011-09-29 14:44:27 +02:00
antirez
6ad5367a23 redis-trib: when loading node info also fetch the output of CLUSTER INFO. 2011-09-29 13:18:09 +02:00
antirez
1fbfc721f0 redis-trib cluster check command: check that all the 4096 slots are covered 2011-09-29 12:50:46 +02:00
antirez
58f345e77d initial node loading info code for redis-trib 2011-09-28 19:08:35 +02:00
antirez
340aa71a3f redis-trib: functions implementing commands moved at bottom 2011-04-14 09:41:22 +02:00
antirez
9b37baf350 fixed bug due to typo in code 2011-04-13 21:26:12 +02:00
antirez
8097560a1e fixed typo in comment 2011-04-13 20:17:11 +02:00
antirez
2005d932df fixed a typo in redis-trib 2011-04-13 18:50:50 +02:00
antirez
7ef39d3c3a use map! instead of reassigning 2011-04-13 18:46:29 +02:00