-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Customize cAdvisor event storage policy #24698
Comments
+1. Does kubelet use these events? |
Kubelet watches the event stream for Oom events, but never queries the storage. I'd like to just disable event storage completely for the Kubelet's cAdvisor, but that would be a regression if anyone was querying it through the cAdvisor endopoints. It is configurable from a flag though. |
If a user wants that feature, they can always run cAdvisor in a DaemonSet :P On Mon, Apr 25, 2016 at 4:18 PM, Tim St. Clair notifications@github.com
|
Not sure how cadvsior event stream works internally. After kubelet restarts, will it be able to get OOM events that happened in the past N minutes? |
The event store is an in-memory data structure, so if kubelet restarts it would be lost anyway. |
I assume cadvisor parses the kernel log again during startup. Is that not correct? |
Ah, I understand your question. If it restarts, it will reparse the kernel log. The event stream is independent of the event store - so each event will be sent to the watchers and also (independently) added to the event store. |
I see. Thanks for the clarification! |
What is the status of this issue? We are past the feature freeze for 1.3 and this is still part of the milestone. |
It depends on #25914, which has been LGTM'd for over a week... I'll get this reviewed now though, so it can go in as soon as the dependency is in. |
Oops, that comment was referring to the PR which addresses this (#24771). |
Just as a general note, I would still like to off-load events entirely out of the mainline path. /cc @kubernetes/sig-scalability |
@timothysc - I don't understand your comment. This issue refers to events generated by cAdvisor from scanning the kernel logs. Were you referring to the same events? |
@timstclair ohh... I was referring to kubernetes events. |
Ok, makes sense. This should have no effect on kubernetes events. |
By default cAdvisor stores up to 100,000 events for up to 24 hours. At capacity, that's around O(10MB) that is unused by the Kubelet.
The default values are customized by the
--event_storage_{age,event}_limit
flags. We should add our own defaults to disable the event store./cc @kubernetes/sig-node
The text was updated successfully, but these errors were encountered: