1. 09 Jul, 2012 1 commit
    • antirez's avatar
      REPLCONF internal command introduced. · b998ebe9
      antirez authored
      The REPLCONF command is an internal command (not designed to be directly
      used by normal clients) that allows a slave to set some replication
      related state in the master before issuing SYNC to start the
      replication.
      
      The initial motivation for this command, and the only reason currently
      it is used by the implementation, is to let the slave instance
      communicate its listening port to the slave, so that the master can
      show all the slaves with their listening ports in the "replication"
      section of the INFO output.
      
      This allows clients to auto discover and query all the slaves attached
      into a master.
      
      Currently only a single option of the REPLCONF command is supported, and
      it is called "listening-port", so the slave now starts the replication
      process with something like the following chat:
      
          REPLCONF listening-prot 6380
          SYNC
      
      Note that this works even if the master is an older version of Redis and
      does not understand REPLCONF, because the slave ignores the REPLCONF
      error.
      
      In the future REPLCONF can be used for partial replication and other
      replication related features where there is the need to exchange
      information between master and slave.
      
      NOTE: This commit also fixes a bug: the INFO outout already carried
      information about slaves, but the port was broken, and was obtained
      with getpeername(2), so it was actually just the ephemeral port used
      by the slave to connect to the master as a client.
      b998ebe9
  2. 12 May, 2012 2 commits
    • antirez's avatar
    • antirez's avatar
      More incremental active expired keys collection process. · 9419eb0f
      antirez authored
      If a large amonut of keys are all expiring about at the same time, the
      "active" expired keys collection cycle used to block as far as the
      percentage of already expired keys was >= 25% of the total population of
      keys with an expire set.
      
      This could block the server even for many seconds in order to reclaim
      memory ASAP. The new algorithm uses at max a small amount of
      milliseconds per cycle, even if this means reclaiming the memory less
      promptly it also means a more responsive server.
      9419eb0f
  3. 04 Apr, 2012 1 commit
  4. 29 Mar, 2012 1 commit
  5. 18 Mar, 2012 5 commits
  6. 15 Feb, 2012 6 commits
  7. 02 Feb, 2012 2 commits
  8. 12 Jan, 2012 1 commit
  9. 10 Jan, 2012 1 commit
  10. 07 Jan, 2012 1 commit
  11. 28 Nov, 2011 1 commit
  12. 24 Nov, 2011 2 commits
  13. 21 Nov, 2011 1 commit
  14. 18 Oct, 2011 2 commits
  15. 14 Oct, 2011 1 commit
  16. 10 Oct, 2011 4 commits
  17. 20 Sep, 2011 4 commits
  18. 19 Sep, 2011 1 commit
  19. 14 Sep, 2011 2 commits
  20. 13 Sep, 2011 1 commit