antirez
b7d085fc0d
Cluster: SLAVEOF command not allowed in cluster mode.
2013-03-05 12:39:41 +01:00
antirez
a06092c576
Cluster: A comment updated in clusterCron().
2013-03-05 12:17:30 +01:00
antirez
e4b481a5f6
Cluster: A comment updated in clusterCron().
2013-03-05 12:17:30 +01:00
antirez
de720e4f0a
Cluster: send a ping to every node we never contacted in timeout/2 seconds.
...
Usually we try to send just 1 ping every second, however when we detect
we are going to have unreliable failure detection because we can't ping
some node in time, send an additional ping.
This should only happen with very large clusters or when the the node
timeout is set to a very low value.
2013-03-05 12:16:02 +01:00
antirez
d728ec6dee
Cluster: send a ping to every node we never contacted in timeout/2 seconds.
...
Usually we try to send just 1 ping every second, however when we detect
we are going to have unreliable failure detection because we can't ping
some node in time, send an additional ping.
This should only happen with very large clusters or when the the node
timeout is set to a very low value.
2013-03-05 12:16:02 +01:00
antirez
401893bc38
Cluster: set node->slaveof correctly when a node state is updated.
2013-03-05 11:50:11 +01:00
antirez
e7628be2a7
Cluster: set node->slaveof correctly when a node state is updated.
2013-03-05 11:50:11 +01:00
antirez
8eb9c13dcf
Cluster: don't perform startup slots sanity check for slaves.
...
If we are a cluster node the DB content will not match our configured
slots. Don't do the check at all.
2013-03-04 19:47:00 +01:00
antirez
d6457577d4
Cluster: don't perform startup slots sanity check for slaves.
...
If we are a cluster node the DB content will not match our configured
slots. Don't do the check at all.
2013-03-04 19:47:00 +01:00
antirez
63cac938b3
Cluster: fix maximum line length when loading config.
...
There are pathological cases where the line can be even longer a single
node may contain all the slots in importing/migrating state.
2013-03-04 19:45:36 +01:00
antirez
d334897e80
Cluster: fix maximum line length when loading config.
...
There are pathological cases where the line can be even longer a single
node may contain all the slots in importing/migrating state.
2013-03-04 19:45:36 +01:00
antirez
7cf96d66ef
Make sure replicationSetMaster() works when ip argument is not an sds.
2013-03-04 15:39:55 +01:00
antirez
3be893123f
Make sure replicationSetMaster() works when ip argument is not an sds.
2013-03-04 15:39:55 +01:00
antirez
9e34d02450
Cluster: actually setup replication in CLUSTER REPLICATE.
2013-03-04 15:27:58 +01:00
antirez
b8a28bf442
Cluster: actually setup replication in CLUSTER REPLICATE.
2013-03-04 15:27:58 +01:00
antirez
06fa5f82d7
SLAVEOF command refactored into a proper API.
...
We now have replicationSetMaster() and replicationUnsetMaster() that can
be called in other contexts (for instance Redis Cluster).
2013-03-04 13:22:21 +01:00
antirez
7bead003e2
SLAVEOF command refactored into a proper API.
...
We now have replicationSetMaster() and replicationUnsetMaster() that can
be called in other contexts (for instance Redis Cluster).
2013-03-04 13:22:21 +01:00
antirez
e6da336d19
Cluster: REPLICATE subcommand and stub for clusterSetMaster().
2013-03-04 13:15:09 +01:00
antirez
0c01088b51
Cluster: REPLICATE subcommand and stub for clusterSetMaster().
2013-03-04 13:15:09 +01:00
charsyam
466e2de67d
adding check error code
...
adding check error code
2013-03-04 11:20:11 +01:00
charsyam
bc84c399f8
adding check error code
...
adding check error code
2013-03-04 11:20:11 +01:00
antirez
824879435c
redis-cli: use keepalive socket option.
...
This should improve things in two ways:
1) Prevent timeouts caused by the execution of long commands.
2) Improve detection of real connection errors.
This is mostly effective only on Linux because of the bogus default
keepalive settings. In Linux we have OS-specific calls to set the
keepalive interval to reasonable values.
2013-03-04 11:14:32 +01:00
antirez
3b3974410e
redis-cli: use keepalive socket option.
...
This should improve things in two ways:
1) Prevent timeouts caused by the execution of long commands.
2) Improve detection of real connection errors.
This is mostly effective only on Linux because of the bogus default
keepalive settings. In Linux we have OS-specific calls to set the
keepalive interval to reasonable values.
2013-03-04 11:14:32 +01:00
Salvatore Sanfilippo
22911ac922
Merge pull request #967 from 0x20h/fix-git-diff
...
suppress external diff program when using git diff.
2013-03-04 01:57:01 -08:00
Salvatore Sanfilippo
174e51cb75
Merge pull request #967 from 0x20h/fix-git-diff
...
suppress external diff program when using git diff.
2013-03-04 01:57:01 -08:00
Stam He
e795f82438
point 2 of slave-serve-stale-data miss '-' between 'stale' and 'data'
2013-03-04 10:49:07 +01:00
Stam He
d783860457
point 2 of slave-serve-stale-data miss '-' between 'stale' and 'data'
2013-03-04 10:49:07 +01:00
antirez
19833a01f2
Cluster: don't set the slot as unassigned because of PONG info.
...
As stated in the comment this is usually due to a resharding in progress
so the client should be still redirected to the old node that will
handle the redirection elsewhere.
2013-02-28 15:54:29 +01:00
antirez
caf9b24a7d
Cluster: don't set the slot as unassigned because of PONG info.
...
As stated in the comment this is usually due to a resharding in progress
so the client should be still redirected to the old node that will
handle the redirection elsewhere.
2013-02-28 15:54:29 +01:00
antirez
de254ffdb4
Cluster: better handling of slots changes in PONG packets.
...
The new code makes sure that the node slots bitmap is always consistent
with the cluster->slots array.
2013-02-28 15:41:54 +01:00
antirez
0d77440b26
Cluster: better handling of slots changes in PONG packets.
...
The new code makes sure that the node slots bitmap is always consistent
with the cluster->slots array.
2013-02-28 15:41:54 +01:00
antirez
4d353074ba
Cluster: refactoring of clusterNode*Bit to use helper bitmap functions.
2013-02-28 15:23:09 +01:00
antirez
5f8fd27ace
Cluster: refactoring of clusterNode*Bit to use helper bitmap functions.
2013-02-28 15:23:09 +01:00
antirez
a535d4b477
Cluster: use node->numslots instead of popcount() where possible.
2013-02-28 15:13:32 +01:00
antirez
d21d6b666f
Cluster: use node->numslots instead of popcount() where possible.
2013-02-28 15:13:32 +01:00
antirez
7348dbc52c
Cluster: new field in cluster node structure, "numslots".
...
Before a relatively slow popcount() operation was needed every time we
needed to get the number of slots served by a given cluster node.
Now we just need to check an integer that is taken in sync with the
bitmap.
2013-02-28 15:11:05 +01:00
antirez
4521115b17
Cluster: new field in cluster node structure, "numslots".
...
Before a relatively slow popcount() operation was needed every time we
needed to get the number of slots served by a given cluster node.
Now we just need to check an integer that is taken in sync with the
bitmap.
2013-02-28 15:11:05 +01:00
antirez
bee0907fa4
Cluster: don't gossip about nodes that are not useful to the cluster.
2013-02-28 15:00:09 +01:00
antirez
a2566d6618
Cluster: don't gossip about nodes that are not useful to the cluster.
2013-02-28 15:00:09 +01:00
antirez
5e5b822277
redis-trib: skip nodes without slots when creating the config signature.
2013-02-28 13:12:56 +01:00
antirez
bc922dc688
redis-trib: skip nodes without slots when creating the config signature.
2013-02-28 13:12:56 +01:00
antirez
f7e497ce38
redis-trib help.
2013-02-27 18:02:22 +01:00
antirez
64942fca01
redis-trib help.
2013-02-27 18:02:22 +01:00
antirez
1faf992b16
Cluster: CLUSTER FORGET implemented.
2013-02-27 17:55:59 +01:00
antirez
d45d184118
Cluster: CLUSTER FORGET implemented.
2013-02-27 17:55:59 +01:00
antirez
fae00c9998
Cluster: added a missing return on CLUSTER SETSLOT.
2013-02-27 17:53:48 +01:00
antirez
d2b8281b3f
Cluster: added a missing return on CLUSTER SETSLOT.
2013-02-27 17:53:48 +01:00
antirez
8d4ae49ece
redis-trib: skip noaddr and disconnected nodes while loading cluster info.
2013-02-27 17:23:11 +01:00
antirez
7ddc0fe652
redis-trib: skip noaddr and disconnected nodes while loading cluster info.
2013-02-27 17:23:11 +01:00
antirez
1841332778
Cluster: blank node address when flagging it as NOADDR.
2013-02-27 17:09:33 +01:00