Skip to content

Commit eda4790

Browse files
authored
dns cache settings page moved to ES configuration section (#3142)
Moving `DNS cache settings` content from `important system configuration` to `Important settings configuration` section. Related issue: #3007
1 parent 9376c0b commit eda4790

File tree

6 files changed

+12
-20
lines changed

6 files changed

+12
-20
lines changed

deploy-manage/deploy/self-managed/important-settings-configuration.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
mapped_pages:
33
- https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html
4+
- https://www.elastic.co/guide/en/elasticsearch/reference/current/networkaddress-cache-ttl.html
45
applies_to:
56
deployment:
67
self:
@@ -13,16 +14,17 @@ products:
1314
{{es}} requires very little configuration to get started, but there are a number of items which **must** be considered before using your cluster in production:
1415

1516
* [Path settings](#path-settings)
16-
* [Cluster name setting](elasticsearch://reference/elasticsearch/configuration-reference/miscellaneous-cluster-settings.md#cluster-name)
17+
* [Cluster name setting](#_cluster_name_setting)
1718
* [Node name setting](#node-name)
1819
* [Network host settings](#network.host)
1920
* [Discovery settings](#discovery-settings)
2021
* [Heap size settings](#heap-size-settings)
2122
* [JVM heap dump path setting](#heap-dump-path)
22-
* [GC logging settings](elasticsearch://reference/elasticsearch/jvm-settings.md#gc-logging)
23+
* [GC logging settings](#_gc_logging_settings)
2324
* [Temporary directory settings](#es-tmpdir)
24-
* [JVM fatal error log setting](elasticsearch://reference/elasticsearch/jvm-settings.md#error-file-path)
25+
* [JVM fatal error log setting](#_jvm_fatal_error_log_setting)
2526
* [Cluster backups](#important-settings-backups)
27+
* [DNS cache settings](#networkaddress-cache-ttl)
2628

2729
## Path settings [path-settings]
2830

@@ -241,3 +243,7 @@ In a disaster, [snapshots](../../tools/snapshot-and-restore.md) can prevent perm
241243
**Taking a snapshot is the only reliable and supported way to back up a cluster.** You cannot back up an {{es}} cluster by making copies of the data directories of its nodes. There are no supported methods to restore any data from a file system-level backup. If you try to restore a cluster from such a backup, it may fail with reports of corruption or missing files or other data inconsistencies, or it may appear to have succeeded having silently lost some of your data.
242244

243245
::::
246+
247+
## DNS cache settings [networkaddress-cache-ttl]
248+
249+
{{es}} runs with a security manager in place. With a security manager in place, the JVM defaults to caching positive hostname resolutions indefinitely and defaults to caching negative hostname resolutions for ten seconds. {{es}} overrides this behavior with default values to cache positive lookups for sixty seconds, and to cache negative lookups for ten seconds. These values should be suitable for most environments, including environments where DNS resolutions vary with time. If not, you can edit the values `es.networkaddress.cache.ttl` and `es.networkaddress.cache.negative.ttl` in the [JVM options](elasticsearch://reference/elasticsearch/jvm-settings.md#set-jvm-options). Note that the values [`networkaddress.cache.ttl=<timeout>`](https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.md) and [`networkaddress.cache.negative.ttl=<timeout>`](https://docs.oracle.com/javase/8/docs/technotes/guides/net/properties.md) in the [Java security policy](https://docs.oracle.com/javase/8/docs/technotes/guides/security/PolicyFiles.md) are ignored by {{es}} unless you remove the settings for `es.networkaddress.cache.ttl` and `es.networkaddress.cache.negative.ttl`.

deploy-manage/deploy/self-managed/important-system-configuration.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ The following settings **must** be considered before going to production:
1818
* [](setup-configuration-memory.md)
1919
* [](vm-max-map-count.md)
2020
* [](max-number-of-threads.md)
21-
* [](networkaddress-cache-ttl.md)
2221
* [](file-descriptors.md) (Linux and MacOS only)
2322
* [](executable-jna-tmpdir.md) (Linux only)
2423
* [](system-config-tcpretries.md) (Linux only)

deploy-manage/deploy/self-managed/networkaddress-cache-ttl.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

deploy-manage/distributed-architecture/discovery-cluster-formation/discovery-hosts-providers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Refer to [Troubleshooting discovery](../../../troubleshoot/elasticsearch/discove
2525

2626
By default the cluster formation module offers two seed hosts providers to configure the list of seed nodes: a *settings*-based and a *file*-based seed hosts provider. It can be extended to support cloud environments and other forms of seed hosts providers via [discovery plugins](elasticsearch://reference/elasticsearch-plugins/discovery-plugins.md). Seed hosts providers are configured using the `discovery.seed_providers` setting, which defaults to the *settings*-based hosts provider. This setting accepts a list of different providers, allowing you to make use of multiple ways to find the seed hosts for your cluster.
2727

28-
Each seed hosts provider yields the IP addresses or hostnames of the seed nodes. If it returns any hostnames then these are resolved to IP addresses using a DNS lookup. If a hostname resolves to multiple IP addresses then {{es}} tries to find a seed node at all of these addresses. If the hosts provider does not explicitly give the TCP port of the node by then, it will implicitly use the first port in the port range given by `transport.profiles.default.port`, or by `transport.port` if `transport.profiles.default.port` is not set. The number of concurrent lookups is controlled by `discovery.seed_resolver.max_concurrent_resolvers` which defaults to `10`, and the timeout for each lookup is controlled by `discovery.seed_resolver.timeout` which defaults to `5s`. Note that DNS lookups are subject to [JVM DNS caching](../../deploy/self-managed/networkaddress-cache-ttl.md).
28+
Each seed hosts provider yields the IP addresses or hostnames of the seed nodes. If it returns any hostnames then these are resolved to IP addresses using a DNS lookup. If a hostname resolves to multiple IP addresses then {{es}} tries to find a seed node at all of these addresses. If the hosts provider does not explicitly give the TCP port of the node by then, it will implicitly use the first port in the port range given by `transport.profiles.default.port`, or by `transport.port` if `transport.profiles.default.port` is not set. The number of concurrent lookups is controlled by `discovery.seed_resolver.max_concurrent_resolvers` which defaults to `10`, and the timeout for each lookup is controlled by `discovery.seed_resolver.timeout` which defaults to `5s`. Note that DNS lookups are subject to [JVM DNS caching](/deploy-manage/deploy/self-managed/important-settings-configuration.md#networkaddress-cache-ttl).
2929

3030
#### Settings-based seed hosts provider [settings-based-hosts-provider]
3131

deploy-manage/toc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ toc:
283283
- file: deploy/self-managed/file-descriptors.md
284284
- file: deploy/self-managed/vm-max-map-count.md
285285
- file: deploy/self-managed/max-number-of-threads.md
286-
- file: deploy/self-managed/networkaddress-cache-ttl.md
287286
- file: deploy/self-managed/executable-jna-tmpdir.md
288287
- file: deploy/self-managed/system-config-tcpretries.md
289288
- file: deploy/self-managed/bootstrap-checks.md

redirects.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,5 @@ redirects:
466466
'solutions/observability/apm/collect-application-data.md': 'solutions/observability/apm/ingest/index.md'
467467
'solutions/observability/apm/jaeger.md': 'solutions/observability/apm/ingest/jaeger.md'
468468
'solutions/observability/apm/monitor-aws-lambda-functions.md': 'solutions/observability/apm/ingest/monitor-aws-lambda-functions.md'
469+
# Related to https://github.com/elastic/docs-content/pull/3142
470+
'deploy-manage/deploy/self-managed/networkaddress-cache-ttl.md': 'deploy-manage/deploy/self-managed/important-settings-configuration.md'

0 commit comments

Comments
 (0)