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

Extract proxy connection logic to specialized class #46898

Merged
merged 11 commits into from
Sep 25, 2019

Conversation

Tim-Brooks
Copy link
Contributor

Currently the logic to check if a connection to a remote discovery node
exists and otherwise create a proxy connection is mixed with the
collect nodes, cluster connection lifecycle, and other
RemoteClusterConnection logic. This commit introduces a specialized
RemoteConnectionManager class which handles the open connections.
Additionally, it reworks the "round-robin" proxy logic to create the list
of potential connections at connection open/close time, opposed to each
time a connection is requested.

@Tim-Brooks Tim-Brooks added >non-issue :Distributed Coordination/Network Http and internode communication implementations v8.0.0 v7.5.0 labels Sep 20, 2019
@Tim-Brooks Tim-Brooks requested a review from ywelsch September 20, 2019 03:58
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

I've left some comments around the caching of connections.

@Tim-Brooks Tim-Brooks requested a review from ywelsch September 23, 2019 02:39
@ywelsch
Copy link
Contributor

ywelsch commented Sep 25, 2019

There are merge conflicts here (after merging your other PR). Can you bring the PR up-to-date? I will have another look then.

@Tim-Brooks
Copy link
Contributor Author

There are merge conflicts here (after merging your other PR). Can you bring the PR up-to-date? I will have another look then.

I merged.

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@Tim-Brooks Tim-Brooks merged commit 6328558 into elastic:master Sep 25, 2019
Tim-Brooks added a commit to Tim-Brooks/elasticsearch that referenced this pull request Sep 25, 2019
Currently the logic to check if a connection to a remote discovery node
exists and otherwise create a proxy connection is mixed with the
collect nodes, cluster connection lifecycle, and other
RemoteClusterConnection logic. This commit introduces a specialized
RemoteConnectionManager class which handles the open connections.
Additionally, it reworks the "round-robin" proxy logic to create the list
of potential connections at connection open/close time, opposed to each
time a connection is requested.
@Tim-Brooks Tim-Brooks deleted the spike_on_remote_proxy_mode branch April 30, 2020 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants