antirez
88221f88c0
Cluster: new command CLUSTER FLUSHSLOTS.
...
It's just a simpler way to CLUSTER DELSLOTS with all the slots as
arguments, in order to obtain a node without assigned slots for
reconfiguration.
2013-03-19 09:58:05 +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
7d3e32d526
redis-trib: don't load cluster config from nodes in FAIL state.
2013-03-19 09:46:12 +01:00
Johan Bergström
aabae1c8f5
Silence mkdir output
2013-03-17 18:37:38 +11:00
Johan Bergström
dc4003be71
Silence mkdir output
2013-03-17 18:37:38 +11:00
Johan Bergström
28762e28b0
Only pass -rdynamic as linker option
2013-03-17 17:49:57 +11:00
Johan Bergström
348be19b5f
Only pass -rdynamic as linker option
2013-03-17 17:49:57 +11:00
Johan Bergström
4415c47612
Remove extra spaces
2013-03-17 17:23:45 +11:00
Johan Bergström
33a4bc2c70
Remove extra spaces
2013-03-17 17:23:45 +11:00
Johan Bergström
c9498223ab
make check is a common naming convention for tests
2013-03-16 18:40:22 +11:00
Johan Bergström
978c895b69
make check is a common naming convention for tests
2013-03-16 18:40:22 +11:00
Johan Bergström
1fe70ba598
Spaces to tabs
2013-03-16 18:35:20 +11:00
Johan Bergström
ada7aa7ac9
Spaces to tabs
2013-03-16 18:35:20 +11:00
Johan Bergström
ec31f87ad8
Slightly refactor CFLAGS/LDFLAGS/LIBS
...
This way, we can avoid -rdynamic and -pthread warnings on darwin.
2013-03-16 18:33:42 +11:00
Johan Bergström
bea60bec75
Slightly refactor CFLAGS/LDFLAGS/LIBS
...
This way, we can avoid -rdynamic and -pthread warnings on darwin.
2013-03-16 18:33:42 +11:00
antirez
27b04ed380
Cluster: when failing over claim master slots.
2013-03-15 16:53:41 +01:00
antirez
e28e61e839
Cluster: when failing over claim master slots.
2013-03-15 16:53:41 +01:00
antirez
f8f9819c34
Version incremented to 2.9.8 after major cluster progresses.
2013-03-15 16:45:45 +01:00
antirez
b8127e337a
Version incremented to 2.9.8 after major cluster progresses.
2013-03-15 16:45:45 +01:00
antirez
0e3ebe454c
Cluster: log when a slave asks for failover authorization.
2013-03-15 16:44:08 +01:00
antirez
dd091661d4
Cluster: log when a slave asks for failover authorization.
2013-03-15 16:44:08 +01:00
antirez
300c6c17aa
Cluster: slaves start failover with a small delay.
...
Redis Cluster can cope with a minority of nodes not informed about the
failure of a master in time for some reason (netsplit or node not
functioning properly, blocked, ...) however to wait a few seconds before
to start the failover will make most "normal" failovers simpler as the
FAIL message will propagate before the slave election happens.
2013-03-15 16:39:49 +01:00
antirez
1375b0611b
Cluster: slaves start failover with a small delay.
...
Redis Cluster can cope with a minority of nodes not informed about the
failure of a master in time for some reason (netsplit or node not
functioning properly, blocked, ...) however to wait a few seconds before
to start the failover will make most "normal" failovers simpler as the
FAIL message will propagate before the slave election happens.
2013-03-15 16:39:49 +01:00
antirez
acddbd3000
Cluster: a bit more serious node role change handling.
2013-03-15 16:35:16 +01:00
antirez
d512a09c20
Cluster: a bit more serious node role change handling.
2013-03-15 16:35:16 +01:00
antirez
e9f97a54c5
Cluster: remove node from master slaves when it turns into a master.
...
Also, a few nearby comments improved.
2013-03-15 16:16:19 +01:00
antirez
004fbef847
Cluster: remove node from master slaves when it turns into a master.
...
Also, a few nearby comments improved.
2013-03-15 16:16:19 +01:00
antirez
5a86ea09a8
Cluster: slave failover implemented.
2013-03-15 16:11:34 +01:00
antirez
44c92f5aeb
Cluster: slave failover implemented.
2013-03-15 16:11:34 +01:00
antirez
fa4c42f230
Cluster: election -> promotion in two comments.
2013-03-15 15:44:49 +01:00
antirez
1d8f302e0d
Cluster: election -> promotion in two comments.
2013-03-15 15:44:49 +01:00
antirez
24625432b5
Cluster: added function to broadcast pings.
...
See the function top-comment for info why this is useful sometimes.
2013-03-15 15:43:58 +01:00
antirez
bf82195467
Cluster: added function to broadcast pings.
...
See the function top-comment for info why this is useful sometimes.
2013-03-15 15:43:58 +01:00
antirez
b0497233f1
Cluster: don't broadcast messages to HANDSHAKE nodes.
...
Also don't check for NOADDR as we check that node->link is not NULL
that's enough.
2013-03-15 15:36:36 +01:00
antirez
892e98548a
Cluster: don't broadcast messages to HANDSHAKE nodes.
...
Also don't check for NOADDR as we check that node->link is not NULL
that's enough.
2013-03-15 15:36:36 +01:00
antirez
e2662bdfcd
Cluster: fix clusterHandleSlaveFailover() conditional: quorum is enough.
2013-03-15 13:20:34 +01:00
antirez
76a3954f4a
Cluster: fix clusterHandleSlaveFailover() conditional: quorum is enough.
2013-03-15 13:20:34 +01:00
antirez
943e41223c
Cluster: two lame bugs fixed in FAILOVER AUTH messages generation.
2013-03-14 21:27:12 +01:00
antirez
90e99a2082
Cluster: two lame bugs fixed in FAILOVER AUTH messages generation.
2013-03-14 21:27:12 +01:00
antirez
2160788260
Cluster: code to process messages moved in the right if-else chain.
2013-03-14 21:21:58 +01:00
antirez
aeacaa57e6
Cluster: code to process messages moved in the right if-else chain.
2013-03-14 21:21:58 +01:00
antirez
63e3bc7cb3
Cluster: handle FAILOVER_AUTH_ACK messages.
...
That's trivial as we just need to increment the count of masters that
received with an ACK.
2013-03-14 16:43:13 +01:00
antirez
35f05c66b6
Cluster: handle FAILOVER_AUTH_ACK messages.
...
That's trivial as we just need to increment the count of masters that
received with an ACK.
2013-03-14 16:43:13 +01:00
antirez
0ef025313a
Cluster: request failover authorization, log if we have quorum.
...
However the failover is yet not really performed.
2013-03-14 16:39:02 +01:00
antirez
c2595500ac
Cluster: request failover authorization, log if we have quorum.
...
However the failover is yet not really performed.
2013-03-14 16:39:02 +01:00
antirez
6aec70fbc4
Cluster: clusterSendFailoverAuth() implementation.
2013-03-14 16:31:57 +01:00
antirez
7fa42b801d
Cluster: clusterSendFailoverAuth() implementation.
2013-03-14 16:31:57 +01:00
NanXiao
7b7ebdc11c
Update config.c
...
Fix bug in configGetCommand function: get correct masterauth value.
2013-03-14 13:52:43 +08:00
NanXiao
79a13b46fb
Update config.c
...
Fix bug in configGetCommand function: get correct masterauth value.
2013-03-14 13:52:43 +08:00
antirez
8b90a5ebb2
Cluster: clusterSendFailoverAuthIfNeeded() work in progress.
2013-03-13 19:08:03 +01:00