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

[Question] How tunnel handle connections #659

Closed
adamzhoul opened this issue Dec 7, 2021 · 3 comments
Closed

[Question] How tunnel handle connections #659

adamzhoul opened this issue Dec 7, 2021 · 3 comments
Labels
kind/question kind/question

Comments

@adamzhoul
Copy link
Member

adamzhoul commented Dec 7, 2021

after reading: https://openyurt.io/blog/Build-side-efficient-collaborative-network

I have some questions:

if we have n tunnel-agent pods and m tunnel-server pods
does each tunnel-agent has m connections and each tunnel-server has n connections?
isn't this too complicated for agents and too many connections for agents and servers?

has the problem the article comes up been fixed?

what if a new agent hasn't connected to all server, how can we make sure apiServer traffic can be forward to that agent?
we put svcIP in host configmap, right ?

@adamzhoul adamzhoul added the kind/question kind/question label Dec 7, 2021
@YRXING
Copy link
Member

YRXING commented Dec 7, 2021

If we have n tunnel-agent and m tunnel-server, then there will be m*n grpc connections. Deploying multiple tunnel servers can solve the single point problem .
if a new agent hasn't connected to all server, the traffic may not reach the tunnel agent. This is indeed a problem at the start of a new agent.
the api-server traffic will be forward tunnel-server firstly( through two ways: DNAT/DNS ), then it's the proxy server's responsibility to select the right tunnel agent (parse the http header's host filed) and forward to it.

@rambohe-ch
Copy link
Member

after reading: https://openyurt.io/blog/Build-side-efficient-collaborative-network

I have some questions:

if we have n tunnel-agent pods and m tunnel-server pods does each tunnel-agent has m connections and each tunnel-server has n connections? isn't this too complicated for agents and too many connections for agents and servers?

has the problem the article comes up been fixed?

what if a new agent hasn't connected to all server, how can we make sure apiServer traffic can be forward to that agent?
we put svcIP in host configmap, right ?

@adamzhoul we will try to solve this problem in new edge network proposal, you can reference here: #637

@adamzhoul
Copy link
Member Author

that's great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question kind/question
Projects
None yet
Development

No branches or pull requests

3 participants