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

LimitMEMLOCK for systemd init script #536

Closed
cyberflow opened this issue Jan 3, 2017 · 5 comments
Closed

LimitMEMLOCK for systemd init script #536

cyberflow opened this issue Jan 3, 2017 · 5 comments

Comments

@cyberflow
Copy link

Please add ability to set LimitMEMLOCK to infinity for bootstrap.memory_lock configuration.

@martinb3
Copy link
Contributor

martinb3 commented Jan 4, 2017

Hi @cyberflow -- it looks like upstream recommended against this, and suggested an override file instead: elastic/elasticsearch#21891 (comment)

We're trying to use the upstream init scripts and systemd unit files so I'd like to avoid deviating from them if possible. Does upstream's recommendation work for you?

Do you think this cookbook should provide some easy way to drop in the override described here:

To override these, add a file called /etc/systemd/system/elasticsearch.service.d/elasticsearch.conf and specify any changes in that file

Thanks!

@cyberflow
Copy link
Author

Thanks, this recommendation is work.

@martinb3
Copy link
Contributor

martinb3 commented Jan 4, 2017

Great! Thanks! I'll leave this open to document it.

@martinb3 martinb3 added the doc label Jan 4, 2017
@damm
Copy link

damm commented Mar 14, 2017

Yeah I kinda think this cookbook should create this file however; it's not something we should have to be shipping in wrappers exactly.

Locking the memory is pretty standard in production

@damm
Copy link

damm commented Mar 14, 2017

Additionally I tried creating that directory and file and it didn't seem to work.

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

No branches or pull requests

3 participants