elasticsearch: Disable GC rotation for JDK 8
This commit is contained in:
parent
058753bcfe
commit
fc95f57711
|
@ -54,6 +54,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* userlogrotate: fix bug introduced in commit 2e54944a246 (rotated files were not zipped)
|
* userlogrotate: fix bug introduced in commit 2e54944a246 (rotated files were not zipped)
|
||||||
* userlogrotate: skip zipping if .gz log already exists (prevents interactive question)
|
* userlogrotate: skip zipping if .gz log already exists (prevents interactive question)
|
||||||
* postfix: avoid Amavis transport to be considered dead when restarted.
|
* postfix: avoid Amavis transport to be considered dead when restarted.
|
||||||
|
* elasticsearch: Disable GC rotation for JDK 8 (priorly done only for >= 9)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -118,11 +118,23 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Garbage collector logs rotation by the JVM is disabled
|
- name: Garbage collector logs rotation by the JVM is disabled (JDK >= 9)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/elasticsearch/jvm.options.d/evolinux.options
|
dest: /etc/elasticsearch/jvm.options.d/evolinux.options
|
||||||
regexp: "^-Xlog:gc"
|
regexp: "^-Xlog:gc"
|
||||||
line: "-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=0"
|
line: "9-:-Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=0"
|
||||||
|
create: yes
|
||||||
|
owner: root
|
||||||
|
group: elasticsearch
|
||||||
|
mode: "0640"
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
||||||
|
- name: Garbage collector logs rotation by the JVM is disabled (JDK == 8)
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/elasticsearch/jvm.options.d/evolinux.options
|
||||||
|
regexp: "^-Xlog:gc"
|
||||||
|
line: "8:-XX:GCLogFileSize=0"
|
||||||
create: yes
|
create: yes
|
||||||
owner: root
|
owner: root
|
||||||
group: elasticsearch
|
group: elasticsearch
|
||||||
|
|
Loading…
Reference in a new issue