Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate swapping JDK for JRE in elk stack container #29

Open
SwooshyCueb opened this issue Jul 13, 2022 · 1 comment
Open

Investigate swapping JDK for JRE in elk stack container #29

SwooshyCueb opened this issue Jul 13, 2022 · 1 comment

Comments

@SwooshyCueb
Copy link
Member

With #26, we are now using Temurin's JDK instead of the JDK/JRE provided by the distribution or the JDK/JRE bundled with elasticsearch.

The decision not to use elasticsearch's bundled JDK/JRE was made for two reasons:

  • To de-bloat the container image. Having multiple JDK/JRE installations uses a lot of space.
  • To get everything using the same JDK/JRE

Temurin was chosen over the distro-provided JDK/JRE for a few reasons:

  • The Hotspot AdoptOpenJDK flavor of JVM handles memory pressure very well.
  • The AdoptOpenJDK flavors of JVM work well in containers.
  • I've just generally had better experience with AdoptOpenJDK flavors of JVM than any others.

Given that we are no longer installing plugins in logstash, it is likely that we do not need a full JDK.
However, after the AdoptOpenJDK working group was absorbed into the Eclipse foundation and became Adoptium, JRE-only packages (and OpenJ9 packages) were no longer provided in the apt repositories.
Eclipse provides a focal-based docker image containing JRE-only Temurin 17 [Dockerfile], but it is not set up to work properly with Ubuntu's java-common system so it cannot be used.
Fortunately, Adoptium has a couple of blog posts that might help us out:

@SwooshyCueb
Copy link
Member Author

More rationale for doing this:
Adoptium's apt repository is hosted behind a cloudflare gateway, which will sometimes block attempts to download the package from within a container.

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

No branches or pull requests

1 participant