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进行记录。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:redis热点是什么意思