docker-library / elasticsearch

DEPRECATED; https://github.com/docker-library/official-images/pull/15808
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
Apache License 2.0
485 stars 347 forks source link

When I run elasticsearch, another elasticserch is killed #165

Closed flatcoke closed 7 years ago

flatcoke commented 7 years ago

I'm testing for cluster on docker , but when I run elasticsearch, another elasticserch is killed. There are two containers for each individual elasticsearch, Therefore I did testing without any link or port connection between two containers, but there was still the same result

Thanks for reading

tianon commented 7 years ago

I would guess you're running out of RAM -- Elasticsearch tries to allocate quite a lot by default, so two instances running is very likely to starve out even a semi-beefy node.

flatcoke commented 7 years ago

@tianon Absolutely it goes hand in hand with memory. After I saw your comment, I tried to work on another environment which performance is better than before, therefore It worked.

Thanks a lot

tianon commented 7 years ago

@flatcoke you can try playing with different values in -e ES_JAVA_OPTS="-Xms512m -Xmx512m", but there's no guarantee that it will work (and different workloads within Elasticsearch will likely have different requirements)

I'm going to go ahead and close this since it's not really an issue, but more a question of successful configuration for tight environments -- for further questions, I'd recommend reaching out on the Docker Community Forums, the Docker Community Slack, or Stack Overflow.