beam icon indicating copy to clipboard operation
beam copied to clipboard

[Feature Request]: Support more latency, throughput, and resource usage metrics in the benchmark framework

Open frank-shuo-chen opened this issue 1 year ago • 6 comments

What would you like to happen?

The Java SDK benchmark / load test framework under it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/ supports a limited set of metrics by default. Support for the following metrics are needed to enable richer, more informative benchmarks:

  • Per stage E2E latencies at various percentiles
  • Input throughput normalized by vCPU time
  • Resource usage and cost estimation (vCPU, memory, etc.) over a set, steady state interval rather than over the entire lifetime of a streaming pipeline

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • [ ] Component: Python SDK
  • [x] Component: Java SDK
  • [ ] Component: Go SDK
  • [ ] Component: Typescript SDK
  • [ ] Component: IO connector
  • [ ] Component: Beam YAML
  • [ ] Component: Beam examples
  • [ ] Component: Beam playground
  • [ ] Component: Beam katas
  • [ ] Component: Website
  • [ ] Component: Infrastructure
  • [ ] Component: Spark Runner
  • [ ] Component: Flink Runner
  • [ ] Component: Samza Runner
  • [ ] Component: Twister2 Runner
  • [ ] Component: Hazelcast Jet Runner
  • [ ] Component: Google Cloud Dataflow Runner

frank-shuo-chen avatar Oct 03 '25 15:10 frank-shuo-chen

.take-issue @frank-shuo-chen @jrmccluskey

aaryab27 avatar Jan 13 '26 03:01 aaryab27

.free-issue

aaryab27 avatar Jan 24 '26 10:01 aaryab27

.take-issue

Midhat-kazmi avatar Feb 11 '26 20:02 Midhat-kazmi

Thanks for assigning the issue.

I'd be interested in working on this. Before starting implementation, could you clarify:

  1. Should these metrics be runner-agnostic, or initially implemented for the Dataflow runner?
  2. Is there an existing metrics abstraction in the IT framework we should extend?
  3. For steady-state intervals, is there a preferred strategy (e.g., fixed time window, manual marking, auto-detection)?

I'd like to align on design expectations before proceeding.

Midhat-kazmi avatar Feb 12 '26 19:02 Midhat-kazmi

This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.

github-actions[bot] avatar Jul 13 '26 13:07 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.

github-actions[bot] avatar Aug 13 '26 12:08 github-actions[bot]