| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
|
|
|
| |
Check the commit changes in the example redis.conf for more information.
|
|
|
|
| |
Use cammel case for epochs that are persisted on disk.
|
|
|
|
|
|
|
|
|
| |
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_IPLEN had the same value as
REDIS_IP_STR_LEN. They were both #define'd
to the same INET6_ADDRSTRLEN.
|
| |
|
| |
|
|
|
|
| |
Sounds better after all.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
80 cols friendly, some minor change to the code to make it simpler.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|