Skip to content

Commit 2f207cc

Browse files
Merge pull request #2053 from lukas-vlcek/LOG-334
[LOG-334] Setup cgroups path override to enable cgroups metrics
2 parents 0a879ee + 35f56fe commit 2f207cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elasticsearch/run.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@ GC_LOG_LOCATION=/elasticsearch/persistent/${CLUSTER_NAME}/logs/gc.log
9393
ERR_FILE_LOCATION=/elasticsearch/persistent/${CLUSTER_NAME}/logs/error.log
9494

9595
export ES_JAVA_OPTS="${ES_JAVA_OPTS:-} -XX:HeapDumpPath=$HEAP_DUMP_LOCATION -Xlog:gc*,gc+age=trace,safepoint:file=${GC_LOG_LOCATION}:utctime,pid,tags:filecount=32,filesize=64m -XX:ErrorFile=$ERR_FILE_LOCATION"
96-
info "ES_JAVA_OPTS: '${ES_JAVA_OPTS}'"
9796

9897
DHE_TMP_KEY_SIZE=${DHE_TMP_KEY_SIZE:-2048}
9998
export ES_JAVA_OPTS="${ES_JAVA_OPTS:-} -Djdk.tls.ephemeralDHKeySize=$DHE_TMP_KEY_SIZE"
10099

100+
#LOG-334
101+
export ES_JAVA_OPTS="${ES_JAVA_OPTS:-} -Des.cgroups.hierarchy.override=/"
102+
info "ES_JAVA_OPTS: '${ES_JAVA_OPTS}'"
103+
101104
if [ ! -d /elasticsearch/persistent/${CLUSTER_NAME}/logs ] ; then
102105
mkdir -p /elasticsearch/persistent/${CLUSTER_NAME}/logs
103106
fi

0 commit comments

Comments
 (0)