redis慢日志什么意思

lewis 2018-10-05 23次阅读

redis慢日志是redis用于记录慢查询执行时间的日志系统,而Slowlog是Redis从2.2.12版本引入的一条命令。

在redis.conf中slowlog的设置例如:

slowlog-log-slower-than10000slowlog-max-len128

其中slowlog-log-slower-than表示slowlog的划定界限,只有query执行时间大于slowlog-log-slower-than的时候才会定义成慢查询,被slowlog进行记录。




发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。