OpenSearch/docs/reference/modules/discovery
Jason Tedor 9dc65037bc Lazy resolve unicast hosts
Today we eagerly resolve unicast hosts. This means that if DNS changes,
we will never find the host at the new address. Moreover, a single host
failng to resolve causes startup to abort. This commit introduces lazy
resolution of unicast hosts. If a DNS entry changes, there is an
opportunity for the host to be discovered. Note that under the Java
security manager, there is a default positive cache of infinity for
resolved hosts; this means that if a user does want to operate in an
environment where DNS can change, they must adjust
networkaddress.cache.ttl in their security policy. And if a host fails
to resolve, we warn log the hostname but continue pinging other
configured hosts.

When doing DNS resolutions for unicast hostnames, we wait until the DNS
lookups timeout. This appears to be forty-five seconds on modern JVMs,
and it is not configurable. If we do these serially, the cluster can be
blocked during ping for a lengthy period of time. This commit introduces
doing the DNS lookups in parallel, and adds a user-configurable timeout
for these lookups.

Relates #21630
2016-11-22 14:17:04 -05:00
..
azure.asciidoc Deprecate discovery-azure and rename it to discovery-azure-classic 2016-06-30 14:42:40 +02:00
ec2.asciidoc [doc] fix cross link between core and plugins doc 2015-09-03 12:11:58 +02:00
gce.asciidoc Rename cloud-gce plugin to discovery-gce plugin 2015-10-08 06:53:37 +02:00
zen.asciidoc Lazy resolve unicast hosts 2016-11-22 14:17:04 -05:00