summaryrefslogtreecommitdiff
path: root/src/cluster.h
Commit message (Collapse)AuthorAgeFilesLines
* Cluster: more chatty slaves when failover is stalled.antirez2014-10-071-0/+10
|
* Clean up text throughout projectMatt Stancliff2014-09-291-3/+3
| | | | | | | | | | - Remove trailing newlines from redis.conf - Fix comment misspelling - Clarifies zipEncodeLength usage and a C API mention (#1243, #1242) - Fix cluster typos (inspired by @papanikge #1507) - Fix rewite -> rewrite in a few places (inspired by #682) Closes #1243, #1242, #1507
* Cluster: new option to work with partial slots coverage.antirez2014-09-171-0/+1
|
* Use modern typedef form in cluster.h.antirez2014-08-251-5/+4
|
* Cluster: slave validity factor is now user configurable.antirez2014-05-221-1/+1
| | | | Check the commit changes in the example redis.conf for more information.
* Cluster: last_vote_epoch -> lastVoteEpoch.antirez2014-03-271-1/+1
| | | | Use cammel case for epochs that are persisted on disk.
* Cluster: better timeout and retry time for failover.antirez2014-03-101-1/+0
| | | | | | | | | When node-timeout is too small, in the order of a few milliseconds, there is no way the voting process can terminate during that time, so we set a lower limit for the failover timeout of two seconds. The retry time is set to two times the failover timeout time, so it is at least 4 seconds.
* Redis Cluster: support for multi-key operations.antirez2014-03-071-0/+7
|
* Remove redundant IP length definitionMatt Stancliff2014-03-061-1/+0
| | | | | | REDIS_CLUSTER_IPLEN had the same value as REDIS_IP_STR_LEN. They were both #define'd to the same INET6_ADDRSTRLEN.
* Fix IP representation in clusterMsgDataGossipMatt Stancliff2014-02-251-1/+1
|
* Cluster: clusterReadHandler() fixed to work with new message header.antirez2014-02-101-1/+1
|
* Cluster: signature changed to "RCmb" (Redis Cluster message bus).antirez2014-02-101-1/+1
| | | | Sounds better after all.
* Cluster: added signature + version in bus packets.antirez2014-02-101-0/+3
|
* Cluster: force AUTH ACK on manual failover.antirez2014-02-051-0/+2
| | | | | | | When a slave requests masters vote for a manual failover, the REQUEST_AUTH message is flagged in a special way in order to force the masters to give the authorization even if the master is not marked as failing.
* Cluster: manual failover initial implementation.antirez2014-02-051-1/+19
|
* Cluster: configurable replicas migration barrier.antirez2014-01-311-0/+1
| | | | | | It is possible to configure the min number of additional working slaves a master should be left with, for a slave to migrate to an orphaned master.
* Cluster: added progressive election delay according to slave rank.antirez2014-01-291-0/+1
| | | | | | Note that when we compute the initial delay, there are probably still more up to date information to receive from slaves with new offsets, so the delay is recomputed when new data is available.
* Cluster: refactoring: new macros to check node flags.antirez2014-01-291-1/+9
|
* Cluster: broadcast master/slave replication offset in bus header.antirez2014-01-281-0/+2
|
* Cluster: limit cluster.h to 80 cols.antirez2014-01-281-3/+4
|
* Cluster: introduced repl_offset fields in clusterNode.antirez2014-01-281-4/+6
| | | | | | | | | | | | The two fields are used in order to remember the latest known replication offset and the time we received it from other slave nodes. This will be used by slaves in order to start the election procedure with a delay that is proportional to the rank of the slave among the other slaves for this master, when sorted for replication offset. Usually this allows the slave with the most updated offset to win the election and replace the failing master in the cluster.
* Cluster: basic data structures for nodes black list.antirez2013-11-291-0/+1
|
* Cluster: some code about clusterHandleSlaveFailover() marginally improved.antirez2013-11-291-2/+2
| | | | 80 cols friendly, some minor change to the code to make it simpler.
* Cluster: UPDATE msg data structure and sending function.antirez2013-11-081-1/+13
|
* Cluster: time switched from seconds to milliseconds.antirez2013-10-091-8/+8
| | | | | | | | | | | All the internal state of cluster involving time is now using mstime_t and mstime() in order to use milliseconds resolution. Also the clusterCron() function is called with a 10 hz frequency instead of 1 hz. The cluster node_timeout must be also configured in milliseconds by the user in redis.conf.
* Cluster: cluster stuff moved from redis.h to cluster.h.antirez2013-10-091-0/+181