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

Basic Opeartor Metric Support For Data Shuffle (GBK and Combine Per Key) Operators for Samza Runner #26649

Merged
merged 6 commits into from
May 19, 2023

Conversation

Sanil15
Copy link
Contributor

@Sanil15 Sanil15 commented May 10, 2023

Issue
#26456

Summary

  • Added Support for generating throughput, watermark progress & latency metric emission for GBK translator
  • Throughput Metrics are emitted for input (SamzaInputGBKMetricOp) and output throughput (SamzaOutputGBKMetricOp)
  • Watermark Progress Metrics are emitting at the during-process watermark of output
  • Latency Metrics are emitted by collecting avg arrival time at input & output for each transform using formula

Latency = Avg Arrival Time of Elements at Output per windowId- Avg Arrival Time of Elements at Input per windowId

Tests

  • Added functional tests to test SamzaTransformMetricRegistry (SamzaInputGBKMetricOp and SamzaOutputGBKMetricOp)
  • Added end-to-end tests for Metric Compute & Emission
  • All existing runners tests (samza:validateRunner) case pass

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@Sanil15
Copy link
Contributor Author

Sanil15 commented May 10, 2023

R: @xinyuiscool please take a look

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

Copy link
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

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

Thanks for the clean up. One more refactoring comment for the previous patch. Please take a look.

if (isDataShuffleTransform(urn)) {
return new SamzaGBKMetricOp<>(
pValue, transformName, opType, samzaTransformMetricRegistry);
}
return new SamzaInputMetricOp(pValue, transformName, samzaTransformMetricRegistry);
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to GBKMetricOp, can we also merge SamzaInputMetricOp and SamzaOutputMetricOp into one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup it did make sense to simplify this, done!

Copy link
Contributor

@xinyuiscool xinyuiscool left a comment

Choose a reason for hiding this comment

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

LGTM!

@xinyuiscool
Copy link
Contributor

Run Java PreCommit

@xinyuiscool xinyuiscool merged commit 4f1504f into apache:master May 19, 2023
10 checks passed
Sanil15 added a commit to Sanil15/beam that referenced this pull request May 22, 2023
Sanil15 added a commit to linkedin/beam that referenced this pull request May 22, 2023
Dippatel98 pushed a commit to Dippatel98/beam that referenced this pull request Jun 5, 2023
bullet03 pushed a commit to akvelon/beam that referenced this pull request Aug 11, 2023
cushon pushed a commit to cushon/beam that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants