Skip to content

Instantly share code, notes, and snippets.

@craigbeck
Created April 13, 2013 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigbeck/5376338 to your computer and use it in GitHub Desktop.
Save craigbeck/5376338 to your computer and use it in GitHub Desktop.
Elasticsearch file descriptor limits in AWS EC2 Ubuntu instance - how to fix when running under daemontools
1. change `/etc/init/sfsvscan.conf` and add `limit nofile 32000 32000`
2. change `/etc/security/limits.conf` and add
`* hard nofile 40960`
`* soft nofile 40960`
3. confirm by adding `-Des.max-open-files=true` to run file of elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment