Fix too-many-pings on FnAPI runner under grpc mode#37013
Fix too-many-pings on FnAPI runner under grpc mode#37013shunping merged 2 commits intoapache:masterfrom
Conversation
Summary of ChangesHello @shunping, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical issue causing gRPC connections in the FnAPI runner to fail due to excessive pings. By explicitly configuring the minimum ping interval on the server to align with the client's keepalive settings, the change significantly enhances the stability and longevity of gRPC communication, thereby improving the overall reliability of the Beam FnAPI runner. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Looks like a good start. Let's give it a try |
* Fix too-many-pings on FnAPI runner under grpc mode * Fix lints
GRPC error as in https://github.com/apache/beam/actions/runs/19958369481/job/57232567333. Notice Python Precommit ML is running on FnAPI runner not prism, as Go environment is not set up in the workflow:
beam/.github/workflows/beam_PreCommit_Python_ML.yml
Lines 109 to 113 in 6aab0af
The error message:
I also notice that the change on
sdks/python/apache_beam/utils/subprocess_server.pyin #36528 may not be effective. Even though the file and class name has "server", it is actually a grpc client which connects to the grpc server endpoint (https://github.com/liferoad/beam/blob/782a0e7cc26e582c31534253fa5a00018bce4c38/sdks/python/apache_beam/utils/subprocess_server.py#L202).If this fix works (getting rid of too-many-pings errors in precommits), we may also tune the setting on PrismRunner.
Some references: