Skip to content

add peer gRPC service#212

Merged
gandro merged 2 commits intomasterfrom
pr/rolinh/peer-grpc-service
Apr 6, 2020
Merged

add peer gRPC service#212
gandro merged 2 commits intomasterfrom
pr/rolinh/peer-grpc-service

Conversation

@rolinh
Copy link
Copy Markdown
Member

@rolinh rolinh commented Apr 3, 2020

This service is required for peer discovery in the context of the multi-node feature. It will be implemented by embedded Hubble using Cilium's node manager and be used by Hubble proxy to discover Hubble peers and get notified of changes.

I've implemented the gRPC service locally to see if it fits the needs and I can confirm that it does.
It initially consisted of 2 rpc calls but after a discussion with @gandro, we concluded that trimming down to a single rpc call would not only simplify implementation and usage but would also prevent a class of bugs where races could occur (between a call to list and notify for example) leading a client to eventually miss peer change notifications.

Ref: #89

@rolinh rolinh added area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. 🌟 kind/feature This introduces new functionality. labels Apr 3, 2020
@rolinh rolinh requested a review from gandro April 3, 2020 15:52
@rolinh rolinh force-pushed the pr/rolinh/peer-grpc-service branch from f0e635e to fe2ba33 Compare April 6, 2020 08:50
Copy link
Copy Markdown
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Looks good! Just one minor request with regards to forward-compatibility.

Comment thread api/v1/peer/peer.proto Outdated
Comment thread api/v1/peer/peer.proto
rolinh added 2 commits April 6, 2020 11:40
This gRPC service will be implemented by embedded Hubble and be used for
peer discovery by the Hubble proxy server.

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
@rolinh rolinh force-pushed the pr/rolinh/peer-grpc-service branch from fe2ba33 to 3bc6f82 Compare April 6, 2020 09:41
@rolinh rolinh requested a review from gandro April 6, 2020 09:43
Copy link
Copy Markdown
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

🚢

@gandro gandro merged commit 674ba08 into master Apr 6, 2020
@gandro gandro deleted the pr/rolinh/peer-grpc-service branch April 9, 2020 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. 🌟 kind/feature This introduces new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants