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

Recommend users to set a higher inotify watches limit for Kibana #30054

Open
marius-dr opened this issue Feb 5, 2019 · 4 comments
Open

Recommend users to set a higher inotify watches limit for Kibana #30054

marius-dr opened this issue Feb 5, 2019 · 4 comments
Labels
dev Feature:Development Team:Operations Team label for Operations Team

Comments

@marius-dr
Copy link
Member

Kibana version: master

Server OS version: Ubuntu LTS 18.04

Original install method (e.g. download page, yum, from source, etc.): source

@hendrikmuhs hit this today:

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/hendrik/work/git-elastic/kibana/src/ui/public/vis/vis_types/_vislib_vis_legend.scss'
    at FSWatcher.start (internal/fs/watchers.js:165:26)
    at Object.watch (fs.js:1254:11)
    at createFsWatchInstance (/home/hendrik/work/git-elastic/kibana/node_modules/chokidar/lib/nodefs-handler.js:37:15)
    at setFsWatchListener (/home/hendrik/work/git-elastic/kibana/node_modules/chokidar/lib/nodefs-handler.js:80:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/hendrik/work/git-elastic/kibana/node_modules/chokidar/lib/nodefs-handler.js:228:14)
    at FSWatcher.NodeFsHandler._handleFile (/home/hendrik/work/git-elastic/kibana/node_modules/chokidar/lib/nodefs-handler.js:255:21)
    at FSWatcher.<anonymous> (/home/hendrik/work/git-elastic/kibana/node_modules/chokidar/lib/nodefs-handler.js:473:21)
    at FSReqWrap.oncomplete (fs.js:155:5)

Looks like with the recent additions to Kibana we might hit the default limit on certain OSs. I think we should do the same thing that ES uses for file descriptors:

  • add a bootstrap check (could be a warning for now)
  • add a note in the docs on the error message and what to do to fix this:
    changing fs.inotify.max_user_watches=8192 in /etc/sysctl.conf to a higher number.
    We can also investigate the increase in file watches and see if we can limit that somehow.
@marius-dr marius-dr added discuss Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@azasypkin azasypkin added the Team:Operations Team label for Operations Team label Feb 5, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@spalger
Copy link
Contributor

spalger commented Feb 8, 2019

Note that file watchers are only setup in development so this shouldn't require adding bootstrap checks to Kibana necessarily, but adding a test for that error along with instructions for how to increase the max watches on linux would certainly be helpful.

@jbudz jbudz added dev and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc discuss labels Feb 12, 2019
@tylersmalley tylersmalley added 1 and removed 1 labels Oct 11, 2021
@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Nov 5, 2021
@tylersmalley tylersmalley removed loe:small Small Level of Effort impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. EnableJiraSync labels Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Feature:Development Team:Operations Team label for Operations Team
Projects
None yet
Development

No branches or pull requests

6 participants