elastic / elasticsearch-docker

Official Elasticsearch Docker image
Apache License 2.0
791 stars 240 forks source link

Get es_opts faster in docker-entrypoint.sh #233

Closed suho-hahn closed 5 years ago

suho-hahn commented 5 years ago

Hi

I use ES on k8s 1.11, and there are many Services in the same namespace. When a container is started, environment variables related with Services are injected. (https://kubernetes.io/docs/concepts/services-networking/service/#discovering-services)

Problem is, if there are many env vars, iteration for es_opts takes several minutes. It seems that read is especially slow. So, in this PR it filters environment variables before iteration.

rjernst commented 5 years ago

Maintenance of the docker files for elasticsearch has moved to the elasticsearch repo. As we will be archiving this repository, I am going to close this PR. If you are still interested in making this contribution, please open a new pull request there.