• Huang Zhw's avatar
    Add INFO stat total_eviction_exceeded_time and current_eviction_exceeded_time (#9031) · 17511df5
    Huang Zhw authored
    
    
    Add two INFO metrics:
    ```
    total_eviction_exceeded_time:69734
    current_eviction_exceeded_time:10230
    ```
    `current_eviction_exceeded_time` if greater than 0, means how much time current used memory is greater than `maxmemory`. And we are still over the maxmemory. If used memory is below `maxmemory`, this metric is reset to 0.
    `total_eviction_exceeded_time` means total time used memory is greater than `maxmemory` since server startup. 
    The units of these two metrics are ms.
    Co-authored-by: default avatarOran Agra <oran@redislabs.com>
    17511df5
server.c 234 KB