NETWAYS / ansible-collection-elasticstack

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

Logstash: Handle JVM heap size with a variable #229

Open frankhetterich opened 11 months ago

frankhetterich commented 11 months 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 11 months 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.