Skip to content
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

allow me to not care in the slightest about these events #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jettero
Copy link

@jettero jettero commented May 8, 2018

We have a loop going that sometimes takes quite a while (https://github.com/hubblestack/hubble/blob/develop/hubblestack/extmods/modules/pulsar.py#L726). Occasionally, if the loop takes too long or something happens externally during the loop, some of the watches seem to disappear doing the process_events(). I'm not totally sure what causes it. Is it the kernel canceling the watch and therefore get_watch(raw_event.wd) is failing? are we externally modifying the watchlist during the process_events()? Not sure. What I can say is that it's always very shortly lived temp files that trigger this error.

I'm confident the missing watches are safe to ignore. The 30,000 hosts reporting this error for /opt/specialthing/whatever is wasting quite a lot of space in our log analyzer. And we'd really rather keep watching the specialthing/whatever directory, even though it has quite a lot of tempfiles that pop in/out.

Let me know if you think this is a wrongheaded way to solve the problem or have a better idea what else we could fix.

Thanks.

@mew1033
Copy link

mew1033 commented May 8, 2018

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants