Skip to content

enable BigQueryIO Storage Read throttling detection for Python SDK#31404

Merged
Abacn merged 1 commit into
apache:masterfrom
Abacn:bqreadthrottpy
May 28, 2024
Merged

enable BigQueryIO Storage Read throttling detection for Python SDK#31404
Abacn merged 1 commit into
apache:masterfrom
Abacn:bqreadthrottpy

Conversation

@Abacn

@Abacn Abacn commented May 24, 2024

Copy link
Copy Markdown
Contributor

Before (using a gcp project of limited quota):

image

upscale to 270+ worker aggressively, before cancel the job

After (note: backend change not yet rolled out on prod):

(up-hill part, max worker=181)
image

(down-hill part)
image

note: autoscaler won't kill active worker until current work item finish, and there is a 6 min lapse from worker started to reactive downscale working, see #31253 (comment)

Please add a meaningful description for your change here


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 or the workflows README to see a list of phrases to trigger workflows.

display_schema = "Arrow Schema:" + str(read_session.arrow_schema)
else:
display_schema = "Avro Schema:" + str(read_session.avro_schema)
_LOGGER.info(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is to make this log readable. Before it was printing raw proto message truncated on streams URLs. Now it only prints the number of streams returned and the key fields.

@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @shunping for label python.
R: @shunping for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@Abacn

Abacn commented May 28, 2024

Copy link
Copy Markdown
Contributor Author

R: @shunping @ahmedabu98

@github-actions

Copy link
Copy Markdown
Contributor

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

@ahmedabu98 ahmedabu98 changed the title enable BigQueryIO read throttling detection for Python SDK enable BigQueryIO Storage Read throttling detection for Python SDK May 28, 2024

@ahmedabu98 ahmedabu98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks Yi!

@Abacn

Abacn commented May 28, 2024

Copy link
Copy Markdown
Contributor Author

Python ML test failure on 2/5 python versions unrelated to the change. Merging for now.

@Abacn Abacn merged commit f751977 into apache:master May 28, 2024
@Abacn Abacn deleted the bqreadthrottpy branch May 28, 2024 23:52
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.

2 participants