1
0
Fork 0

optimized memory limits and removed cpu limit

This commit is contained in:
sido 2018-09-11 12:25:28 +02:00
parent 9d807d28fc
commit fc7c564e44
3 changed files with 17 additions and 30 deletions

View File

@ -20,8 +20,8 @@ questions:
group: "Version" group: "Version"
label: Registry label: Registry
- variable: molgenis.image.tag - variable: molgenis.image.tag
default: "stable" default: ""
description: "Select a MOLGENIS version (check the registry.molgenis.org or hub.docker.com for other tags)" description: "Select a MOLGENIS version (check the registry.molgenis.org or hub.docker.com for released tags)"
type: string type: string
required: true required: true
group: "Version" group: "Version"
@ -61,36 +61,22 @@ questions:
required: true required: true
group: "Services" group: "Services"
label: Database password label: Database password
- variable: molgenis.resources.limits.cpu
default: 1
description: "CPU limit for this MOLGENIS instance"
type: enum
options:
- "1"
- "2"
- "3"
- "4"
required: true
group: "Resources"
label: CPU limit
- variable: molgenis.resources.limits.memory - variable: molgenis.resources.limits.memory
default: 1250Mi default: 1250Mi
description: "Memory limit for this MOLGENIS instance" description: "Memory limit for this MOLGENIS container"
type: enum type: enum
options: options:
- "1250Mi" - "1250Mi"
- "1500Mi"
- "2000Mi"
- "2500Mi" - "2500Mi"
required: true required: true
group: "Resources" group: "Resources"
label: Memory limit label: Container memory limit
- variable: molgenis.javaOpts - variable: molgenis.javaOpts.maxHeapSpace
default: "-Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" default: "1g"
description: "Java runtime options for the MOLGENIS instance" description: "Maximum heap space MOLGENIS container JVM. Please not this should fit in your container memory limit"
type: enum type: enum
options: options:
- "-Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" - "1g"
- "-Xmx2g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" - "2g"
group: "Resources" group: "Resources"
label: Java memory options label: Maximum heap space

View File

@ -46,7 +46,7 @@ spec:
- name: admin.password - name: admin.password
value: {{ .adminPassword }} value: {{ .adminPassword }}
- name: CATALINA_OPTS - name: CATALINA_OPTS
value: {{ .javaOpts }} value: "-Xmx{{ .javaOpts.maxHeapSpace }} -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled"
ports: ports:
- containerPort: 8080 - containerPort: 8080
livenessProbe: livenessProbe:

View File

@ -17,12 +17,13 @@ ingress:
molgenis: molgenis:
image: image:
repository: registry.molgenis.org repository: registry.hub.docker.com
name: molgenis/molgenis-app name: molgenis/molgenis-app
tag: stable tag: stable
pullPolicy: Always pullPolicy: Always
adminPassword: admin adminPassword: admin
javaOpts: "-Xmx1g -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled" javaOpts:
maxHeapSpace: "1g"
resources: resources:
limits: limits:
cpu: 1 cpu: 1
@ -47,12 +48,12 @@ elasticsearch:
repository: docker.elastic.co/elasticsearch/elasticsearch repository: docker.elastic.co/elasticsearch/elasticsearch
tag: 5.5.3 tag: 5.5.3
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
javaOpts: "-Xms512m -Xmx512m" javaOpts: "-Xms1024m -Xmx1024m"
clusterName: molgenis clusterName: molgenis
resources: resources:
limits: limits:
cpu: 1 cpu: 2
memory: 1500Mi memory: 3Gi
requests: requests:
cpu: 100m cpu: 100m
memory: 1Gi memory: 1Gi