Skip to content

Commit

Permalink
Issue #643: set same default initial and max heap value (#646)
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Walsh <[email protected]>
  • Loading branch information
vargm and APegaDavis authored Oct 27, 2023
1 parent f8737ef commit fd4bf79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/pega/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ Parameter | Description | Defau
`cpuLimit` | CPU limit for pods in the current tier. | `4`
`memRequest` | Initial memory request for pods in the current tier. | `12Gi`
`memLimit` | Memory limit for pods in the current tier. | `12Gi`
`initialHeap` | Specify the initial heap size of the JVM. | `4096m`
`initialHeap` | Specify the initial heap size of the JVM. | `8192m`
`maxHeap` | Specify the maximum heap size of the JVM. | `8192m`

### JVM Arguments
Expand Down
2 changes: 1 addition & 1 deletion charts/pega/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ until cqlsh -u {{ $cassandraUser | quote }} -p {{ $cassandraPassword | quote }}
{{- if .node.initialHeap }}
value: "{{ .node.initialHeap }}"
{{- else }}
value: "4096m"
value: "8192m"
{{- end }}
# Maximum JVM heap size, equivalent to -Xmx
- name: MAX_HEAP
Expand Down
2 changes: 1 addition & 1 deletion terratest/src/test/pega/pega-tier-deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func VerifyDeployment(t *testing.T, pod *k8score.PodSpec, expectedSpec pegaDeplo
require.Equal(t, "", pod.Containers[0].Env[envIndex].Value)
envIndex++
require.Equal(t, "INITIAL_HEAP", pod.Containers[0].Env[envIndex].Name)
require.Equal(t, "4096m", pod.Containers[0].Env[envIndex].Value)
require.Equal(t, "8192m", pod.Containers[0].Env[envIndex].Value)
envIndex++
require.Equal(t, "MAX_HEAP", pod.Containers[0].Env[envIndex].Name)
require.Equal(t, "8192m", pod.Containers[0].Env[envIndex].Value)
Expand Down

0 comments on commit fd4bf79

Please sign in to comment.