Skip to content

Draft PR [FLINK-36876] Add proxy for restClient #956

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chenyuzhi459
Copy link
Contributor

What is the purpose of the change

Add proxy for restClient, which supports to use shared EventLoopGroup

Brief change log

  • Introduce a new class RestClientProxy as the proxy of restClient
  • Introduce a new configuration: kubernetes.operator.flink.client.io.threads to specify the total thread of sharded eventLoopGroup
  • RestClientProxy supports to use sharded eventLoopGroup

Verifying this change

Unit tests + manual verification

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changes to the CustomResourceDescriptors: (no)
  • Core observer or reconciler logic that is regularly executed: (yes)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (docs)

Copy link
Contributor

@gyfora gyfora left a comment

Choose a reason for hiding this comment

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

Makes sense on a high level, reflection is not great but it's okay if we have a better solution in newer Flink versions.

Which Flink version will contain the Fix for this?

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.

2 participants