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

Should we default to single node and avoid bootsrap checks? #108

Closed
antoineco opened this issue Apr 10, 2017 · 3 comments
Closed

Should we default to single node and avoid bootsrap checks? #108

antoineco opened this issue Apr 10, 2017 · 3 comments
Labels
discuss General discussion threads, suggestions for improvements, etc.

Comments

@antoineco
Copy link
Collaborator

Situation

Recently two users reported their Elasticsearch crashed on startup because they forgot to tune their kernel as mentioned in the README.

In the old Docker Elasticsearch image the zen plugin was disabled by default in order to prevent the bootstrap check (see docker-library/elasticsearch#153). This was not ideal because one couldn't just use docker-compose scale to create an Elasticsearch cluster, on the other hand it removed the necessity to tune the vm.max_map_count kernel parameter to use this project.

Proposal

I'm wondering if we shouldn't either:

  • default to single-node mode and redirect users to the Wiki page if they want to enable clustering

or

Opinions wanted :)

@antoineco antoineco added the discuss General discussion threads, suggestions for improvements, etc. label Apr 10, 2017
@deviantony
Copy link
Owner

I agree with the first proposal, this repo was created to introduce users to the usage of Elasticsearch and do not propose any production ready setup. Having them being able to play with it by removing this prerequisite would be even simpler to them, hence my +1.

Of course, adding a line in the README to point out to the docs for clustering is mandatory in that case.

If I understand correctly, ES should start in development mode with the default configuration, thus it should disable the bootstrap checks?

@antoineco
Copy link
Collaborator Author

Yes by default it starts in development mode but is accessible on localhost only, which is problematic if you want to plug Kibana or Logstash to it. However if you configure it with

transport.host = 0.0.0.0
http.host = 0.0.0.0

instead of

network.host = 0.0.0.0

the bootstrap checks will be bypassed (at your own risk). It's kind of counter intuitive but it's the only way to disable the checks without having ES listening on localhost only.

@deviantony
Copy link
Owner

deviantony commented Apr 10, 2017

Ok, then I'd go for this option with an updated README specifying that the stack will start Elasticsearch in development mode with bootstrap checks disabled (as a warning) and some instructions to switch back to production mode (Wiki link is fine).

antoineco added a commit that referenced this issue May 8, 2017
antoineco added a commit that referenced this issue May 9, 2017
antoineco added a commit that referenced this issue May 9, 2017
mnebuerquo pushed a commit to mnebuerquo/docker-elk that referenced this issue Aug 8, 2017
herpiko pushed a commit to herpiko/docker-elk that referenced this issue Jun 9, 2019
Change type of "bytes" and "response" to int in nginx pattern
DanBrown47 pushed a commit to DanBrown47/docker-elk that referenced this issue Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss General discussion threads, suggestions for improvements, etc.
Projects
None yet
Development

No branches or pull requests

2 participants