OpenSearch/plugins
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
..
analysis-icu Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-kuromoji Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-phonetic Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-smartcn Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-stempel Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
analysis-ukrainian Upgrade to lucene-6.3.0. (#21464) 2016-11-14 09:36:45 +01:00
discovery-azure-classic Adapt InternalTestCluster to auto adjust `minimum_master_nodes` (#21458) 2016-11-15 13:42:26 +00:00
discovery-ec2 Lazy resolve unicast hosts 2016-11-22 14:17:04 -05:00
discovery-file Lazy resolve unicast hosts 2016-11-22 14:17:04 -05:00
discovery-gce Use pre-JDK9 style FilePermissions on JDK9 (#21540) 2016-11-15 09:31:32 +01:00
ingest-attachment Update to Tika 1.14 2016-11-16 11:29:14 +01:00
ingest-geoip Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
ingest-user-agent Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
jvm-example Remove (again) test uses of onModule (#21414) 2016-11-10 16:06:14 -08:00
mapper-murmur3 Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
mapper-size Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-azure Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-gcs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-hdfs Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
repository-s3 Test: Remove multi process support from rest test runner (#21391) 2016-11-07 15:07:34 -08:00
store-smb Remove store throttling. (#21573) 2016-11-17 09:33:32 +01:00
build.gradle Build: Remove old maven deploy support (#20403) 2016-09-19 15:10:41 -07:00