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

Avoid buffering control plane discovery #632

Merged
merged 5 commits into from
Aug 21, 2020

Conversation

olix0r
Copy link
Member

@olix0r olix0r commented Aug 20, 2020

This incorporates #631 to avoid the watchdog/buffer on control plane discovery.

The discovery layer handles both building a service for each discovered
endpoint, as well as a buffer that fails when the service is not polled
(i.e. because it has been leaked somehow).

This coupling doesn't match other use cases though when, for instance,
the client may not be used frequently, as is the case for
proxy-to-control-plane communication.

This change decouples these layers so that the buffering is decoupled
from endpoint-service construction.
@olix0r olix0r requested a review from a team August 20, 2020 21:36
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

looks great to me!

linkerd/app/src/identity.rs Show resolved Hide resolved
The discovery layer handles both building a service for each discovered
endpoint, as well as a buffer that fails when the service is not polled
(i.e. because it has been leaked somehow).

This coupling doesn't match other use cases though when, for instance,
the client may not be used frequently, as is the case for
proxy-to-control-plane communication.

This change decouples these layers so that the buffering is decoupled
from endpoint-service construction.
Copy link
Member

@zaharidichev zaharidichev left a comment

Choose a reason for hiding this comment

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

LGTM

@zaharidichev zaharidichev merged commit 3829258 into zd/control-plane-discover Aug 21, 2020
@zaharidichev zaharidichev deleted the ver/cp-disco branch August 21, 2020 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants