Skip to content

Conversation

@ivareri
Copy link
Contributor

@ivareri ivareri commented Aug 16, 2024

Move custom jvm options to files in jvm.options.d as recommended by Elastic. Fixes #287

I left the current default for elasticsearch_heap in order to avoid changing the current behaviour. IMO this default should either be removed or set to False.

I'm removed the elasticsearch_config_jvm variable, as any options can be overridden by using elasticsearch_jvm_custom_parameters. Alternatively I could add a tasks that uses this variable to install a custom jvm.options file, and skip the other jvm options tasks.

@widhalmt
Copy link
Member

Nice, thank you for your contribution!

I'll let the automated tests run and then we'll dive into the specifics. Looking good so far.

@ivareri
Copy link
Contributor Author

ivareri commented Oct 24, 2024

Had time to look into this one yet?

@widhalmt
Copy link
Member

Not yet, sorry. But I try to squeeze it in this or next week.

@widhalmt
Copy link
Member

Sorry, took me longer than I want to admit to wrap my head around some of the changes. Very elegant code, thanks.

I just merged the latest main and when the checks still run through, I'll merge.

@widhalmt widhalmt enabled auto-merge October 24, 2024 14:26
Copy link
Member

@widhalmt widhalmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks.

@widhalmt widhalmt added this pull request to the merge queue Oct 24, 2024
Merged via the queue into NETWAYS:main with commit 4eb4561 Oct 24, 2024
8 checks passed
ivareri added a commit to ivareri/ansible-collection-elasticstack that referenced this pull request Jun 17, 2025
Move custom jvm options to files in `jvm.options.d` as recommended by
Elastic. Fixes
NETWAYS#287

I left the current default for `elasticsearch_heap` in order to avoid
changing the current behaviour. IMO this default should either be
removed or set to `False`.

I'm removed the `elasticsearch_config_jvm` variable, as any options can
be overridden by using `elasticsearch_jvm_custom_parameters`.
Alternatively I could add a tasks that uses this variable to install a
custom `jvm.options` file, and skip the other jvm options tasks.

---------

Co-authored-by: Thomas Widhalm <thomas.widhalm@netways.de>
@ivareri ivareri deleted the feature/jvm_options branch June 18, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Elasticsearch jvm.options

2 participants