NETWAYS / ansible-collection-elasticstack

A collection to install and manage the Elastic Stack
GNU General Public License v3.0
11 stars 9 forks source link

Logstash: Handle JVM heap size with a variable #229

Open frankhetterich opened 1 year ago

frankhetterich commented 1 year ago

At the moment there is no handling for the JVM heap size parameters (Xms/Xmx) for Logstash installations. The jvm.options file is completely untouched and Logstash is using only 1G of memory.

There should be the same function as for Elasticsearch to use at least half of the available machine memory or configure the Heap size with a variable.

widhalmt commented 1 year ago

Good point! Logstash usually doesn't need as much memory as Elasticsearch does. And since some setups run Elasticsearch and Logstash on the same hosts, automatic calculation might not work. But using a variable is definitely a good idea.