1. 20 Nov, 2014 1 commit
    • Matt Stancliff's avatar
      Add SENTINEL INFO-CACHE [masters...] · f8c73e38
      Matt Stancliff authored
      Sentinel queries the INFO from every master and from every replica of
      every master.
      
      We can cache the INFO results in Sentinel so Sentinel can be a single
      place to quickly get all INFO output for an entire Sentinel monitoring
      group.
      
      This commit gives us SENTINEL INFO-CACHE in two forms:
        - SENTINEL INFO-CACHE — returns all masters and all replicas
        - SENTINEL INFO-CACHE master0 master1 ... masterN — vararg specify masters
      
      Results are returned as a multibulk reply with two top-level entries
      for each master.  The first entry for each master is the name of the master.
      The second entry is a nested multibulk reply with the contents of INFO,
      first for the master, then an additional entry for each of the
      replicas.
      f8c73e38
  2. 14 Nov, 2014 10 commits
  3. 12 Nov, 2014 3 commits
  4. 11 Nov, 2014 2 commits
    • antirez's avatar
      Diskless SYNC: fix RDB EOF detection. · bb7fea0d
      antirez authored
      RDB EOF detection was relying on the final part of the RDB transfer to
      be a magic 40 bytes EOF marker. However as the slave is put online
      immediately, and because of sockets timeouts, the replication stream is
      actually contiguous with the RDB file.
      
      This means that to detect the EOF correctly we should either:
      
      1) Scan all the stream searching for the mark. Sucks CPU-wise.
      2) Start to send the replication stream only after an acknowledge.
      3) Implement a proper chunked encoding.
      
      For now solution "2" was picked, so the master does not start to send
      ASAP the stream of commands in the case of diskless replication. We wait
      for the first REPLCONF ACK command from the slave, that certifies us
      that the slave correctly loaded the RDB file and is ready to get more
      data.
      bb7fea0d
    • antirez's avatar
  5. 31 Oct, 2014 2 commits
  6. 30 Oct, 2014 1 commit
  7. 29 Oct, 2014 6 commits
  8. 27 Oct, 2014 6 commits
  9. 24 Oct, 2014 3 commits
  10. 23 Oct, 2014 1 commit
  11. 22 Oct, 2014 3 commits
  12. 17 Oct, 2014 2 commits