Understanding latency using Redis-Cli

后端 未结 2 1626
温柔的废话
温柔的废话 2021-02-13 03:52

I\'m using the redis-cli tool to observe redis-server latency. Here\'s an example:

ubuntu:~$ redis-cli --latency -h 127.0.0.1 -p 6379
min: 0, max: 1         


        
2条回答
  •  臣服心动
    2021-02-13 04:22

    The --latency switch puts redis-cli into a special mode that is designed to help you measure the latency between the client and your Redis server. During the time it is run in that node, redis-cli pings (using the Redis PING command) the server and keeps track of the average/minimum/maximum response times it got (in milliseconds).

    This is a useful tool for ruling out network issues when you are using a remote Redis server.

提交回复
热议问题