- 08 Mar, 2012 2 commits
-
-
antirez authored
The Run ID is a field that identifies a single execution of the Redis server. It can be useful for many purposes as it makes easy to detect if the instance we are talking about is the same, or if it is a different one or was rebooted. An application of run_id will be in the partial synchronization of replication, where a slave may request a partial sync from a given offset only if it is talking with the same master. Another application is in failover and monitoring scripts.
-
antirez authored
clusterGetRandomName() generalized into getRandomHexChars() so that we can use it for the run_id field as well.
-
- 07 Mar, 2012 4 commits
-
-
antirez authored
By default Redis refuses writes with an error if the latest BGSAVE failed (and at least one save point is configured). However people having good monitoring systems may prefer a server that continues to work, since they are notified that there are problems by their monitoring systems. This commit implements the ability to turn the feature on or off via redis.conf and CONFIG SET.
-
antirez authored
Redis now refuses accepting write queries if RDB persistence is configured, but RDB snapshots can't be generated for some reason. The status of the latest background save operation is now exposed in the INFO output as well. This fixes issue #90.
-
antirez authored
Better MONITOR output, now includes client ip:port or the lua string if the command was executed by the scripting engine.
-
antirez authored
-
- 29 Feb, 2012 1 commit
-
-
antirez authored
-
- 28 Feb, 2012 4 commits
-
-
antirez authored
The new code uses a more generic data structure to describe redis operations. The new design allows for multiple alsoPropagate() calls within the scope of a single command, that is useful in different contexts. For instance there when there are multiple clients doing BRPOPLPUSH against the same list, and a variadic LPUSH is performed against this list, the blocked clients will both be served, and we should correctly replicate multiple LPUSH commands after the replication of the current command.
-
antirez authored
Added a new API to replicate an additional command after the replication of the currently executed command, in order to propagte the LPUSH originating from RPOPLPUSH and indirectly by BRPOPLPUSH.
-
antirez authored
-
antirez authored
-
- 06 Feb, 2012 1 commit
-
-
antirez authored
-
- 04 Feb, 2012 2 commits
-
-
antirez authored
1) sendReplyToClient() now no longer stops transferring data to a single client in the case we are out of memory (maxmemory-wise). 2) in processCommand() the idea of we being out of memory is no longer the naive zmalloc_used_memory() > server.maxmemory. To say if we can accept or not write queries is up to the return value of freeMemoryIfNeeded(), that has full control about that. 3) freeMemoryIfNeeded() now does its math without considering output buffers size. But at the same time it can't let the output buffers to put us too much outside the max memory limit, so at the same time it makes sure there is enough effort into delivering the output buffers to the slaves, calling the write handler directly. This three changes are the result of many tests, I found (partially empirically) that is the best way to address the problem, but maybe we'll find better solutions in the future.
-
antirez authored
Use less memory when emitting the protocol, by using more shared objects for commonly emitted parts of the protocol.
-
- 02 Feb, 2012 2 commits
- 01 Feb, 2012 1 commit
-
-
antirez authored
SORT is now more deterministic: does not accept to compare by score items that have scores not representing a valid double. Also items with the same score are compared lexycographically. At the same time the scripting side introduced the ability to sort the output of SORT when sort uses the BY <constant> optimization, resulting in no specific ordering. Since in this case the user may use GET, and the result of GET can be null, converted into false as Lua data type, this commit also introduces the ability to sort Lua tables containining false, only if the first (faster) attempt at using just table.sort with a single argument fails.
-
- 31 Jan, 2012 2 commits
-
-
antirez authored
Order output of commands returning random arrays using table.sort when called from Lua, partially fixing issue #165. The issue is yet not completely fixed since we can't add the REDIS_CMD_SORT_FOR_SCRIPT flag in SORT currently, both because it may contain NULLs and because it is not cool to re-sort everything at every call when instead this should be sorted only if BY <constant> is used.
-
antirez authored
-
- 24 Jan, 2012 2 commits
-
-
antirez authored
Client output buffer limits: configuration of parameters for the different classes of clients implemented.
-
antirez authored
asyncCloseClientOnOutputBufferLimitReached() now ignores clients with REDIS_CLOSE_ASAP flag already set. Return value of the function changed from int to void since it is not used. Fixed logging of the client scheduled to be closed.
-
- 23 Jan, 2012 1 commit
-
-
antirez authored
Implementation of the internals that make possible to terminate clients overcoming configured output buffer (soft and hard) limits.
-
- 20 Jan, 2012 2 commits
- 17 Jan, 2012 2 commits
- 12 Jan, 2012 1 commit
-
-
antirez authored
On crash print information about the current client (if any), command vector, and object associated to first argument assuming it is a key.
-
- 31 Dec, 2011 3 commits
- 30 Dec, 2011 1 commit
-
-
antirez authored
Fixed replication when multiple slaves are attaching at the same time. The output buffer was not copied correctly between slaves. This fixes issue #141.
-
- 21 Dec, 2011 6 commits
-
-
antirez authored
-
antirez authored
-
antirez authored
-
antirez authored
AOF fileds in the global server state, and define names, renamed with more consistent names. More work to do.
-
antirez authored
-
antirez authored
server.appendonly -> server.aof_state, and many comments added in the server global state structure in the process.
-
- 15 Dec, 2011 1 commit
-
-
antirez authored
AOF fixes in the context of replicaiton (when AOF is used by slave) and CONFIG SET appendonly yes/no.
-
- 13 Dec, 2011 1 commit
-
-
antirez authored
-
- 01 Dec, 2011 1 commit
-
-
antirez authored
-