Files
nexus/sreweekly/markdown/130/07-relp-100-cpu-rsyslog-stop-after-start-issue-13-rsyslog-librelp-github-zh.md

37 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# relp 100% CPU——rsyslog 启动后停止运行 · Issue #13 · rsyslog/librelp · GitHub
- **期号**: SRE Weekly Issue #130(2018-07-15)
- **作者**: 坦诚说明:文中提到了我的雇主 Fastly。
- **链接**: https://github.com/rsyslog/librelp/issues/13
## 简介
这周我乐此不疲地挖出了我们在工作中反复遇到的 Rsyslog 卡死的根源。我找到了原因(socket 写入的过度重试),并整理了一份 bug 报告和一个 pull request。
## 正文
你好,
我遇到的问题:
- 在使用 imrelp 的 rsyslog 服务器上 CPU 达到 100%——而且只是把 imrelp 添加到标准的 Debian Jessie 或 Debian Wheezy 配置里就这样了。
但问题似乎出在安装了 1.0.0 版 librelp 的客户端上。
这个问题在下面两个链接里有相当详细的描述:
[http://lists.adiscon.net/pipermail/rsyslog/2013-July/033303.html](http://lists.adiscon.net/pipermail/rsyslog/2013-July/033303.html)
[http://bugzilla.adiscon.com/show_bug.cgi?id=208](http://bugzilla.adiscon.com/show_bug.cgi?id=208)
我已经测试了下面的补丁,它不会占用 collector 的 CPU。
[https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771218](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771218)
两个问题:
1. 我在别处没有找到针对 librelp 的补丁,如果你认为这个补丁与 bug 208 相关,能否把它附加到该 bug 上?
2. 是否可以给服务器开发一个补丁,以避免这种行为,或者至少在日志里加上警告?
谢谢,
Daniele