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

feat: add java memory arguments to services #627

Closed
wants to merge 6 commits into from
Closed

Conversation

misba7
Copy link
Contributor

@misba7 misba7 commented Mar 7, 2024

No description provided.

@misba7 misba7 requested review from iromli and moabu March 7, 2024 10:01
@@ -135,6 +135,8 @@ global:
oxauth:
# -- Boolean flag to enable/disable oxauth chart. You should never set this to false.
enabled: true
# -- passing custom java options to oxauth.
gluuCustomJavaOptions: "-XX:MaxDirectMemorySize=2500m -Xmx2200m"
Copy link
Contributor

Choose a reason for hiding this comment

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

The number seems based on default resources.limits..

@moabu do we want user to override this setting manually or pre-calculated from its resources.limits. attributes ?

Copy link
Member

Choose a reason for hiding this comment

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

Pre calculate based on each services resource limits. Otherwise , this will defeat the purpose of the resource limits defined .

*/}}
{{- define "fido2.customJavaOptions"}}
{{ $custom := "" }}
{{- if .Values.global.fido2.gluuCustomJavaOptions }}
Copy link
Member

Choose a reason for hiding this comment

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

This comment applies to all services .

You need to set the Java settings directly in the Java options env pre calculated from the resource limits not through a variable in the values.yaml as that will clash with the resource definitions .

@misba7 misba7 closed this Mar 11, 2024
@misba7 misba7 deleted the feat-cn-memorylimit branch March 11, 2024 09:51
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.

3 participants