redis

redis慢日志什么意思

小新
166
2021-02-17 18:24:36
栏目: 云计算

redis慢日志什么意思

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

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

slowlog-log-slower-than 10000slowlog-max-len 128

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


0
看了该问题的人还看了