<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/503723f31220c57b2bca59282fd0947534c6d761">https://github.com/macports/macports-ports/commit/503723f31220c57b2bca59282fd0947534c6d761</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 503723f elasticsearch: Upgrade to Elasticsearch 7.0.1 with minor config mods
</span>503723f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 503723f31220c57b2bca59282fd0947534c6d761
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Thu May 9 17:11:07 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> elasticsearch: Upgrade to Elasticsearch 7.0.1 with minor config mods
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Upgrade to Elasticsearch 7.0.1
</span><span style='display:block; white-space:pre;color:#404040;'> * Add notes
</span><span style='display:block; white-space:pre;color:#404040;'> * Put ES data in ${prefix}/var/${name}
</span><span style='display:block; white-space:pre;color:#404040;'> * Configure for a reliable, small single node cluster
</span>---
databases/elasticsearch/Portfile | 85 +++++++++++++++++-----
.../files/patch-elasticsearch-env.diff | 54 ++++++++++----
.../files/patch-elasticsearch-yml.diff | 28 ++++++-
.../elasticsearch/files/patch-jvm-options.diff | 29 ++++++++
4 files changed, 161 insertions(+), 35 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/elasticsearch/Portfile b/databases/elasticsearch/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 00d644d..e1b0e88 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/elasticsearch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/elasticsearch/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,12 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-name elasticsearch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 6.1.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 7.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+name elasticsearch
</span> categories databases java
maintainers @gerardsoleca openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,31 +17,38 @@ long_description Elasticsearch is a highly scalable open-source full-text \
</span> real time. It is generally used as the underlying \
engine/technology that powers applications that have complex \
search features and requirements. \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- Elasticsearch requires Java, Java version can be up to Java 8. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Java 9 is not supported and Elasticsearch won't work.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Elasticsearch requires Java/OpenJDK 12, which comes installed. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Other Java versions are not supported.
</span>
platforms darwin
supported_archs noarch
license Apache-2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://www.elastic.co/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites https://www.elastic.co/downloads/elasticsearch/
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 a6d687bcbae51ca42c43263c7ccff9e36c6b09e9 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 6cc60fc08e8d40b25357d0b4d464e15fba803aad075c00c9b42bc6d578fd7f7e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 28497714
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://artifacts.elastic.co/downloads/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir ${distname}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-${version}-darwin-x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c50a7a2e66e53b5df70afde3da2f971d1ac73886 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 283859570434cd64146c61e5263c2cb3ce537e0dec567c39e0bc41e507eefed1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 338459414
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_zip yes
</span> use_configure no
build {}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Required java version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# JDK port to install if required java not found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> patchfiles patch-elasticsearch-yml.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-elasticsearch-env.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-elasticsearch-env.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-jvm-options.diff
</span>
set elasticdir ${prefix}/share/${name}
set confdir ${prefix}/etc/${name}
set logdir ${prefix}/var/log/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set dbdir ${prefix}/lib/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set dbdir ${prefix}/var/${name}
</span> set user ${name}
set group ${user}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,8 +57,9 @@ add_users ${user} group=${group} realname=Elasticsearch\ Server
</span>
pre-build {
# Change the PREFIX in the config files. They are already patched.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/config/elasticsearch.yml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/bin/elasticsearch-env
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/config/elasticsearch.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/bin/elasticsearch-env
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace s|@PREFIX_LOGDIR@|${logdir}|g ${worksrcpath}/config/jvm.options
</span> }
destroot {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -95,12 +105,51 @@ post-activate {
</span> system "chown -R ${user}:${group} ${dbdir}"
ui_msg "###########################################################"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "# Elasticsearch requires Java 8. If you have installed"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "# Java 9 it won't work"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "# Use sudo \"port load elasticsearch\" to start the service"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "# Elasticsearch requires Java/OpenJDK 12, which comes installed."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "# Other Java versions are not supported."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_msg "# Use `sudo port load elasticsearch` to start the service"
</span> ui_msg "###########################################################"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "To interact with Elasticsearch, start with commands like:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# default Elasticsearch response
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+curl -XGET \"http://localhost:9200\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# create and configure a new index
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+curl -XPUT \"http://localhost:9200/my_first_index\" \\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -H 'Content-Type: application/json' -d'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \"settings\" : {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \"index\" : {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \"number_of_shards\" : 5,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \"number_of_replicas\" : 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# examine cluster health, shard disk usage and status
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+curl -XGET \"http://localhost:9200/_cluster/health?pretty\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+curl -XGET \"http://localhost:9200/_cat/shards?v\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# irreversibly delete all data in /my_first_index
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+curl -XDELETE \"http://localhost:9200/my_first_index\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Each Elasticsearch shard is a Lucene index; aim for 10-50 GB per shard.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${name} is tested with the JDK provided in port openjdk12. Add these
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+lines to your ~/.profile to set up your java environment and test with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+'java -version':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Java environment
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if \[ -x /usr/libexec/java_home \]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export JAVA_HOME=\$(/usr/libexec/java_home)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ export KEYTOOL=\"\$JAVA_HOME\"/jre/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> startupitem.create yes
startupitem.logfile ${logdir}/daemon.log
<span style='display:block; white-space:pre;background:#ffe0e0;'>-startupitem.executable sudo -u elasticsearch ${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo -u elasticsearch ${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/elasticsearch/files/patch-elasticsearch-env.diff b/databases/elasticsearch/files/patch-elasticsearch-env.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index fde45c9..cf0987c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/elasticsearch/files/patch-elasticsearch-env.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/elasticsearch/files/patch-elasticsearch-env.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,9 +1,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- bin/elasticsearch-env 2017-12-17 20:22:14.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ bin/elasticsearch-env 2018-01-06 19:26:13.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -19,18 +19,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bin/elasticsearch-env
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bin/elasticsearch-env 2019-05-09 13:57:05.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,32 +19,31 @@
</span> fi
done
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> -# determine Elasticsearch home; to do this, we strip from the path until we find
-# bin, and then strip bin (there is an assumption here that there is no nested
-# directory under bin also named bin)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,17 +18,45 @@
</span> -ES_HOME=`dirname "$ES_HOME"`
+ES_HOME="@PREFIX@/share/elasticsearch"
+ES_PATH_CONF="@PREFIX@/etc/elasticsearch"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # now set the classpath
ES_CLASSPATH="$ES_HOME/lib/*"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -66,10 +56,3 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "$JAVA" -cp "$ES_CLASSPATH" org.elasticsearch.tools.JavaVersionChecker
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # now set the path to java
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if [ -z "$JAVA_HOME" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if [ -x /usr/libexec/java_home ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ export JAVA_HOME=$(/usr/libexec/java_home)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ export KEYTOOL="$JAVA_HOME"/jre/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ ! -z "$JAVA_HOME" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ JAVA="$JAVA_HOME/bin/java"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if [ "$(uname -s)" = "Darwin" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- # OSX has a different structure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- JAVA="$ES_HOME/jdk/Contents/Home/bin/java"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- JAVA="$ES_HOME/jdk/bin/java"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# MacPorts' port:elasticsearch includes port:openjdk12 as a dependency;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# no need to include this bundled Elasticsearch copy of OpenJDK12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## if [ "$(uname -s)" = "Darwin" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## # OSX has a different structure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## JAVA="$ES_HOME/jdk/Contents/Home/bin/java"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## JAVA="$ES_HOME/jdk/bin/java"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++## fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ ! -x "$JAVA" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -70,8 +69,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> export HOSTNAME=$HOSTNAME
<span style='display:block; white-space:pre;background:#ffe0e0;'>--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> -if [ -z "$ES_PATH_CONF" ]; then ES_PATH_CONF="$ES_HOME"/config; fi
-
<span style='display:block; white-space:pre;background:#ffe0e0;'>--if [ -z "$ES_PATH_CONF" ]; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- echo "ES_PATH_CONF must be set to the configuration path"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- exit 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ -z "$ES_PATH_CONF" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "ES_PATH_CONF must be set to the configuration path"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/elasticsearch/files/patch-elasticsearch-yml.diff b/databases/elasticsearch/files/patch-elasticsearch-yml.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 1a102c9..0649b57 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/elasticsearch/files/patch-elasticsearch-yml.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/elasticsearch/files/patch-elasticsearch-yml.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,5 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- config/elasticsearch.yml 2017-12-17 20:22:14.000000000 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ config/elasticsearch.yml 2018-01-05 20:20:27.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config/elasticsearch.yml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config/elasticsearch.yml 2019-05-09 13:16:24.000000000 -0400
</span> @@ -14,7 +14,7 @@
#
# Use a descriptive name for your cluster:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,17 +9,37 @@
</span> #
# ------------------------------------ Node ------------------------------------
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -30,11 +30,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,17 +30,21 @@
</span> #
# Path to directory where to store the data (separate multiple locations by comma):
#
-#path.data: /path/to/data
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+path.data: @PREFIX@/lib/elasticsearch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++path.data: @PREFIX@/var/elasticsearch
</span> #
# Path to log files:
#
-#path.logs: /path/to/logs
+path.logs: @PREFIX@/var/log/elasticsearch
<span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Path to directory where to snapshot and restore the data (separate multiple locations by comma):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++path.repo: @PREFIX@/var/elasticsearch/backup
</span> #
# ----------------------------------- Memory -----------------------------------
#
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Lock the memory on startup:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#bootstrap.memory_lock: true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++bootstrap.memory_lock: true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make sure that the heap size is set to about half the memory available
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # on the system and that the owner of the process is allowed to use this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -53,6 +57,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set the bind address to a specific IP (IPv4 or IPv6):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #network.host: 192.168.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# Bind to localhost unless explicitly changed
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++network.host: 127.0.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set a custom port for HTTP:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/elasticsearch/files/patch-jvm-options.diff b/databases/elasticsearch/files/patch-jvm-options.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1cdb495
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/elasticsearch/files/patch-jvm-options.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,29 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- config/jvm.options
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config/jvm.options 2019-05-09 15:01:45.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,8 +19,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Xms represents the initial size of total heap space
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Xmx represents the maximum size of total heap space
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--Xms1g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--Xmx1g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++-Xms1g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++-Xmx1g
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ################################################################
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ## Expert settings
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -107,13 +107,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:+PrintGCDateStamps
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:+PrintTenuringDistribution
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:+PrintGCApplicationStoppedTime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-8:-Xloggc:logs/gc.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++8:-Xloggc:@PREFIX_LOGDIR@/gc.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:+UseGCLogFileRotation
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:NumberOfGCLogFiles=32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 8:-XX:GCLogFileSize=64m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # JDK 9+ GC logging
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++9-:-Xlog:gc*,gc+age=trace,safepoint:file=@PREFIX_LOGDIR@/gc.log:utctime,pid,tags:filecount=32,filesize=64m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # time/date parsing will break in an incompatible way for some date patterns and locals
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 9-:-Djava.locale.providers=COMPAT
</span></pre><pre style='margin:0'>
</pre>