-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filebeat] Kubernetes watcher leaks when filebeat reload with wrong input config #18629
Labels
Comments
botelastic
bot
added
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
May 19, 2020
Pinging @elastic/integrations-platforms (Team:Platforms) |
botelastic
bot
removed
the
needs_team
Indicates that the issue/PR needs a Team:* label
label
May 20, 2020
DanielQujun
added a commit
to DanielQujun/beats
that referenced
this issue
May 28, 2020
…t's misconfigured(elastic#18629) fix log format missing in libbeat/common/kubernetes/util.go Signed-off-by: 屈骏 <[email protected]>
exekias
pushed a commit
that referenced
this issue
May 28, 2020
…t's misconfigured(#18629) (#18630) fix log format missing in libbeat/common/kubernetes/util.go Signed-off-by: 屈骏 <[email protected]>
exekias
pushed a commit
to exekias/beats
that referenced
this issue
May 28, 2020
…t's misconfigured(elastic#18629) (elastic#18630) fix log format missing in libbeat/common/kubernetes/util.go Signed-off-by: 屈骏 <[email protected]> (cherry picked from commit 74d81c2)
exekias
pushed a commit
that referenced
this issue
May 28, 2020
…t's misconfigured(#18629) (#18630) (#18810) fix log format missing in libbeat/common/kubernetes/util.go Signed-off-by: 屈骏 <[email protected]> (cherry picked from commit 74d81c2) Co-authored-by: Daniel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of our customers running filebeat 7.7.0 to collect logs for their pods in Kubernetes clusters, They notice that the CPU and memory resource usage of Filebeat is suspicious.
meanwhile the Filebeat log shows:
It indicates that the input config might maybe be misconfigured, and it's indeed. Because they write a script to auto-generate configs in inputs.d which dir is for Filebeat to dynamic reload. and the script did not take the situation there are no pods running on the node which Filebeat running, so it generated a config which
paths
field is empty.It's easy to fix this problem by modifying the script. But I notice that Filebeat is leaking plenty of Kubernetes watcher goroutines when It's config is not qualified, and that's why Filebeat using high CPU.
IMHO, we should take consider this, even though filebeat users can avoid this by fixing their wrong config.
steps to reproduce:
inputs.reload
paths
For confirmed bugs, please report:
The text was updated successfully, but these errors were encountered: