You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "nzw921rx (via GitHub)" <gi...@apache.org> on 2026/09/03 12:10:45 UTC
[I] [Improve][Zeta] Investigate and improve IMap job-storage benchmark stability [seatunnel]
nzw921rx opened a new issue, #12061:
URL: https://github.com/apache/seatunnel/issues/12061
## Description
This is a focused investigation and improvement task for the latency variance observed in IMap job-storage benchmarks.
It is not a performance regression report and does not attempt to compare the performance of Java 8 with Java 11.
The benchmark results show noticeable sample-to-sample variance in task-group state transitions and large metrics reports:
| Benchmark | Java 8 Error / CV | Java 11 Error / CV |
| --- | ---: | ---: |
| `taskGroupStateTransition`, stored=0 | 10.47% / 9.79% | 11.86% / 11.09% |
| `taskGroupStateTransition`, stored=1000 | 32.29% / 30.21% | 19.32% / 18.07% |
| `runningMetricsReport`, tasks=1000 | 10.91% / 10.21% | 20.21% / 18.90% |
The smaller `runningMetricsReport` cases with 10 and 100 tasks were substantially more stable, which provides a useful control when investigating the 1,000-task case.
Benchmark run:
https://github.com/apache/seatunnel/actions/runs/33723940255
The goals of this issue are to:
1. Identify whether the variance comes from the benchmark fixture, Hazelcast operations, serialization/allocation, storage pressure, metrics processing, or the execution environment.
2. Improve the benchmark fixture or methodology if it causes the instability.
3. Optimize the production job-storage or metrics-report path if profiling confirms an implementation bottleneck.
4. Preserve state-transition correctness and metrics-report semantics.
## Relevant benchmarks
```text
IMapJobStorageBenchmark.taskGroupStateTransition
IMapJobStorageBenchmark.runningMetricsReport
```
## Profiling tools
For an overview of the Zeta benchmark suite and usage, see the [SeaTunnel Zeta Benchmark Guide](https://seatunnel.apache.org/docs/engines/zeta/benchmark).
SeaTunnel provides the `Benchmarks Diagnostics` workflow for running one exact benchmark method with CPU, wall-clock, lock, GC, or JFR profiling:
https://github.com/apache/seatunnel/actions/workflows/benchmarks_diagnostics.yml
The benchmark can also be run directly from the GitHub Actions page by selecting **Benchmarks Diagnostics**, clicking **Run workflow**, and providing the target branch, tag, commit SHA, or trusted PR number together with the exact benchmark method.
## Local profiling
Build the benchmark module:
```bash
./mvnw -Pbenchmark -pl seatunnel-benchmarks -am -DskipTests package
```
Run a profiler locally:
```bash
bash tools/benchmarks/profile_benchmarks.sh profile cpu \
--repository . \
--benchmark 'IMapJobStorageBenchmark.taskGroupStateTransition$'
```
Replace `cpu` with `wall`, `lock`, or `gc` as needed. The same command can be used for:
```text
IMapJobStorageBenchmark.runningMetricsReport$
```
Capture a JFR recording:
```bash
bash tools/benchmarks/profile_benchmarks.sh capture jfr \
--repository . \
--benchmark 'IMapJobStorageBenchmark.taskGroupStateTransition$'
```
CPU, wall-clock, and lock profiling require `ASYNC_PROFILER_HOME`. The GitHub Actions workflow installs the required profiler automatically.
## Expected outcome
This issue should result in both root-cause analysis and a focused improvement:
- Identify and explain the primary source of the latency variance.
- Improve the benchmark when the fixture or methodology is responsible.
- Optimize the production job-storage or metrics-report path when an implementation problem is confirmed.
- Add or update benchmark coverage to validate the improvement.
- Provide before-and-after results collected with the same JDK, runner, benchmark arguments, and storage configuration.
- Compare both operation latency and variance before and after the change.
- Add appropriate tests and confirm that state-transition correctness and metrics-report semantics remain unchanged.
The implementation should focus on the confirmed source and avoid unrelated, broad state-store refactoring.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improve][Zeta] Investigate and improve IMap job-storage benchmark stability [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #12061:
URL: https://github.com/apache/seatunnel/issues/12061#issuecomment-5541698593
Thanks @modelpath-dev. I checked current dev and the open PR set: the named IMap job-storage benchmark paths are present, and there is no active PR for taskGroupStateTransition or runningMetricsReport. The repository does not permit updating assignee metadata from this account, so this thread records the accepted claim for coordination.
Please make the first result an evidence bundle, not a speculative optimization: use the same runner class, JDK, benchmark arguments, and storage configuration; attach JMH JSON and CPU, wall, lock, GC, or JFR profiles; and separate fixture or environment variance from the production storage and metrics-report paths. Any code change must preserve task-group transition and metrics-report semantics, including persistence and failure behavior, include targeted tests, and report comparable before/after latency and variance. Please link a focused PR here when that evidence identifies the correct change point.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improve][Zeta] Investigate and improve IMap job-storage benchmark stability [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12061:
URL: https://github.com/apache/seatunnel/issues/12061#issuecomment-5564334212
Thanks @nzw921rx for the expanded methodology and for clarifying expectations; that lines up with what I asked for above. To keep this thread coordinated:
@modelpath-dev, the sequence is evidence first, PR later. Concretely, the first update we'd like to see here is:
1. One affected parameter combination from the existing IMap job-storage benchmark (taskGroupStateTransition or runningMetricsReport at 1000 tasks), reproduced with the same runner class, JDK, benchmark arguments, and storage configuration as the original runs.
2. The JMH JSON output for that reproduction, plus whichever of CPU, wall, lock, GC, or JFR profiles you were able to capture around the anomalous iterations.
3. A short note separating fixture/environment variance from behavior in the production storage and metrics-report paths, including hypotheses you have already ruled out and any open questions.
A consistent local environment is fine for this stage, and existing experiments you have already run are useful inputs, so please post what you have rather than restarting.
Once the evidence points at a specific change point, we can decide together whether the right outcome is a benchmark correction, a production change, or additional diagnostics. If it ends up being a code change, it must preserve task-group transition and metrics-report semantics (including persistence and failure behavior), ship with targeted tests, and report comparable before/after latency and variance. Please link any focused PR back here when it is ready.
<!-- streview-comment:857 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improve][Zeta] Investigate and improve IMap job-storage benchmark stability [seatunnel]
Posted by "modelpath-dev (via GitHub)" <gi...@apache.org>.
modelpath-dev commented on issue #12061:
URL: https://github.com/apache/seatunnel/issues/12061#issuecomment-5538036011
I'll work on this. Could you assign it to me?
I'll look at the current code, add a focused test, and send a small PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improve][Zeta] Investigate and improve IMap job-storage benchmark stability [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx commented on issue #12061:
URL: https://github.com/apache/seatunnel/issues/12061#issuecomment-5557080242
Thanks for the investigation work so far. I have expanded #12086 with a step-by-step investigation methodology:
https://github.com/apache/seatunnel/issues/12086#investigation-methodology
To clarify the expectations for this issue: the immediate goal is to explain the reported variance through reproducible evidence. There is no expectation to submit a code change or PR immediately.
Please start with one affected parameter combination from the existing benchmark, retain its measurement settings, and investigate how the anomalous iterations relate to specific runtime behavior. A consistent local environment is sufficient for initial reproduction and controlled experiments.
Reproduction results, runtime observations, ruled-out hypotheses, and questions are all welcome here before a PR is ready. Existing experiments remain useful inputs; there is no need to restart work that already provides relevant evidence.
We can discuss those findings first, then decide whether a benchmark correction, production change, or additional diagnostic capability is needed. Any proposed change should explain how it addresses the original symptom and preserve the relevant runtime guarantees.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org