• 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
redis.c 125.2 KB