Skip to content

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

Open
jettero wants to merge 1 commit into
seb-m:masterfrom
jettero:shutup-thing
Open

allow me to not care in the slightest about these events#155
jettero wants to merge 1 commit into
seb-m:masterfrom
jettero:shutup-thing

Conversation

@jettero
Copy link
Copy Markdown

@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
Copy Markdown

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