-
Notifications
You must be signed in to change notification settings - Fork 38
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
Enable Semeru Cloud Compiler for InstantOn #440
Conversation
Signed-off-by: Leo Christy Jesuraj <leojc@ca.ibm.com>
@anjumfatima90 can you try out the operator with InstantOn? |
Fixes #438 |
We didn't feel comfortable releasing something that wasn't tested. So this enhancement is only available from a pre-release driver. Follow the instructions in our wiki to install the driver: https://github.com/OpenLiberty/open-liberty-operator/wiki Adding the CatalogSource details here as well (for Step 2.2) in case our Wiki is changed to some other driver:
|
"export OPENJ9_JAVA_OPTIONS=\"$OPENJ9_JAVA_OPTIONS " + | ||
jitSeverOptions + | ||
"export OPENJ9_JAVA_OPTIONS=\"$OPENJ9_JAVA_OPTIONS " + jitSeverOptions + | ||
"\" && export OPENJ9_RESTORE_JAVA_OPTIONS=\"$OPENJ9_RESTORE_JAVA_OPTIONS " + jitSeverOptions + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NottyCode points out that this handles OPENJ9_JAVA_OPTIONS
and OPENJ9_RESTORE_JAVA_OPTIONS
values being set in kubernetes config but it doesn't handle cases where the container image has already set the env. For example, using ENV
in their Dockerfile
. Is this a concern? If so it has been an issue ever since the operator started auto setting the OPENJ9_JAVA_OPTIONS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a concern. The commands will be executed at runtime inside the container. So the jitServerOptions will be appended to OPENJ9_JAVA_OPTIONS
value (the value could have come from container ENV or k8s env). In fact, we took this approach in the first place to preserve the OPENJ9_JAVA_OPTIONS
ENV specified in the Liberty container image:
ENV RANDFILE=/tmp/.rnd \
OPENJ9_JAVA_OPTIONS="-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal -Dosgi.checkConfiguration=false"
Can we get this change merged soon? |
Can we merge this fix ahead of the available Semeru containers with the fix available (expected mid October)? Perhaps it would be better to have that error mentioned occur now instead of silently ignoring the JIT Server configuration from the operator. |
An Operator release prior to mid-October is not in the plan. So we'll proceed to merge. It'll still be good to validate once the Semeru fix is available. |
@arturdzm please review and merge when you get a chance. Thanks |
@arturdzm please review. Thanks |
What this PR does / why we need it?:
Does this PR introduce a user-facing change?
CHANGELOG.md
Which issue(s) this PR fixes:
Fixes #