Fixing elasticsearch “max number of threads for user is too low” with systemd
Using overrides- May 16, 2017
- 1 min read
- #guides
- #elasticsearch
- #systemd
- #linux
Warning
This post was written more than 5 years ago, and its contents may be out of date
If you’ve installed elasticsearch from repos and running it via systemd, you may see, that it will not catch up limits from /etc/security/limits.conf. You can easily override it using systemd:
- Create folder
/etc/systemd/system/elasticsearch.service.d/ - Then create file
override.confin that folder with the following contents:
[Service]LimitNPROC=2048- Reload daemons:
systemctl daemon-reload - Restart elastic:
systemctl restart elasticsearch
Now changes will remain even if you’ll update elastic via package manager (which will recreate service file).
Comments