-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blog: write Camunda Exporter performance blog
- Loading branch information
1 parent
3c37bd3
commit e026334
Showing
20 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/base-general.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/base-latency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+187 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/base-latency2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.9 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/change-resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
146 changes: 146 additions & 0 deletions
146
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
--- | ||
layout: posts | ||
title: "Camunda Exporter performance" | ||
date: 2024-11-14 | ||
categories: | ||
- chaos_experiment | ||
- bpmn | ||
tags: | ||
- availability | ||
authors: zell | ||
--- | ||
|
||
# Chaos Day Summary | ||
|
||
In our [last Chaos day](../2024-10-24-Camunda-Exporter-MVP/index.md) we experimented with the Camunda Exporter MVP. After our MVP we continued with Iteration 2, where we migrated the Archiver deployments and added a new Migration component (allows us to harmonize indices). | ||
|
||
![](it2-migration.png) | ||
|
||
Additionally, [some fixes and improvements](https://github.com/zeebe-io/benchmark-helm/pull/202) have been done to our realistic benchmarks that should allow us to better compare the general performance with a realistic good performing benchmark. | ||
|
||
Actually, this is what we want to explore today. | ||
|
||
* Does the Camunda Exporter (since last benchmark) impact performance? And how? | ||
* How can we potentially mitigate this? | ||
|
||
**TL;DR;** Today's, results showed that, enabling the Camunda Exporter causes a 25% processing throughput drop. We identified the CPU as bottleneck. It seems to be mitigated with either adjusting the CPU requests or removing the ES exporter. With these results we are equipped to make further investigations and decisions. | ||
|
||
<!--truncate--> | ||
|
||
We identified the CPU as bottleneck (which is kind of expected, as we run now more in the Zeebe system). It seems to be mitigated with either adjusting the CPU requests or and limits (as we can remove certain deployments, like importer/archiver) or removing the ES exporter (which is still needed/planned for 8.7 to be use with Optimize). Based on the results we know now the bigger impact and can iterate on this. | ||
|
||
## Benchmarks | ||
|
||
As in the [last Chaos day](../2024-10-24-Camunda-Exporter-MVP/index.md) we use the new realistic benchmarks, that contain a much more complex process model and workload. | ||
We recently found some smaller issues in our benchmarks, related to [CPU throttling](https://github.com/zeebe-io/benchmark-helm/pull/204) and [undersized workers](https://github.com/zeebe-io/benchmark-helm/pull/202), these issues have been fixed. This allowed us to reach a much better workload/throughput on our weekly benchmarks, which we take here as a base for our comparison. | ||
|
||
The newest benchmark helm charts have been updated to the first [Camunda Platform alpha1](https://github.com/zeebe-io/benchmark-helm/releases/tag/zeebe-benchmark-0.3.8), which includes the Camunda Exporter. | ||
|
||
Today we run the following benchmarks | ||
|
||
* Use Camunda Exporter, with disabled Importer in our benchmark | ||
* Use Camunda Exporter, with disabled Importer and disabled ES exporter | ||
* Use Camunda Exporter, with disabled Importer and higher CPU on brokers | ||
|
||
### Benchmark: Base | ||
|
||
As we can see we can have a healthy cluster with a stable load where we reach to complete ~50 process instances, with that ~100 tasks, per second. All of this with a low backpressure. | ||
|
||
![general](base-general.png) | ||
|
||
|
||
### Benchmark: Camunda Exporter | ||
|
||
When running our benchmarks with the Camunda Exporter the first thing we can observe is that the backpressure is much higher and the throughput went down by ~25-30%. We are now able to complete ~36 process instances, meaning 72 tasks, per second. | ||
|
||
![](it2-exporter-general.png) | ||
|
||
#### Latency | ||
|
||
Looking at the processing latency we can observe a significant increase | ||
|
||
##### Base | ||
|
||
![](base-latency.png) | ||
![](base-latency2.png) | ||
|
||
##### Camunda Exporter | ||
|
||
The process instance execution p99 has been increased from ~4s to +60s, the p50 went from ~0,5s to ~3,7s. | ||
|
||
![](it2-exporter-latency.png) | ||
![](it2-exporter-latency2.png) | ||
|
||
#### CPU | ||
|
||
Investing this, we can look at the CPU. On our base Benchmark, we have CPU throttling around 20%. | ||
|
||
![cpu](base-cpu.png) | ||
|
||
When comparing this with the Camunda Exporter benchmark, we can see that the CPU throttling went up to 80%. The benchmark is close to its limits. | ||
|
||
![](it2-exporter-cpu.png) | ||
|
||
|
||
### Benchmark: Without ES exporter | ||
|
||
As we have seen the Camunda Exporter, causes the Brokers to consumes a lot more CPU. This is kind of expected as there much more running now in our system. | ||
|
||
As an additional experiment we want to run the Benchmarks with the Camunda Exporter, without the Elasticsearch exporter. The hypothesis is that we can reduce the resource consumption and use it for the Camunda Exporter. The Elasticsearch exporter is with 8.7, only necessary for Optimize. | ||
|
||
![](no-es-general.png) | ||
|
||
After setting up the benchmark we can observe that the throughput went back to normal. | ||
|
||
#### Latency | ||
|
||
The latency is reduced, and we can also observe that it seems to drop over time as well. | ||
|
||
![](no-es-latency.png) | ||
![](no-es-latency2.png) | ||
|
||
#### CPU | ||
|
||
The CPU throttling is dropping at some-point, which explains the other drop of latency. | ||
|
||
![](no-es-cpu.png) | ||
|
||
### Benchmark: More CPU | ||
|
||
As we're migrating logic from the actual Importer deployment to the Camunda Exporter, we can get rid of such extra deployment and bound resources. Arguable we can use these free resources and assign them to the brokers. | ||
|
||
When we look at the Camunda Exporter benchmark, the Operate deployment itself doesn't use many resources, and likely don't need the assigned ones. | ||
|
||
![](it2-exporter-operate-cpu.png) | ||
|
||
![](change-resources.png) | ||
|
||
This change allows to bring the throughput as well back to normal. | ||
|
||
![](more-cpu-general.png) | ||
|
||
#### Latency | ||
|
||
The latency is similar to our base benchmark. | ||
|
||
![](more-cpu-latency.png) | ||
![](more-cpu-latency2.png) | ||
|
||
#### CPU | ||
|
||
The CPU throttling has been reduced to almost zero. Interesting is that we don't use much more CPU resources (just slightly more, before ~1350m now ~1450 CPU). Increasing our requests by a little, allowed us to remove the CPU throttling. This is something we likely want to investigate further. | ||
|
||
![](more-cpu-cpu.png) | ||
|
||
### Results | ||
|
||
As we have seen, introducing (or enabling) the Camunda Exporter, can or will increase our processing latency and reduce our potential processing throughput. This obviously depends on the cluster load. | ||
|
||
We were able to pinpoint the problem to limited resources, to be specific CPU is the bottleneck. | ||
|
||
This is expected, as running the Camunda Exporter means we are running more logic inside the Zeebe system. | ||
|
||
We can mitigate this with: | ||
|
||
* reducing load from the system, via disabling the additional ES exporter | ||
* give the system more resources |
Binary file added
BIN
+341 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/it2-exporter-cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+343 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/it2-exporter-general.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+101 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/it2-exporter-latency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+322 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/it2-exporter-latency2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+66.2 KB
...-days/blog/2024-11-14-Camunda-Exporter-performance/it2-exporter-operate-cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.6 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/it2-migration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+238 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/more-cpu-cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/more-cpu-general.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+66.9 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/more-cpu-latency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+193 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/more-cpu-latency2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+175 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/no-es-general.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.5 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/no-es-latency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 KB
chaos-days/blog/2024-11-14-Camunda-Exporter-performance/no-es-latency2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.