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

Use Java 11 everywhere #19

Merged
merged 7 commits into from
Nov 28, 2018
Merged

Use Java 11 everywhere #19

merged 7 commits into from
Nov 28, 2018

Conversation

solsson
Copy link
Owner

@solsson solsson commented Nov 28, 2018

Java 10 came with support for docker memory limits by default, see https://blog.docker.com/2018/04/improved-docker-container-integration-with-java-10/, but wasn't LTS. Kafka 2.1.0 supports Java 11.

@charlspjohn
Copy link

-XX:+UnlockExperimentalVMOptions
-XX:+UseCGroupMemoryLimitForHeap

These jvm options causing kafka-prometheus-jmx-exporter not to start http server. Can someone fix this ?

@solsson
Copy link
Owner Author

solsson commented Nov 30, 2018

I think there was a Release note from Oracle somewhere saying that these flags have been deprecated. Or maybe it was in https://medium.com/adorsys/jvm-memory-settings-in-a-container-environment-64b0840e1d9e.

@solsson
Copy link
Owner Author

solsson commented Nov 30, 2018

@charlspjohn If you need the hash for the old :latest it's here: https://github.com/Yolean/kubernetes-kafka/blob/v4.3.0/prometheus/50-kafka-jmx-exporter-patch.yml#L17

@charlspjohn
Copy link

I think there was a Release note from Oracle somewhere saying that these flags have been deprecated. Or maybe it was in https://medium.com/adorsys/jvm-memory-settings-in-a-container-environment-64b0840e1d9e.

Can it be removed from dockerfile so that the public latest image will run without error ?

@solsson
Copy link
Owner Author

solsson commented Dec 3, 2018

I don't see these flags in the Dockerfile. Or are you referring to some other Dockerfile? You can remove the flags from the statefulset resource (https://github.com/Yolean/kubernetes-kafka/blob/v4.3.1/prometheus/50-kafka-jmx-exporter-patch.yml#L20) which is already done in https://github.com/Yolean/kubernetes-kafka/blob/v5.0.3/prometheus/50-kafka-jmx-exporter-patch.yml.

@charlspjohn
Copy link

I don't see these flags in the Dockerfile. Or are you referring to some other Dockerfile? You can remove the flags from the statefulset resource (https://github.com/Yolean/kubernetes-kafka/blob/v4.3.1/prometheus/50-kafka-jmx-exporter-patch.yml#L20) which is already done in https://github.com/Yolean/kubernetes-kafka/blob/v5.0.3/prometheus/50-kafka-jmx-exporter-patch.yml.

Got it thanks, I was using a local helm project and the options were there.

@solsson
Copy link
Owner Author

solsson commented Dec 3, 2018

My recommendation is to always use sha256-tagged image URLs. You never know what kind of crap a maintainer like me might put into the next build :)

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.

2 participants