mirror of
https://github.com/fluencelabs/redis
synced 2025-06-29 08:51:33 +00:00
Cluster: time switched from seconds to milliseconds.
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.
This commit is contained in:
@ -1155,7 +1155,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
|
||||
run_with_period(1000) replicationCron();
|
||||
|
||||
/* Run the Redis Cluster cron. */
|
||||
run_with_period(1000) {
|
||||
run_with_period(100) {
|
||||
if (server.cluster_enabled) clusterCron();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user