Skip to content

Commit

Permalink
disable DNS caching in order to get cluster bootstrap in docker swarm
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch-si.com>
  • Loading branch information
thjaeckle committed Mar 25, 2019
1 parent a3b0aba commit 9af1a9e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions services/base/src/main/resources/ditto-akka-config.conf
Expand Up @@ -10,15 +10,9 @@ akka {

io.dns {

resolver = "async-dns"
#resolver = "inet-address"
resolver = "inet-address"

# To-be-deprecated DNS resolver implementation which uses the Java InetAddress to resolve DNS records.
# To be replaced by `akka.io.dns.async` which implements the DNS protocol natively and without blocking (which InetAddress does)
inet-address {
# Must implement akka.io.DnsProvider
provider-object = "akka.io.InetAddressDnsProvider"

# To set the time to cache name resolutions
# Possible values:
# default: sun.net.InetAddressCachePolicy.get() and getNegative()
Expand All @@ -27,10 +21,6 @@ akka {
# n [time unit]: positive timeout with unit, for example "30 s"
positive-ttl = never
negative-ttl = never

# How often to sweep out expired cache entries.
# Note that this interval has nothing to do with TTLs
cache-cleanup-interval = 120s
}
}

Expand Down

0 comments on commit 9af1a9e

Please sign in to comment.