- 06 10月, 2016 2 次提交
-
-
由 antirez 提交于
-
由 antirez 提交于
It was noted by @dvirsky that it is not possible to use string functions when writing the AOF file. This sometimes is critical since the command rewriting may need to be built in the context of the AOF callback, and without access to the context, and the limited types that the AOF production functions will accept, this can be an issue. Moreover there are other needs that we can't anticipate regarding the ability to use Redis Modules APIs using the context in order to build representations to emit AOF / RDB. Because of this a new API was added that allows the user to get a temporary context from the IO context. The context is auto released if obtained when the RDB / AOF callback returns. Calling multiple time the function to get the context, always returns the same one, since it is invalid to have more than a single context.
-
- 19 9月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 16 9月, 2016 3 次提交
- 15 9月, 2016 2 次提交
- 13 9月, 2016 2 次提交
-
-
由 antirez 提交于
This code was extracted from @oranagra PR #3223 and modified in order to provide only certain amounts of information compared to the original code. It was also moved from DEBUG to the newly introduced MEMORY command. Thanks to Oran for the implementation and the PR. It implements detailed memory usage stats that can be useful in both provisioning and troubleshooting memory usage in Redis.
-
由 antirez 提交于
For most tasks, we need the memory estimation to be O(1) by default. This commit also implements an initial MEMORY command. Note that objectComputeSize() takes the number of samples to check as argument, so MEMORY should be able to get the sample size as option to make precision VS CPU tradeoff tunable. Related to: PR #3223.
-
- 09 8月, 2016 2 次提交
- 03 8月, 2016 1 次提交
-
-
由 antirez 提交于
This is an attempt at mitigating problems due to cross protocol scripting, an attack targeting services using line oriented protocols like Redis that can accept HTTP requests as valid protocol, by discarding the invalid parts and accepting the payloads sent, for example, via a POST request. For this to be effective, when we detect POST and Host: and terminate the connection asynchronously, the networking code was modified in order to never process further input. It was later verified that in a pipelined request containing a POST command, the successive commands are not executed.
-
- 27 7月, 2016 1 次提交
-
-
由 antirez 提交于
This feature is useful, especially in deployments using Sentinel in order to setup Redis HA, where the slave is executed with NAT or port forwarding, so that the auto-detected port/ip addresses, as listed in the "INFO replication" output of the master, or as provided by the "ROLE" command, don't match the real addresses at which the slave is reachable for connections.
-
- 22 7月, 2016 1 次提交
-
-
由 antirez 提交于
This patch, written in collaboration with Oran Agra (@oranagra) is a companion to 780a8b1d. Together the two patches should avoid that the AOF and RDB saving processes can be spawned at the same time. Previously conditions that could lead to two saving processes at the same time were: 1. When AOF is enabled via CONFIG SET and an RDB saving process is already active. 2. When the SYNC command decides to start an RDB saving process ASAP in order to serve a new slave that cannot partially resynchronize (but only if we have a disk target for replication, for diskless replication there is not such a problem). Condition "1" is not very severe but "2" can happen often and is definitely good at degrading Redis performances in an unexpected way. The two commits have the effect of always spawning RDB savings for replication in replicationCron() instead of attempting to start an RDB save synchronously. Moreover when a BGSAVE or AOF rewrite must be performed, they are instead just postponed using flags that will try to perform such operations ASAP. Finally the BGSAVE command was modified in order to accept a SCHEDULE option so that if an AOF rewrite is in progress, when this option is given, the command no longer returns an error, but instead schedules an RDB rewrite operation for when it will be possible to start it.
-
- 21 7月, 2016 1 次提交
-
-
由 antirez 提交于
Precision of the eviction improved sensibly. Also this allows us to have a single code path for most eviction types.
-
- 20 7月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 15 7月, 2016 1 次提交
-
-
由 antirez 提交于
Implementation of LFU maxmemory policy for anything related to Redis objects. Still no actual eviction implemented.
-
- 13 7月, 2016 1 次提交
-
-
由 antirez 提交于
The LRU eviction code used to make local choices: for each DB visited it selected the best key to evict. This was repeated for each DB. However this means that there could be DBs with very frequently accessed keys that are targeted by the LRU algorithm while there were other DBs with many better candidates to expire. This commit attempts to fix this problem for the LRU policy. However the TTL policy is still not fixed by this commit. The TTL policy will be fixed in a successive commit. This is an initial (partial because of TTL policy) fix for issue #2647.
-
- 12 7月, 2016 2 次提交
- 06 7月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 04 7月, 2016 1 次提交
-
-
由 antirez 提交于
We already changed the default in the redis.conf template, but I forgot to change the internal config as well.
-
- 01 7月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 23 6月, 2016 1 次提交
-
-
由 Yossi Gottlieb 提交于
-
- 21 6月, 2016 1 次提交
-
-
由 Yossi Gottlieb 提交于
-
- 14 6月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 13 6月, 2016 2 次提交
- 05 6月, 2016 2 次提交
-
-
由 Yossi Gottlieb 提交于
-
由 Yossi Gottlieb 提交于
-
- 04 6月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 01 6月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 18 5月, 2016 1 次提交
-
-
由 antirez 提交于
-
- 10 5月, 2016 6 次提交