Skip to content

Commit

Permalink
Support controlling mission-control insight java memory settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldada committed Sep 5, 2018
1 parent eac5a34 commit 0705800
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
12 changes: 12 additions & 0 deletions stable/mission-control/templates/insight-executor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ spec:
value: '/var/cloudbox'
- name: JFI_HOME_EXECUTOR
value: '/var/cloudbox/executor'
- name: JFMC_EXTRA_JAVA_OPTS
value: "
{{- if .Values.insightExecutor.javaOpts.other }}
{{ .Values.insightExecutor.javaOpts.other }}
{{- end}}
{{- if .Values.insightExecutor.javaOpts.xms }}
-Xms{{ .Values.insightExecutor.javaOpts.xms }}
{{- end}}
{{- if .Values.insightExecutor.javaOpts.xmx }}
-Xmx{{ .Values.insightExecutor.javaOpts.xmx }}
{{- end}}
"
ports:
- containerPort: {{ .Values.insightExecutor.internalPort }}
protocol: TCP
Expand Down
12 changes: 12 additions & 0 deletions stable/mission-control/templates/insight-scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ spec:
key: adminPassword
- name: JFMC_SCHEDULER_MONGO_DB
value: '{{ .Values.mongodb.db.insightSchedulerDb }}'
- name: JFMC_EXTRA_JAVA_OPTS
value: "
{{- if .Values.insightScheduler.javaOpts.other }}
{{ .Values.insightScheduler.javaOpts.other }}
{{- end}}
{{- if .Values.insightScheduler.javaOpts.xms }}
-Xms{{ .Values.insightScheduler.javaOpts.xms }}
{{- end}}
{{- if .Values.insightScheduler.javaOpts.xmx }}
-Xmx{{ .Values.insightScheduler.javaOpts.xmx }}
{{- end}}
"
ports:
- containerPort: {{ .Values.insightScheduler.internalPort }}
protocol: TCP
Expand Down
13 changes: 13 additions & 0 deletions stable/mission-control/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ insightScheduler:
type: ClusterIP
externalPort: 8080
internalPort: 8080

## Control Java options (JAVA_OPTIONS)
## IMPORTANT: keep javaOpts.xmx no higher than resources.limits.memory
javaOpts: {}
# other:
# xms: "500m"
# xmx: "3g"
resources: {}
# requests:
# memory: "500Mi"
Expand Down Expand Up @@ -253,6 +260,12 @@ insightExecutor:
externalPort: 8080
internalPort: 8080

## Control Java options (JAVA_OPTIONS)
## IMPORTANT: keep javaOpts.xmx no higher than resources.limits.memory
javaOpts: {}
# other:
# xms: "500m"
# xmx: "3g"
resources: {}
# requests:
# memory: "500Mi"
Expand Down

0 comments on commit 0705800

Please sign in to comment.