1. 02 12月, 2013 3 次提交
    • A
      Sentinel: don't write HZ when flushing config. · f80cf736
      antirez 提交于
      See issue #1419.
      f80cf736
    • A
      Sentinel: better time desynchronization. · dffebbc9
      antirez 提交于
      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.
      dffebbc9
    • A
      Cluster: nodes re-addition blacklist API. · 6fa42b75
      antirez 提交于
      6fa42b75
  2. 30 11月, 2013 1 次提交
  3. 29 11月, 2013 1 次提交
  4. 28 11月, 2013 3 次提交
  5. 26 11月, 2013 2 次提交
  6. 25 11月, 2013 3 次提交
  7. 22 11月, 2013 1 次提交
  8. 21 11月, 2013 8 次提交
  9. 20 11月, 2013 3 次提交
  10. 19 11月, 2013 12 次提交
  11. 18 11月, 2013 3 次提交
    • A
      Sentinel: added config options useful to take state on config rewrite. · 232cdb95
      antirez 提交于
      We'll use CONFIG REWRITE (internally) in order to store the new
      configuration of a Sentinel after the internal state changes. In order
      to do so, we need configuration options (that usually the user will not
      touch at all) about config epoch of the master, Sentinels and Slaves
      known for this master, and so forth.
      232cdb95
    • A
      Sentinel: failover abort function simplified. · 3a374b05
      antirez 提交于
      3a374b05
    • A
      Sentinel: slaves reconfig delay modified. · e0750acf
      antirez 提交于
      The time Sentinel waits since the slave is detected to be configured to
      the wrong master, before reconfiguring it, is now the failover_timeout
      time as this makes more sense in order to give the Sentinel performing
      the failover enoung time to reconfigure the slaves slowly (if required
      by the configuration).
      
      Also we now PUBLISH more frequently the new configuraiton as this allows
      to switch the reapprearing master back to slave faster.
      e0750acf