Measuring the energy and carbon usage of Camunda Workers.
All test resources are under src/ and tf/. while the first folder contains the test workers and processes, the latter contains the Terraform files to setup a Camunda 8 cluster based on AWS EKS and deploys the necessary resources.
Create a local .env file base on our env_template.
Fill the variables using the values obtained by creating a new client in your C8 SaaS Cluster.
To get easily going execute the start_locally.sh script. If you want to clean up your setup afterward you could use destroy_locally.sh.
The login to Grafana is admin and password prom-operator.
If you want to use C8 Self-Managed, please set TF_VAR_CAMUNDA_CLIENT_MODE='self-managed' (see https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/getting-started/#self-managed).
Important
There is a bug inside the eks module provided by Camunda which MAY break the destroying of resources, in case that happens, you have to execute terraform apply -destroy twice
- Make sure you have AWS CLI (and configured), Terraform and Zeebe CLI installed
- Clone Repo
- Setting up the environments
- Running C8 on the locally configured kubernetes cluster i.e. the cluster which is active via the
.kubeconffile- Use
terraform initandterraform applyin thetf/c8of the project after settingTF_VAR_CAMUNDA_CLIENT_MODE='self-managed'
- Use
- (Optional) If you want to use an AWS EKS cluster configured according to Camunda and setup your
.kubeconfaccordingly- Use
terraform initandterraform applyin thetf/eksof the project and afterwards setup C8
- Use
- Running C8 on the locally configured kubernetes cluster i.e. the cluster which is active via the
- (Camunda 8) When everything is finished you can access the following
- (🗡️ Convenience 🗡️) Execute the script
tf/scripts/forwards.shto open all needed port-forwards in the background - Port-forwards needed for local dev:
- (🗡️ Important 🗡️) If you have Camunda Identity and Keycloak enabled you should keep the ports of these open via:
kubectl port-forward -n camunda svc/camunda-platform-keycloak 18080:80andkubectl port-forward -n camunda svc/camunda-platform-identity 8080:80afterwards vialocalhost:8083and credsdemo:demo
- Camunda Operate via:
kubectl port-forward -n camunda svc/camunda-platform-operate 8081:80and afterwards vialocalhost:8081and credsdemo:demo
- Camunda Tasklist via:
kubectl port-forward -n camunda svc/camunda-platform-tasklist 8082:80and afterwards vialocalhost:8082and credsdemo:demo
- Camunda Zeebee Gateway via:
kubectl port-forward -n camunda svc/camunda-platform-zeebe-gateway 26500:26500and afterwards vialocalhost:26500and credsdemo:demo- The Sample_Process and its worker should already be deployed, therefore you can kick off an instance via
zbctl create instance Fibonacciprocess --insecure - Alternatively, look at the job resource in the camunda namespace
- Grafana via:
kubectl port-forward -n monitoring svc/kube-prometheus-stack-grafana 9102:80and afterwards vialocalhost:9102and credsadmin:prom-operator
- Camunda Optimize via:
kubectl port-forward -n camunda svc/camunda-platform-optimize 8083:80and afterwards vialocalhost:8083and credsdemo:demo
- (🗡️ Convenience 🗡️) Execute the script
If you have any questions or ideas feel free to start a discussion.
This open source project is being developed by envite consulting GmbH.

