Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realistic benchmarks: Improve app configs #185

Merged
merged 6 commits into from
Sep 16, 2024
Merged

Conversation

ChrisKujawa
Copy link
Member

What the PR does

  • Adjusts the starter configuration, so extraBpmnModels can be correctly configured
  • Adjusts the starter configuration, so we can set a different process ID
  • Adjust the workers so we can configure/define whether messages should be published
  • Add an example values file to configure the realistic benchmark

Example

Changes have be executed and deployed manually in our GKE.

Can be done via: $ helm install zeebe-benchmark charts/zeebe-benchmark/ --render-subchart-notes -f charts/zeebe-benchmark/values-realistic-benchmark.yaml

You can port-forward to Operate to see process instances being executed
kubectl port-forward svc/zeebe-benchmark-operate 8081:80

2024-09-06_12-36

Furthermore, look at the Camunda Performance dashboard to observe the performance.

2024-09-06_12-48

The extraBpmnModels need to configured not as
one string (with comma separation), but
with extra config parameter and array indices.

For example:

-Dapp.starter.extraBpmnModels.0="bpmn/realistic/refundingProcess.bpmn"
-Dapp.starter.extraBpmnModels.1="bpmn/realistic/determineFraudRatingConfidence.dmn" -Dapp.starter.businessKey="customerId"
Process Id needs to be specified to determine which process is actually started
Removing whitespace, as this broke the config
Add a new example values file that shows how to configure a benchmark
with the intend to cover a realistic scenario
@ChrisKujawa ChrisKujawa force-pushed the ck-improve-app-configs branch from 5a335ba to 95d3ed2 Compare September 6, 2024 11:00
Copy link

@deepthidevaki deepthidevaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Comment on lines +19 to +24
# DEPRECATED worker configuration for the to be deployed worker application
worker:
# Worker.benchmark.replicas defines how many replicas of the benchmark worker should be deployed
replicas: 0 # disabled per default as it is deprecated
# Worker.benchmark.capacity defines how many jobs the worker should activate and work on
capacity: 60

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ If it is deprecated, can't it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we might want to still support the old approach, for other benchmarks, but I guess they can also use the old chart. I can remove it

Worker has been replaced with workers, where each worker can defined specifically.

Notes have been adjusted to reflect this
@ChrisKujawa ChrisKujawa merged commit 1488177 into main Sep 16, 2024
3 checks passed
@ChrisKujawa ChrisKujawa deleted the ck-improve-app-configs branch September 16, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants