File tree 8 files changed +22
-23
lines changed
8 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,12 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
75
75
{ {- $cnCustomJavaOptions := index .Values.global " auth-server" " cnCustomJavaOptions" } }
76
76
{ {- $custom := printf " %s" $cnCustomJavaOptions } }
77
77
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
78
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
79
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
78
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
79
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
80
80
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
81
81
{ { $customJavaOptions | trim | quote } }
82
82
{ {- end } }
83
83
84
-
85
84
{ {/*
86
85
Create topologySpreadConstraints lists
87
86
*/} }
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
85
85
{ { $custom := " " } }
86
86
{ { $custom = printf " %s" .Values.global.casa.cnCustomJavaOptions } }
87
87
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
88
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
89
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
88
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
89
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
90
90
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
91
91
{ { $customJavaOptions | trim | quote } }
92
92
{ {- end } }
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
75
75
{ {- $cnCustomJavaOptions := index .Values.global " config-api" " cnCustomJavaOptions" } }
76
76
{ {- $custom := printf " %s" $cnCustomJavaOptions } }
77
77
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
78
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
79
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
78
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
79
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
80
80
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
81
81
{ { $customJavaOptions | trim | quote } }
82
82
{ {- end } }
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
74
74
{ { $custom := " " } }
75
75
{ { $custom = printf " %s" .Values.global.fido2.cnCustomJavaOptions } }
76
76
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
77
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
78
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
77
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
78
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
79
79
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
80
80
{ { $customJavaOptions | trim | quote } }
81
81
{ {- end } }
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
74
74
{ { $custom := " " } }
75
75
{ { $custom = printf " %s" .Values.global.link.cnCustomJavaOptions } }
76
76
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
77
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
78
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
77
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
78
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
79
79
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
80
80
{ { $customJavaOptions | trim | quote } }
81
81
{ {- end } }
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
85
85
{ { $custom := " " } }
86
86
{ { $custom = printf " %s" .Values.global.saml.cnCustomJavaOptions } }
87
87
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
88
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
89
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
88
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
89
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
90
90
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
91
91
{ { $customJavaOptions | trim | quote } }
92
92
{ {- end } }
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ Create JAVA_OPTIONS ENV for passing custom work and detailed logs
74
74
{ { $custom := " " } }
75
75
{ { $custom = printf " %s" .Values.global.scim.cnCustomJavaOptions } }
76
76
{ { $memory := .Values.resources.limits.memory | replace " Mi" " " | int -} }
77
- { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" $memory -} }
78
- { {- $xmx := printf " -Xmx%dm" (sub $memory 300 ) -} }
77
+ { {- $maxDirectMemory := printf " -XX:MaxDirectMemorySize=%dm" ( mul (mulf $memory 0.41) 1 ) -} }
78
+ { {- $xmx := printf " -Xmx%dm" (sub $memory (mulf $ memory 0.49) ) -} }
79
79
{ {- $customJavaOptions := printf " %s %s %s" $custom $maxDirectMemory $xmx -} }
80
80
{ { $customJavaOptions | trim | quote } }
81
81
{ {- end } }
Original file line number Diff line number Diff line change @@ -626,12 +626,12 @@ config-api:
626
626
# -- CPU limit.
627
627
cpu : 1000m
628
628
# -- Memory limit. This value is used to calculate memory allocation for Java. Currently it only supports `Mi`. Please refrain from using other units.
629
- memory : 1000Mi
629
+ memory : 1200Mi
630
630
requests :
631
631
# -- CPU request.
632
632
cpu : 1000m
633
633
# -- Memory request.
634
- memory : 1000Mi
634
+ memory : 1200Mi
635
635
# -- Configure the liveness healthcheck for the auth server if needed.
636
636
livenessProbe :
637
637
# -- http liveness probe endpoint
@@ -1658,12 +1658,12 @@ scim:
1658
1658
# -- CPU limit.
1659
1659
cpu : 1000m
1660
1660
# -- Memory limit. This value is used to calculate memory allocation for Java. Currently it only supports `Mi`. Please refrain from using other units.
1661
- memory : 1000Mi
1661
+ memory : 1200Mi
1662
1662
requests :
1663
1663
# -- CPU request.
1664
1664
cpu : 1000m
1665
1665
# -- Memory request.
1666
- memory : 1000Mi
1666
+ memory : 1200Mi
1667
1667
service :
1668
1668
# -- The name of the scim port within the scim service. Please keep it as default.
1669
1669
name : http-scim
@@ -1767,12 +1767,12 @@ link:
1767
1767
# -- CPU limit.
1768
1768
cpu : 500m
1769
1769
# -- Memory limit. This value is used to calculate memory allocation for Java. Currently it only supports `Mi`. Please refrain from using other units.
1770
- memory : 1000Mi
1770
+ memory : 1200Mi
1771
1771
requests :
1772
1772
# -- CPU request.
1773
1773
cpu : 500m
1774
1774
# -- Memory request.
1775
- memory : 1000Mi
1775
+ memory : 1200Mi
1776
1776
# -- Configure the liveness healthcheck for the auth server if needed.
1777
1777
livenessProbe :
1778
1778
# -- http liveness probe endpoint
@@ -1874,12 +1874,12 @@ saml:
1874
1874
# -- CPU limit.
1875
1875
cpu : 500m
1876
1876
# -- Memory limit. This value is used to calculate memory allocation for Java. Currently it only supports `Mi`. Please refrain from using other units.
1877
- memory : 1000Mi
1877
+ memory : 1200Mi
1878
1878
requests :
1879
1879
# -- CPU request.
1880
1880
cpu : 500m
1881
1881
# -- Memory request.
1882
- memory : 1000Mi
1882
+ memory : 1200Mi
1883
1883
# -- Configure the liveness healthcheck for the auth server if needed.
1884
1884
livenessProbe :
1885
1885
# -- http liveness probe endpoint
You can’t perform that action at this time.
0 commit comments