From a7c37f0a7883acc404db7406a9ef7bbf8821b015 Mon Sep 17 00:00:00 2001 From: James Howe <675056+OrangeDog@users.noreply.github.com> Date: Wed, 7 Aug 2019 13:30:07 +0100 Subject: [PATCH] Add jvm_opts to example pillar The feature isn't otherwise documented. These are the Debain defaults. The state just replaces the whole file. --- pillar.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pillar.example b/pillar.example index f2334d6..7157190 100644 --- a/pillar.example +++ b/pillar.example @@ -23,3 +23,17 @@ elasticsearch: plugins: lang-python: lang-python kopf: lmenezes/elasticsearch-kopf + jvm_opts: + - -XX:+HeapDumpOnOutOfMemoryError + - -XX:HeapDumpPath=/var/lib/elasticsearch + - -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log + - 8:-XX:+PrintGCDetails + - 8:-XX:+PrintGCDateStamps + - 8:-XX:+PrintTenuringDistribution + - 8:-XX:+PrintGCApplicationStoppedTime + - 8:-Xloggc:/var/log/elasticsearch/gc.log + - 8:-XX:+UseGCLogFileRotation + - 8:-XX:NumberOfGCLogFiles=32 + - 8:-XX:GCLogFileSize=64m + - 9-:-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m + - 9-:-Djava.locale.providers=COMPAT