zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfenes <...@git.apache.org>
Subject [GitHub] zookeeper issue #451: ZOOKEEPER-2184: Zookeeper Client should re-resolve hos...
Date Fri, 26 Jan 2018 13:46:29 GMT
Github user mfenes commented on the issue:

    https://github.com/apache/zookeeper/pull/451
  
    Looking at the static initialization block in InetAddressCachePolicy more deeply, the
default TTL is 30 seconds if there is no SecurityManager installed.
    So caching a positive lookup forever in the Java-level cache is the default only if there
is a SecurityManager installed and the TTL is not overridden by "networkaddress.cache.ttl"
to a different value.
    Default caching policy for a negative lookup is 0 (never cache).
    Now the only question is whether 30 seconds default caching is ok or too much for ZK.


---

Mime
View raw message