elasticsearch: disable GC logging
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
fc95f57711
commit
3f353ad072
|
@ -38,12 +38,12 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* yarn: update apt key
|
* yarn: update apt key
|
||||||
* apt: Use pub.evolix.org instead of pub.evolix.net'
|
* apt: Use pub.evolix.org instead of pub.evolix.net'
|
||||||
* userlogrotate: set rotate date format in right order (YYYY-MM-DD)!
|
* userlogrotate: set rotate date format in right order (YYYY-MM-DD)!
|
||||||
|
* elasticsearch: Disable garabge collector logging (JDK >= 9)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Proper jinja spacing
|
* Proper jinja spacing
|
||||||
* evolinux-base: ensure dbus is started and enabled (not by default in the case of an offline netinst)
|
* evolinux-base: ensure dbus is started and enabled (not by default in the case of an offline netinst)
|
||||||
* elasticsearch : use logrotate for garbage collector logs instead of breaking compression cron
|
|
||||||
* docker-host: fix type in daemon.json and remove host configuration that is already in the systemd service by default
|
* docker-host: fix type in daemon.json and remove host configuration that is already in the systemd service by default
|
||||||
* haproxy: fix missing admin ACL in stats module access permissions
|
* haproxy: fix missing admin ACL in stats module access permissions
|
||||||
* openvpn: fix the client cipher configuration to match the server cipher configuration
|
* openvpn: fix the client cipher configuration to match the server cipher configuration
|
||||||
|
@ -54,7 +54,6 @@ 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,24 +118,11 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Garbage collector logs rotation by the JVM is disabled (JDK >= 9)
|
- name: Disable garbage collector logs (JDK >= 9)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/elasticsearch/jvm.options.d/evolinux.options
|
dest: /etc/elasticsearch/jvm.options
|
||||||
regexp: "^-Xlog:gc"
|
regexp: "Xlog:gc"
|
||||||
line: "9-:-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=/opt/my-app/gc.log:utctime,pid,tags:filecount=32,filesize=64m"
|
||||||
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
|
|
||||||
owner: root
|
owner: root
|
||||||
group: elasticsearch
|
group: elasticsearch
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
|
|
|
@ -18,11 +18,3 @@
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
when: is_cron_installed.rc == 0
|
when: is_cron_installed.rc == 0
|
||||||
|
|
||||||
- name: "Setup logrotate for JVM garbage collector"
|
|
||||||
template:
|
|
||||||
src: logrotate.j2
|
|
||||||
dest: /etc/logrotate/elasticsearch
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0750"
|
|
||||||
when: is_cron_installed.rc == 0
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
/var/log/elasticsearch/gc.log {
|
|
||||||
su elasticsearch elasticsearch
|
|
||||||
daily
|
|
||||||
rotate {{ elasticsearch_log_rotate_days }}
|
|
||||||
compress
|
|
||||||
nodelaycompress
|
|
||||||
missingok
|
|
||||||
copytruncate
|
|
||||||
dateext
|
|
||||||
dateformat .%Y-%m-%d
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue