Closed suho-hahn closed 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.
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 withServices
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 thatread
is especially slow. So, in this PR it filters environment variables before iteration.