Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Note about DNS caching with security manager enabled (#4803)
Browse files Browse the repository at this point in the history
* Note about DNS caching with security manager enabled

* Fix typos
  • Loading branch information
fabiocorneti authored and colmose committed Mar 21, 2018
1 parent f8193f8 commit 7fea02e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/jdbc_datasources.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -586,3 +586,18 @@ Only terms aggregations can be nested inside a parent bucket aggregation.
insensitive collation, string comparisons will be case insensitive.
- Wildcards on virtual index names are not supported in any API.
- Currently cross cluster searches on virtual indices are not supported.

== Troubleshooting

=== Cannot reconnect to datasource by hostname after DNS update

When the Java security manager is enabled, the JVM will cache name resolutions
indefinitely; if the system you're connecting to uses round-robin DNS or the IP
address of the system changes frequently, you will need to modify the following
https://docs.oracle.com/javase/8/docs/technotes/guides/security/PolicyFiles.html[Java
Security Policy] properties:

- `networkaddress.cache.ttl`: the number of seconds to cache a successful DNS
lookup. Defaults to `-1` (forever).
- `networkaddress.cache.negative.ttl`: the number of seconds to cache an
unsuccessful DNS lookup. Defaults to `10`, set to `0` to avoid caching.

0 comments on commit 7fea02e

Please sign in to comment.