Closed ChristianWeissCG closed 4 years ago
Closing with https://github.com/elastic/elasticsearch/issues/55161#issuecomment-613514240
These IP addresses are not persisted in a reboot by Elasticsearch, they are re-resolved every time that we attempt to connect/re-connect to the master, so if you're still seeing these names resolve to the old IP addresses, I suspect that you have a caching layer elsewhere (the caching resolver on the host, or elsewhere in your DNS infrastructure) that is persisting these addresses.
Since this appears to be an environmental issue and not a bug in Elasticsearch, I'm going to close this issue. If you need additional assistance, please use the forums since we reserve GitHub for verified bug reports and feature requests. If it turns out there is a reproducible bug here, we can reopen this issue.
After i changed the IP of all nodes in my ES cluster (4 VMs, each with docker image v6.6.1), my elasticsearch cluster is still trying to access the master node on the old IP of that master node.
Host OS and within the container i can resolve the FQDN (e.g. with dig and ping) and i get the correct/new IP (new is: 10.60.7.40; old is 10.3.2.37). (in elasticsearch.yml i use FQDNs instead of IPs)
I use FQDNs in config/elasticsearch.yml:
Even setting:
in config/jvm.options did not make ES to forget the old IP. (BTW: it is confiremed that this file is loaded by ES, verified with a "byintentioninvalid" value for both options, which results in an expected error)
Log of node 3 (hostname: cgbsel3) while trying to connect to node 1 (master, hostname: cgbsel1):
Why is ES still trying to use the old IP? Why is the old IP reboot-save? Where is it persisted? How to flush/replace old IP in ES?