1. 12 2月, 2014 2 次提交
    • A
      AOF write error: retry with a frequency of 1 hz. · 96973a7c
      antirez 提交于
      96973a7c
    • A
      AOF: don't abort on write errors unless fsync is 'always'. · fadbbdd3
      antirez 提交于
      A system similar to the RDB write error handling is used, in which when
      we can't write to the AOF file, writes are no longer accepted until we
      are able to write again.
      
      For fsync == always we still abort on errors since there is currently no
      easy way to avoid replying with success to the user otherwise, and this
      would violate the contract with the user of only acknowledging data
      already secured on disk.
      fadbbdd3
  2. 08 2月, 2014 1 次提交
  3. 07 2月, 2014 1 次提交
  4. 03 2月, 2014 1 次提交
  5. 31 1月, 2014 2 次提交
  6. 28 1月, 2014 1 次提交
  7. 23 12月, 2013 1 次提交
  8. 19 12月, 2013 1 次提交
  9. 11 12月, 2013 1 次提交
    • A
      Replication: publish the slave_repl_offset when disconnected from master. · 9a8ae5a5
      antirez 提交于
      When a slave was disconnected from its master the replication offset was
      reported as -1. Now it is reported as the replication offset of the
      previous master, so that failover can be performed using this value in
      order to try to select a slave with more processed data from a set of
      slaves of the old master.
      9a8ae5a5
  10. 05 12月, 2013 1 次提交
  11. 28 11月, 2013 2 次提交
  12. 21 11月, 2013 2 次提交
    • A
      Sentinel: test for writable config file. · 4bd1dd1c
      antirez 提交于
      This commit introduces a funciton called when Sentinel is ready for
      normal operations to avoid putting Sentinel specific stuff in redis.c.
      4bd1dd1c
    • A
      Sentinel: distinguish between is-master-down-by-addr requests. · 812f76a8
      antirez 提交于
      Some are just to know if the master is down, and in this case the runid
      in the request is set to "*", others are actually in order to seek for a
      vote and get elected. In the latter case the runid is set to the runid
      of the instance seeking for the vote.
      812f76a8
  13. 29 10月, 2013 6 次提交
  14. 17 9月, 2013 1 次提交
  15. 27 8月, 2013 1 次提交
  16. 22 8月, 2013 2 次提交
  17. 21 8月, 2013 4 次提交
  18. 06 8月, 2013 6 次提交
    • A
      Add per-db average TTL information in INFO output. · fa48b1fa
      antirez 提交于
      Example:
      
      db0:keys=221913,expires=221913,avg_ttl=655
      
      The algorithm uses a running average with only two samples (current and
      previous). Keys found to be expired are considered at TTL zero even if
      the actual TTL can be negative.
      
      The TTL is reported in milliseconds.
      fa48b1fa
    • A
      activeExpireCycle(): fix about fast cycle early start. · 31d0f341
      antirez 提交于
      We don't want to repeat a fast cycle too soon, the previous code was
      broken, we need to wait two times the period *since* the start of the
      previous cycle in order to avoid there is an even space between cycles:
      
      .-> start                   .-> second start
      |                           |
      +-------------+-------------+--------------+
      | first cycle |    pause    | second cycle |
      +-------------+-------------+--------------+
      
      The second and first start must be PERIOD*2 useconds apart hence the *2
      in the new code.
      31d0f341
    • A
      Some activeExpireCycle() refactoring. · 00c8cfef
      antirez 提交于
      00c8cfef
    • A
      Remove dead code and fix comments for new expire code. · 8686a703
      antirez 提交于
      8686a703
    • A
      Darft #2 for key collection algo: more improvements. · d54e373b
      antirez 提交于
      This commit makes the fast collection cycle time configurable, at
      the same time it does not allow to run a new fast collection cycle
      for the same amount of time as the max duration of the fast
      collection cycle.
      d54e373b
    • A
      Draft #1 of a new expired keys collection algorithm. · 500155b9
      antirez 提交于
      The main idea here is that when we are no longer to expire keys at the
      rate the are created, we can't block more in the normal expire cycle as
      this would result in too big latency spikes.
      
      For this reason the commit introduces a "fast" expire cycle that does
      not run for more than 1 millisecond but is called in the beforeSleep()
      hook of the event loop, so much more often, and with a frequency bound
      to the frequency of executed commnads.
      
      The fast expire cycle is only called when the standard expiration
      algorithm runs out of time, that is, consumed more than
      REDIS_EXPIRELOOKUPS_TIME_PERC of CPU in a given cycle without being able
      to take the number of already expired keys that are yet not collected
      to a number smaller than 25% of the number of keys.
      
      You can test this commit with different loads, but a simple way is to
      use the following:
      
      Extreme load with pipelining:
      
      redis-benchmark -r 100000000 -n 100000000  \
              -P 32 set ele:rand:000000000000 foo ex 2
      
      Remove the -P32 in order to avoid the pipelining for a more real-world
      load.
      
      In another terminal tab you can monitor the Redis behavior with:
      
      redis-cli -i 0.1 -r -1 info keyspace
      
      and
      
      redis-cli --latency-history
      
      Note: this commit will make Redis printing a lot of debug messages, it
      is not a good idea to use it in production.
      500155b9
  19. 18 7月, 2013 1 次提交
  20. 16 7月, 2013 1 次提交
  21. 12 7月, 2013 1 次提交
  22. 11 7月, 2013 1 次提交