Skip to content
Permalink
Browse files
Add DNS TTL configuration via envvar
  • Loading branch information
tbouron committed May 24, 2018
1 parent 67e8994 commit 2962a166979bbead588a172a378bac0678c12ba0
Showing 1 changed file with 7 additions and 0 deletions.
@@ -23,6 +23,10 @@ fi
if [ -z "${JAVA_MAX_PERM_MEM}" ] ; then
export JAVA_MAX_PERM_MEM="256m"
fi
# use the default DNS TTL, if not specified
if [ -z "${DNS_TTL}" ] ; then
export DNS_TTL="60"
fi

# OS specific support (must be 'true' or 'false').
cygwin=false;
@@ -85,6 +89,9 @@ export EXTRA_JAVA_OPTS="-Dbrooklyn.location.localhost.address=127.0.0.1 ${EXTRA_
# Increase garbage collection, see https://issues.apache.org/jira/browse/BROOKLYN-375
export EXTRA_JAVA_OPTS="-XX:SoftRefLRUPolicyMSPerMB=1 ${EXTRA_JAVA_OPTS}"

# Set the DNS TTL for the JVM
export EXTRA_JAVA_OPTS="-Dsun.net.inetaddr.ttl=${DNS_TTL} ${EXTRA_JAVA_OPTS}"

# Set the TLS protocol versions
export EXTRA_JAVA_OPTS="-Dhttps.protocols=TLSv1.1,TLSv1.2 ${EXTRA_JAVA_OPTS}"

0 comments on commit 2962a16

Please sign in to comment.