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

FAnotify over inotify #26247

Closed
ndubss opened this issue Jun 10, 2021 · 5 comments
Closed

FAnotify over inotify #26247

ndubss opened this issue Jun 10, 2021 · 5 comments

Comments

@ndubss
Copy link

ndubss commented Jun 10, 2021

Hello, on kube we currently leverage two iterations of the file_integrity module. First, we monitor paths under /hostfs, this has been stable for us. Second, we use the auditbeat.autodiscover with containerd to monitor container rootfs. Initially, this was working well.

Once a large volume of containers and paths was introduced, we started to have stability and memory issues. We have incrementally increased memory but the problem is now growing. We can't get more capacity (it's been increased several times)

We've gathered a good amount of data comparing fanotify over inotify. Fanotify is available in newer kernels and has significantly less memory usage over inotify (at scale). We would like to request that auditbeat push for supporting fanotify where supported. I'm trying to gather what is needed so we can contribute resources. From what I see so far, it looks like auditbeat uses fsnotify. Fsnotify has fanotify support on roadmap.

Example autodiscover: https://github.com/elastic/beats/blob/master/deploy/kubernetes/auditbeat-kubernetes.yaml#L27

Fsnotify github:
https://github.com/fsnotify/fsnotify

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 10, 2021
@ndubss
Copy link
Author

ndubss commented Jun 10, 2021

@vjsamuel comment if you have more to add

@ChrsMark ChrsMark added Team:Integrations Label for the Integrations team Team:SIEM labels Jun 15, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/siem (Team:SIEM)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 15, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@jamiehynds
Copy link

Closing, as we're exploring FAnotify support in this issue: #31563

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

No branches or pull requests

5 participants