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

[Dataflow Streaming] Use isolated windmill streams based on job settings #32503

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arunpandianp
Copy link
Contributor

@arunpandianp arunpandianp commented Sep 19, 2024

The change is behind an experiment streaming_engine_use_job_settings_for_isolated_channels. The experiment will be removed once backend changes are rollback safe.

@arunpandianp arunpandianp changed the title [WIP] [Dataflow Streaming] Use separate heartbeat streams based on job settings [Dataflow Streaming] Use isolated windmill streams based on job settings Sep 20, 2024
@arunpandianp arunpandianp marked this pull request as ready for review September 20, 2024 05:30
@arunpandianp
Copy link
Contributor Author

R: @scwhittle

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@arunpandianp
Copy link
Contributor Author

Run Java Precommit

// IsolationChannel will create and manage separate RPC channels to the same
// serviceAddress via calling the channelFactory, else just directly return the
// RPC channel.
useIsolatedChannels
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be simpler to just have IsolatedChannel accept a atomic boolean that it then examines on whether or not it should perform the isolation or not?

It seems like we wouldn't have to have as much of the plumbing or the factoryfactory if we just always created an IsolatedChannel and just had a way to disable it's effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The channels are cached by ChannelCache, so we have to somehow invalidate the caches when the setting changes. Current approach creates a second new ChannelCache and let the old one expire. Recreating the cache seems simpler than having to invalidate channels, track usage and expire them individually.

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