您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
最近发现跑keepalived的几台机器的日志总是打印不完,还好给抛了一个报错,信息如下:
[root@yw_lvs2_backup etc]# tail -n 1000000 /var/log/messages-20130526 | grep "rate-limiting" May 20 11:43:55 yw_lvs2_backup rsyslogd-2177: imuxsock begins to drop messages from pid 17131 due to rate-limiting May 20 11:44:05 yw_lvs2_backup rsyslogd-2177: imuxsock lost 328 messages from pid 17131 due to rate-limiting May 20 12:11:41 yw_lvs2_backup rsyslogd-2177: imuxsock begins to drop messages from pid 20261 due to rate-limiting May 20 12:12:09 yw_lvs2_backup rsyslogd-2177: imuxsock lost 333 messages from pid 20261 due to rate-limiting May 23 17:31:38 yw_lvs2_backup rsyslogd-2177: imuxsock begins to drop messages from pid 20261 due to rate-limiting May 23 18:18:23 yw_lvs2_backup rsyslogd-2177: imuxsock lost 335 messages from pid 20261 due to rate-limiting May 24 18:02:59 yw_lvs2_backup rsyslogd-2177: imuxsock begins to drop messages from pid 20261 due to rate-limiting May 24 18:03:52 yw_lvs2_backup rsyslogd-2177: imuxsock lost 337 messages from pid 20261 due to rate-limiting May 24 18:03:52 yw_lvs2_backup rsyslogd-2177: imuxsock begins to drop messages from pid 20261 due to rate-limiting May 24 18:42:08 yw_lvs2_backup rsyslogd-2177: imuxsock lost 353 messages from pid 20261 due to rate-limiting
于是百度之,未果,谷歌一番终于明白这么回事了,解决方案如下:
echo ‘$SystemLogRateLimitInterval 60’ >> /etc/rsyslog.conf echo ‘$SystemLogRateLimitBurst 3000’ >> /etc/rsyslog.conf 重启rsyslog /etc/init.d/rsyslog resart
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。