1. 25 Feb, 2014 5 commits
  2. 20 Feb, 2014 1 commit
  3. 18 Feb, 2014 2 commits
    • antirez's avatar
      Sentinel: SENTINEL_SLAVE_RECONF_RETRY_PERIOD -> RECONF_TIMEOUT · 905c55d5
      antirez authored
      Rename define to match the new meaning.
      905c55d5
    • antirez's avatar
      Sentinel: fix slave promotion timeout. · 1b345ec3
      antirez authored
      If we can't reconfigure a slave in time during failover, go forward as
      anyway the slave will be fixed by Sentinels in the future, once they
      detect it is misconfigured.
      
      Otherwise a failover in progress may never terminate if for some reason
      the slave is uncapable to sync with the master while at the same time
      it is not disconnected.
      1b345ec3
  4. 17 Feb, 2014 1 commit
  5. 07 Feb, 2014 1 commit
  6. 03 Feb, 2014 1 commit
    • antirez's avatar
      Move mstime_t define outside sentinel.c. · ddcf1603
      antirez authored
      The define is now used in other parts of Redis 2.8 tree instead of long
      long.
      
      A nice side effect is that now 2.8 and unstable sentinel.c files are
      identical as it should be.
      ddcf1603
  7. 31 Jan, 2014 1 commit
  8. 28 Jan, 2014 1 commit
  9. 13 Jan, 2014 10 commits
  10. 13 Dec, 2013 1 commit
  11. 10 Dec, 2013 1 commit
    • antirez's avatar
      dict.c: added optional callback to dictEmpty(). · b6610a56
      antirez authored
      Redis hash table implementation has many non-blocking features like
      incremental rehashing, however while deleting a large hash table there
      was no way to have a callback called to do some incremental work.
      
      This commit adds this support, as an optiona callback argument to
      dictEmpty() that is currently called at a fixed interval (one time every
      65k deletions).
      b6610a56
  12. 06 Dec, 2013 2 commits
    • antirez's avatar
      Sentinel: fix reported role info sampling. · fba0b23e
      antirez authored
      The way the role change was recoded was not sane and too much
      convoluted, causing the role information to be not always updated.
      
      This commit fixes issue #1445.
      fba0b23e
    • antirez's avatar
      Sentinel: fix reported role fields when master is reset. · dceaca1f
      antirez authored
      When there is a master address switch, the reported role must be set to
      master so that we have a chance to re-sample the INFO output to check if
      the new address is reporting the right role.
      
      Otherwise if the role was wrong, it will be sensed as wrong even after
      the address switch, and for enough time according to the role change
      time, for Sentinel consider the master SDOWN.
      
      This fixes isue #1446, that describes the effects of this bug in
      practice.
      dceaca1f
  13. 05 Dec, 2013 1 commit
  14. 02 Dec, 2013 2 commits
    • antirez's avatar
      Sentinel: don't write HZ when flushing config. · dd0ac4ac
      antirez authored
      See issue #1419.
      dd0ac4ac
    • antirez's avatar
      Sentinel: better time desynchronization. · 75347ada
      antirez authored
      Sentinels are now desynchronized in a better way changing the time
      handler frequency between 10 and 20 HZ. This way on average a
      desynchronization of 25 milliesconds is produced that should be larger
      enough compared to network latency, avoiding most split-brain condition
      during the vote.
      
      Now that the clocks are desynchronized, to have larger random delays when
      performing operations can be easily achieved in the following way.
      Take as example the function that starts the failover, that is
      called with a frequency between 10 and 20 HZ and will start the
      failover every time there are the conditions. By just adding as an
      additional condition something like rand()%4 == 0, we can amplify the
      desynchronization between Sentinel instances easily.
      
      See issue #1419.
      75347ada
  15. 28 Nov, 2013 1 commit
  16. 26 Nov, 2013 1 commit
  17. 25 Nov, 2013 2 commits
  18. 21 Nov, 2013 6 commits