Skip to content

Commit

Permalink
feat: switch to camunda "core" component, instead of individual zeebe…
Browse files Browse the repository at this point in the history
…, tasklist, operate component
  • Loading branch information
remcowesterhoud committed Dec 3, 2024
1 parent 25a8e05 commit a8af21e
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 229 deletions.
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sources:
dependencies:
- name: camunda-platform
repository: "oci://ghcr.io/camunda/helm"
version: "0.0.0-8.7.0-alpha1"
version: "0.0.0-snapshot-alpha"
condition: "camunda.enabled"
- name: prometheus-elasticsearch-exporter
repository: "https://prometheus-community.github.io/helm-charts"
Expand Down
9 changes: 4 additions & 5 deletions charts/zeebe-benchmark/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

Installed Zeebe cluster with:

* {{ index .Values "camunda-platform" "zeebe" "clusterSize" }} Brokers ({{ index .Values "camunda-platform" "zeebe" "image" "repository" }}:{{ index .Values "camunda-platform" "zeebe" "image" "tag" }})
* {{ index .Values "camunda-platform" "zeebeGateway" "replicas" }} Gateways ({{ index .Values "camunda-platform" "zeebeGateway" "image" "repository" }}:{{ index .Values "camunda-platform" "zeebeGateway" "image" "tag" }})
{{- if index .Values "camunda-platform" "operate" "enabled" }}
* Operate ({{ index .Values "camunda-platform" "operate" "image" "repository" }}:{{ index .Values "camunda-platform" "operate" "image" "tag" }})
{{ end }}
* {{ index .Values "camunda-platform" "core" "clusterSize" }} Brokers ({{ index .Values "camunda-platform" "core" "image" "repository" }}:{{ index .Values "camunda-platform" "core" "image" "tag" }})
{{/*{{- if index .Values "camunda-platform" "operate" "enabled" }}*/}}
{{/* * Operate ({{ index .Values "camunda-platform" "operate" "image" "repository" }}:{{ index .Values "camunda-platform" "operate" "image" "tag" }})*/}}
{{/*{{ end }}*/}}

The benchmark is running with:

Expand Down
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/templates/publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- name: JDK_JAVA_OPTIONS
value: >-
-Dconfig.override_with_env_vars=true
-Dapp.brokerUrl={{ .Release.Name }}-zeebe-gateway:26500
-Dapp.brokerUrl={{ .Release.Name }}-core:26500
-Dapp.starter.rate={{ .Values.publisher.rate }}
-Dzeebe.client.requestTimeout=62000
-XX:+HeapDumpOnOutOfMemoryError
Expand Down
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/templates/starter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
{{- if $.Values.saas.enabled }}
-Dapp.tls=true
{{- else }}
-Dapp.brokerUrl={{ $.Release.Name }}-zeebe-gateway:26500
-Dapp.brokerUrl={{ $.Release.Name }}-core:26500
{{- end }}
-Dapp.starter.rate={{ .Values.starter.rate }}
-Dapp.starter.durationLimit=0
Expand Down
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/templates/timer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- name: JDK_JAVA_OPTIONS
value: >-
-Dconfig.override_with_env_vars=true
-Dapp.brokerUrl={{ .Release.Name }}-zeebe-gateway:26500
-Dapp.brokerUrl={{ .Release.Name }}-core:26500
-Dapp.starter.rate={{ .Values.timer.rate }}
-Dzeebe.client.requestTimeout=62000
-XX:+HeapDumpOnOutOfMemoryError
Expand Down
2 changes: 1 addition & 1 deletion charts/zeebe-benchmark/templates/workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
{{- if $.Values.saas.enabled }}
-Dapp.tls=true
{{- else }}
-Dapp.brokerUrl={{ $.Release.Name }}-zeebe-gateway:26500
-Dapp.brokerUrl={{ $.Release.Name }}-core:26500
{{- end }}
-Dzeebe.client.requestTimeout=62000
{{- if $worker.capacity }}
Expand Down
108 changes: 42 additions & 66 deletions charts/zeebe-benchmark/values-realistic-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ global:
tag: SNAPSHOT
# Image.pullPolicy defines the image pull policy which should be used https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
pullPolicy: Always
# Disable Identity completely; both this flag and `camunda-platform.identity.enabled` are required.
identity:
auth:
enabled: false

# DEPRECATED worker configuration for the to be deployed worker application
worker:
Expand Down Expand Up @@ -217,69 +213,9 @@ starter:
# each created process instance
businessKey: "customerId"

## @section Orchestration Core Parameters
## @extra core configuration for the Orchestration Core.
camunda-platform:
enabled: true

zeebe:
# Image configuration to configure the zeebe image specifics
image:
# Image.repository defines which image repository to use
repository: camunda/zeebe
tag: SNAPSHOT

# Retention can be used to define the data in Elasticsearch (ILM).
retention:
## @param zeebe.retention.enabled if true, the ILM Policy is created and applied to the index templates.
enabled: true
## @param zeebe.retention.minimumAge defines how old the data must be, before the data is deleted as a duration.
minimumAge: 1d # set it to a higher value if we run with operate, so operate has enough time to consume the data

# Resources configuration to set request and limit configuration for the container https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limitsS
resources:
limits:
cpu: 1700m
memory: 4Gi
requests:
cpu: 1350m
memory: 4Gi

zeebeGateway:
# Replicas defines how many standalone gateways are deployed
replicas: 2

# Image configuration to configure the zeebe-gateway image specifics
image:
# Image.repository defines which image repository to use
repository: camunda/zeebe
tag: SNAPSHOT

# Resources configuration to set request and limit configuration for the container https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
resources:
limits:
cpu: 450m
memory: 1Gi
requests:
cpu: 450m
memory: 1Gi

operate:
enabled: true
image:
repository: camunda/operate
tag: SNAPSHOT
# Resources configuration to set request and limit configuration for the container https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
resources:
requests:
cpu: 600m
memory: 400Mi
limits:
cpu: 2000m
memory: 2Gi
env:
- name: CAMUNDA_OPERATE_IMPORTERENABLED
value: "false"

# ELASTIC
elasticsearch:
enabled: true
imageTag: 8.9.2
Expand Down Expand Up @@ -309,3 +245,43 @@ camunda-platform:
size: 128Gi
# Persistent Volume Access Modes
accessModes: [ "ReadWriteOnce" ]

core:
## @param core.enabled if true, all related resources are deployed via the helm release
enabled: true

## @param core.debug if true, extra info is printed.
debug: false

## @extra core.image configuration to configure the image specifics
image:
## @param core.image.repository defines which image repository to use
repository: camunda/camunda
## @param core.image.tag can be set to overwrite the global tag, which should be used in that chart
tag: SNAPSHOT


## @param core.logLevel defines the log level which is used
logLevel: info

ingress:
grpc:
## @param core.ingress.grpc.enabled if true, an ingress resource is deployed with the Zeebe gateway deployment. Only useful if an ingress controller is available, like nginx.
enabled: true
http:
## @param core.ingress.http.enabled if true, an ingress resource is deployed with the Zeebe gateway deployment. Only useful if an ingress controller is available, like nginx.
enabled: true

## @extra core.resources configuration to set request and limit configuration for the container https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
## @extra core.resources.requests
## @param core.resources.requests.cpu
## @param core.resources.requests.memory
## @param core.resources.limits.cpu
## @param core.resources.limits.memory
resources:
requests:
cpu: 1350m
memory: 4Gi
limits:
cpu: 1700m
memory: 4Gi
Loading

0 comments on commit a8af21e

Please sign in to comment.