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

[BEAM-12634] JmsIO auto scaling feature #15464

Merged
merged 6 commits into from Sep 10, 2021

Conversation

rvballada
Copy link
Contributor

@rvballada rvballada commented Sep 7, 2021

Add autoscaling feature to JmsIO connector:

  • Provide a generic AutoScaler interface with the ability to implement getTotalbacklogBytes or/and getSplitBacklogBytes,

  • Provide a DefaultAutoScaler implementation (returning BACKLOG_UNKNOWN in both case),

  • add a new withAutoScaler configuration method to inject a custom auto scaler

  • https://issues.apache.org/jira/browse/BEAM-12634


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

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • 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.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status ---
XLang Build Status Build Status Build Status Build Status Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

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

- Provide DefaultAutoscaler implementation
- Add new autoscaler field to JmsIO
@rvballada
Copy link
Contributor Author

R: @lukecwik

@rvballada
Copy link
Contributor Author

retest this please

Copy link
Member

@lukecwik lukecwik left a comment

Choose a reason for hiding this comment

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

I was wrong in suggesting adding the getSplitBacklogBytes because we would need to expose a way for the autoscaler to know the current split which I believe will add a bunch of complexity to the current implementation that we don't want. So let's drop for now and then if it becomes needed it can be re-added.

Other then that just changes to comments.

@pabloem
Copy link
Member

pabloem commented Sep 9, 2021

what's the status of ths PR? : )

@rvballada
Copy link
Contributor Author

what's the status of ths PR? : )

Hello, the PR has been reviewed by @lukecwik and changes made accordingly :-)

@lukecwik
Copy link
Member

Run Java PreCommit

@lukecwik lukecwik merged commit a204890 into apache:master Sep 10, 2021
calvinleungyk pushed a commit to calvinleungyk/beam that referenced this pull request Sep 22, 2021
* [BEAM-12634]: Provide generic Autoscaler interface,
- Provide DefaultAutoscaler implementation
- Add new autoscaler field to JmsIO

* [BEAM-12634]: Add Unit Tests for DefaultAutoScaler and mock custom Autoscaler

* [BEAM-12634] => Apply suggestions from code review

- Delete getSplitBacklogBytes method
- Add new comments

Co-authored-by: Lukasz Cwik <lcwik@google.com>

* [BEAM-12634]: Fix tests and some JavaDoc comments consecutively to code review

* [BEAM-12634]: Add comment on Autoscaler#getTotalBacklogBytes

* Update sdks/java/io/jms/src/main/java/org/apache/beam/sdk/io/jms/AutoScaler.java

Co-authored-by: Lukasz Cwik <lcwik@google.com>
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.

None yet

3 participants