<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[redis默认记录超过10000us的命令，默认保留128条慢查询日志。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Cache与Store]]></category>
<pubDate>Tue, 09 Aug 2016 06:35:05 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Redis的慢日志是一个系统记录了超出规定的执行时间查询。执行时间不包括I/O操作，比如与客户会话，发送回复等等，只是实际执行的命令(这就是线程被阻塞而无法执行命令的唯一阶段所需的时间为在此期间其他请求)。可以用两个参数来配置的慢日志：slowlog-log-slower-than告诉Redis是什么的执行时间，以微秒为单位，以超过为获得记录的命令。需要注意的是负数禁用慢日志，而零值强制每个命令的记录。slowlog-max-len是慢日志的长度。最小值是零。当一个新的命令被记录和慢日志已处于其最大长度时，最早的一个是从记录的命令队列中移出以腾出空间。该配置可以通过编辑redis.conf完成或当服务器使用CONFIG GET和Config中设置的命令运行。<br/><br/>一、Redis默认记录超过10000us的命令：<br/>10.64.*.54:6379&gt; config get slowlog-log-slower-than<br/>1) &quot;slowlog-log-slower-than&quot;<br/>2) &quot;10000&quot;<br/><br/><br/>二、默认保留128条慢查询日志：<br/>10.64.*.54:6379&gt; config get slowlog-max-len<br/>1) &quot;slowlog-max-len&quot;<br/>2) &quot;128&quot;<br/><br/><br/>三、慢查询日志查询，2条：<br/>[root@rh08 ~]# redis-cli -h 10.64.*.54<br/>10.64.6.54:6379&gt;&nbsp;&nbsp;slowlog get 2<br/>1) 1) (integer) 2<br/>&nbsp;&nbsp; 2) (integer) 1470219973<br/>&nbsp;&nbsp; 3) (integer) 36910<br/>&nbsp;&nbsp; 4) 1) &quot;info&quot;<br/>2) 1) (integer) 1<br/>&nbsp;&nbsp; 2) (integer) 1469739564<br/>&nbsp;&nbsp; 3) (integer) 14997<br/>&nbsp;&nbsp; 4) 1) &quot;save&quot;
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] redis默认记录超过10000us的命令，默认保留128条慢查询日志。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>