1. 10 7月, 2014 3 次提交
    • A
      LATENCY SAMPLES implemented. · a57eb327
      antirez 提交于
      a57eb327
    • A
      Latency monitor: collect slow commands. · 72c84acc
      antirez 提交于
      We introduce the distinction between slow and fast commands since those
      are two different sources of latency. An O(1) or O(log N) command without
      side effects (can't trigger deletion of large objects as a side effect of
      its execution) if delayed is a symptom of inherent latency of the system.
      
      A non-fast command (commands that may run large O(N) computations) if
      delayed may just mean that the user is executing slow operations.
      
      The advices LATENCY should provide in this two different cases are
      different, so we log the two classes of commands in a separated way.
      72c84acc
    • A
      Latency monitor: basic samples collection. · 58ecc0bd
      antirez 提交于
      58ecc0bd
  2. 03 7月, 2014 1 次提交
  3. 30 6月, 2014 2 次提交
  4. 28 6月, 2014 10 次提交
    • A
      COMMAND COUNT subcommand added. · 63feb93a
      antirez 提交于
      63feb93a
    • A
      COMMAND: fix argument parsing. · 0a6649a7
      antirez 提交于
      This fixes detection of wrong subcommand (that resulted in the default
      all-commands output instead) and allows COMMAND INFO to be called
      without arguments (resulting into an empty array) which is useful in
      programmtically generated calls like the following (in Ruby):
      
          redis.commands("command","info",*mycommands)
      
      Note: mycommands may be empty.
      0a6649a7
    • A
      COMMANDS command renamed COMMAND. · 53377f8c
      antirez 提交于
      53377f8c
    • A
      COMMANDS command: remove static + aesthetic changes. · f3efd529
      antirez 提交于
      Static was removed since it is needed in order to get symbols in stack
      traces. Minor changes in the source code were operated to make it more
      similar to the existing Redis code base.
      f3efd529
    • M
      Cluster: Add COMMANDS command · fdc5dbd5
      Matt Stancliff 提交于
      COMMANDS returns a nested multibulk reply for each
      command in the command table.  The reply for each
      command contains:
        - command name
        - arity
        - array of command flags
        - start key position
        - end key position
        - key offset step
        - optional: if the keys are not deterministic and
          Redis uses an internal key evaluation function,
          the 6th field appears and is defined as a status
          reply of: REQUIRES ARGUMENT PARSING
      
      Cluster clients need to know where the keys are in each
      command to implement proper routing to cluster nodes.
      
      Redis commands can have multiple keys, keys at offset steps, or other
      issues where you can't always assume the first element after
      the command name is the cluster routing key.
      
      Using the information exposed by COMMANDS, client implementations
      can have live, accurate key extraction details for all commands.
      
      Also implements COMMANDS INFO [commands...] to return only a
      specific set of commands instead of all 160+ commands live in Redis.
      fdc5dbd5
    • A
      Remove infinite loop from PSYNC test. · afe949ef
      antirez 提交于
      Added for debugging and forgot there.
      afe949ef
    • A
      Test: hopefully more robust PSYNC test. · 1066fed7
      antirez 提交于
      This is supposed to fix issue #1417, but we'll know if this is enough
      only after a couple of runs of the CI test without false positives.
      1066fed7
    • M
      Allow __powerpc__ to define HAVE_ATOMIC too · cd4f0dc7
      Matt Stancliff 提交于
      From mailing list post https://groups.google.com/forum/#!topic/redis-db/D3k7KmJmYgM
      
      In the file “config.h”, the definition HAVE_ATOMIC is used to indicate
      if an architecture on which redis is implemented supports atomic
      synchronization primitives.  Powerpc  supports atomic synchronization
      primitives, however, it is not listed as one of the architectures
      supported in config.h. This patch  adds the __powerpc__ to the list of
      architectures supporting these primitives. The improvement of redis
      due to the atomic synchronization on powerpc is significant,
      around 30% to 40%, over the default implementation using pthreads.
      
      This proposal adds __powerpc__ to the list of architectures designated
      to support atomic builtins.
      cd4f0dc7
    • M
      Allow atomic memory count update with C11 builtins · 58fea469
      Matt Stancliff 提交于
      From mailing list post https://groups.google.com/forum/#!topic/redis-db/QLjiQe4D7LA
      
      In zmalloc.c the following primitives are currently used
      to synchronize access to single global variable:
      __sync_add_and_fetch
      __sync_sub_and_fetch
      
      In some architectures such as powerpc these primitives are overhead
      intensive. More efficient C11 __atomic builtins are available with
      newer GCC versions, see
      http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/_005f_005fatomic-Builtins.html#_005f_005fatomic-Builtins
      
      By substituting the following  __atomic… builtins:
      __atomic_add_fetch
      __atomic_sub_fetch
      
      the performance improvement on certain architectures such as powerpc can be significant,
      around 10% to 15%, over the implementation using __sync builtins while there is only slight uptick on
      Intel architectures because it was already enforcing Intel Strongly ordered memory semantics.
      
      The selection of __atomic built-ins can be predicated on the definition of ATOMIC_RELAXED
      which Is available on in gcc 4.8.2 and later versions.
      58fea469
    • M
      Use predefined macro for used_memory() update · ff3ca17b
      Matt Stancliff 提交于
      ff3ca17b
  5. 27 6月, 2014 3 次提交
  6. 24 6月, 2014 1 次提交
  7. 23 6月, 2014 11 次提交
  8. 21 6月, 2014 9 次提交
    • A
      Test: AOF test false positive when running in slow hosts. · 061fd997
      antirez 提交于
      The bug was triggered by running the test with Valgrind (which is a lot
      slower and more sensible to timing issues) after the recent changes
      that made Redis more promptly able to reply with the -LOADING error.
      061fd997
    • A
      Allow to call ROLE in LOADING state. · 2b805ce1
      antirez 提交于
      2b805ce1
    • A
      ROLE command: array len fixed for slave output. · 8c460a28
      antirez 提交于
      8c460a28
    • A
      Sentinel: send SLAVEOF with MULTI, CLIENT KILL, CONFIG REWRITE. · 7d0992da
      antirez 提交于
      This implements the new Sentinel-Client protocol for the Sentinel part:
      now instances are reconfigured using a transaction that ensures that the
      config is rewritten in the target instance, and that clients lose the
      connection with the instance, in order to be forced to: ask Sentinel,
      reconnect to the instance, and verify the instance role with the new
      ROLE command.
      7d0992da
    • A
      CLIENT KILL API modified. · 674194ad
      antirez 提交于
      Added a new SKIPME option that is true by default, that prevents the
      client sending the command to be killed, unless SKIPME NO is sent.
      674194ad
    • A
      CLIENT KILL: fix closing link of the current client. · 61d9a73d
      antirez 提交于
      61d9a73d
    • A
      New features for CLIENT KILL. · 09dc6dad
      antirez 提交于
      09dc6dad
    • A
      Assign an unique non-repeating ID to each new client. · cad13223
      antirez 提交于
      This will be used by CLIENT KILL and is also a good way to ensure a
      given client is still the same across CLIENT LIST calls.
      
      The output of CLIENT LIST was modified to include the new ID, but this
      change is considered to be backward compatible as the API does not imply
      you can do positional parsing, since each filed as a different name.
      cad13223
    • A
      Client types generalized. · b6a26b52
      antirez 提交于
      Because of output buffer limits Redis internals had this idea of type of
      clients: normal, pubsub, slave. It is possible to set different output
      buffer limits for the three kinds of clients.
      
      However all the macros and API were named after output buffer limit
      classes, while the idea of a client type is a generic one that can be
      reused.
      
      This commit does two things:
      
      1) Rename the API and defines with more general names.
      2) Change the class of clients executing the MONITOR command from "slave"
         to "normal".
      
      "2" is a good idea because you want to have very special settings for
      slaves, that are not a good idea for MONITOR clients that are instead
      normal clients even if they are conceptually slave-alike (since it is a
      push protocol).
      
      The backward-compatibility breakage resulting from "2" is considered to
      be minimal to care, since MONITOR is a debugging command, and because
      anyway this change is not going to break the format or the behavior, but
      just when a connection is closed on big output buffer issues.
      b6a26b52