Skip to content

Commit

Permalink
Fixing #18 by updating CPU/Memory request/limit for cassandra and sea…
Browse files Browse the repository at this point in the history
…rch (#20)

Added requests.memory and limits.memory for Pega search deployment.
Added requests.memory/requests.cpu and limits.memory/limits.cpu for cassandra deployment.
  • Loading branch information
kkapoor1987 authored and dcasavant committed Jul 23, 2019
1 parent 847ea30 commit 03f4819
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/pega/templates/pega-search-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ spec:
resources:
requests:
cpu: "0.25"
memory: "2Gi"
limits:
cpu: "{{ .Values.search.cpuLimit }}"
memory: "{{ .Values.search.memLimit }}"
ports:
- containerPort: 9200
name: http
Expand Down
11 changes: 11 additions & 0 deletions charts/pega/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ cassandra:
# See https://github.com/helm/charts/blob/master/incubator/cassandra/values.yaml
persistence:
enabled: true
## Minimum memory for development is 4GB and 2 CPU cores
## Minimum memory for production is 8GB and 4 CPU cores
resources:
requests:
memory: "4Gi"
cpu: 2
limits:
memory: "8Gi"
cpu: 4

# DDS (external Cassandra) connection settings.
# These settings should only be modified if you are using a custom Cassandra deployment.
Expand All @@ -208,6 +217,8 @@ search:
image: "YOUR_ELASTICSEARCH_IMAGE:TAG"
# Enter the CPU limit for each search node (recommended 1).
cpuLimit: 1
# Enter the Memory limit for each search node (recommended 4Gi).
memLimit: "4Gi"
# Enter the volume size limit for each search node (recommended 5Gi).
volumeSize: "5Gi"

Expand Down

0 comments on commit 03f4819

Please sign in to comment.