antirez
5cbb913994
Cluster: bus messages stats in CLUSTER info.
2013-10-02 10:10:08 +02:00
antirez
6c4d904baf
Cluster: bus messages stats in CLUSTER info.
2013-10-02 10:10:08 +02:00
antirez
90b06ab7b5
Cluster: FAIL messages from unknown senders are handled better.
...
Previously the event was not logged but instead the node reported an
unknown packet type received.
2013-10-02 09:42:45 +02:00
antirez
abe81781ae
Cluster: FAIL messages from unknown senders are handled better.
...
Previously the event was not logged but instead the node reported an
unknown packet type received.
2013-10-02 09:42:45 +02:00
antirez
3be5010adb
Cluster: senderCurrentEpoch == node currentEpoch was too strict.
...
We can accept a vote as long as its epoch is >= the epoch at which we
started the voting process. There is no need for it to be exactly the
same.
2013-10-01 17:21:28 +02:00
antirez
7970ebd80a
Cluster: senderCurrentEpoch == node currentEpoch was too strict.
...
We can accept a vote as long as its epoch is >= the epoch at which we
started the voting process. There is no need for it to be exactly the
same.
2013-10-01 17:21:28 +02:00
antirez
0000cfbf38
Cluster: fix typo in clusterProcessPacket() comment.
2013-10-01 15:40:20 +02:00
antirez
f1bfd8233b
Cluster: fix typo in clusterProcessPacket() comment.
2013-10-01 15:40:20 +02:00
antirez
6ed0dee927
Cluster: time field removed from cluster messages header.
...
The new algorithm does not check replies time as checking for the
currentEpoch in the reply ensures that the reply is about the current
election process.
2013-09-30 16:19:44 +02:00
antirez
1dedf9aa36
Cluster: time field removed from cluster messages header.
...
The new algorithm does not check replies time as checking for the
currentEpoch in the reply ensures that the reply is about the current
election process.
2013-09-30 16:19:44 +02:00
antirez
0b3a8f2072
Add REWRITE to CONFIG subcommands help message.
2013-09-30 11:53:18 +02:00
antirez
2b93a19537
Add REWRITE to CONFIG subcommands help message.
2013-09-30 11:53:18 +02:00
antirez
60d4ae49be
Cluster: log message shortened.
2013-09-30 11:51:58 +02:00
antirez
2d0844ee37
Cluster: log message shortened.
2013-09-30 11:51:58 +02:00
antirez
ec3bd0695b
Make clear that runids are not cluster node IDs.
2013-09-30 11:48:09 +02:00
antirez
707ff0f714
Make clear that runids are not cluster node IDs.
2013-09-30 11:48:09 +02:00
antirez
1239f49065
Cluster: detect cluster reconfiguration when master slots drop to 0.
...
The old algorithm used a PROMOTED flag and explicitly checks about
slave->master convertions. Wit the new cluster meta-data propagation
algorithm we just look at the configEpoch to check if we need to
reconfigure slots, then:
1) If a node is a master but it reaches zero served slots becuase of
reconfiguration.
2) If a node is a slave but the master reaches zero served slots because
of a reconfiguration.
We switch as a replica of the new slots owner.
2013-09-30 11:45:26 +02:00
antirez
4dc247eb31
Cluster: detect cluster reconfiguration when master slots drop to 0.
...
The old algorithm used a PROMOTED flag and explicitly checks about
slave->master convertions. Wit the new cluster meta-data propagation
algorithm we just look at the configEpoch to check if we need to
reconfigure slots, then:
1) If a node is a master but it reaches zero served slots becuase of
reconfiguration.
2) If a node is a slave but the master reaches zero served slots because
of a reconfiguration.
We switch as a replica of the new slots owner.
2013-09-30 11:45:26 +02:00
antirez
2a391b8bac
Cluster: re-order failover operations to make it safer.
...
We need to:
1) Increment the configEpoch.
2) Save it to disk and fsync the file.
3) Broadcast the PONG with the new configuration.
If other nodes will receive the updated configuration we need to be sure
to restart with this new config in the event of a crash.
2013-09-30 10:16:48 +02:00
antirez
62b1591439
Cluster: re-order failover operations to make it safer.
...
We need to:
1) Increment the configEpoch.
2) Save it to disk and fsync the file.
3) Broadcast the PONG with the new configuration.
If other nodes will receive the updated configuration we need to be sure
to restart with this new config in the event of a crash.
2013-09-30 10:16:48 +02:00
antirez
0b63dc2841
Cluster: when upading the configEpoch for a node, save config on disk ASAP.
2013-09-30 10:16:25 +02:00
antirez
b187517719
Cluster: when upading the configEpoch for a node, save config on disk ASAP.
2013-09-30 10:16:25 +02:00
antirez
5d393adeac
Cluster: fsync data when saving the cluster config.
2013-09-30 10:13:07 +02:00
antirez
03ca903983
Cluster: fsync data when saving the cluster config.
2013-09-30 10:13:07 +02:00
antirez
8fa4e7817a
Cluster: update the node configEpoch when newer is detected.
2013-09-27 09:55:41 +02:00
antirez
026e63392e
Cluster: update the node configEpoch when newer is detected.
2013-09-27 09:55:41 +02:00
antirez
c8d6bc94e4
Cluster: react faster when a slave wins an election.
2013-09-26 16:54:43 +02:00
antirez
7c4b8f29e7
Cluster: react faster when a slave wins an election.
2013-09-26 16:54:43 +02:00
antirez
7dfa4c5981
Cluster: removed an old source of delay to start the slave failover.
2013-09-26 13:28:19 +02:00
antirez
42fa46e49a
Cluster: removed an old source of delay to start the slave failover.
2013-09-26 13:28:19 +02:00
antirez
3bd69bcdf1
Cluster: master node now uses new protocol to vote.
2013-09-26 13:00:41 +02:00
antirez
a445aa30a0
Cluster: master node now uses new protocol to vote.
2013-09-26 13:00:41 +02:00
antirez
f941650091
Cluster: slave node now uses the new protocol to get elected.
2013-09-26 11:13:17 +02:00
antirez
fb9b76fe14
Cluster: slave node now uses the new protocol to get elected.
2013-09-26 11:13:17 +02:00
Michel Martens
17ce9a8da0
Document the redis-cli --csv option.
2013-09-26 10:12:46 +02:00
Michel Martens
347ab78e90
Document the redis-cli --csv option.
2013-09-26 10:12:46 +02:00
antirez
d392f33abb
Cluster: fix redis-trib node config fingerprinting for new nodes format.
2013-09-25 12:58:06 +02:00
antirez
656c3ffe4a
Cluster: fix redis-trib node config fingerprinting for new nodes format.
2013-09-25 12:58:06 +02:00
antirez
2cac667a8b
Cluster: fix redis-trib for added configEpoch field in CLUSTER NODES.
2013-09-25 12:44:56 +02:00
antirez
341ed1d1a8
Cluster: fix redis-trib for added configEpoch field in CLUSTER NODES.
2013-09-25 12:44:56 +02:00
antirez
24b2894194
Cluster: add currentEpoch to CLUSTER INFO.
2013-09-25 12:38:36 +02:00
antirez
32b5410af9
Cluster: add currentEpoch to CLUSTER INFO.
2013-09-25 12:38:36 +02:00
antirez
6dbd939a24
Cluster: update our currentEpoch when a greater one is seen.
2013-09-25 12:36:29 +02:00
antirez
6ec795d2cf
Cluster: update our currentEpoch when a greater one is seen.
2013-09-25 12:36:29 +02:00
antirez
1adf457b5b
Cluster: broadcast currentEpoch and configEpoch in packets header.
2013-09-25 11:53:35 +02:00
antirez
d426ada891
Cluster: broadcast currentEpoch and configEpoch in packets header.
2013-09-25 11:53:35 +02:00
antirez
cdf4eede58
Cluster: configEpoch added in cluster nodes description.
2013-09-25 11:47:13 +02:00
antirez
12483b0061
Cluster: configEpoch added in cluster nodes description.
2013-09-25 11:47:13 +02:00
antirez
98d1253053
htonu64() and ntohu64 added to endianconv.h.
2013-09-25 09:26:36 +02:00
antirez
da257afe57
htonu64() and ntohu64 added to endianconv.h.
2013-09-25 09:26:36 +02:00