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 about proxy failure #59

Closed
cheneydeng opened this issue Mar 19, 2019 · 2 comments
Closed

question about proxy failure #59

cheneydeng opened this issue Mar 19, 2019 · 2 comments

Comments

@cheneydeng
Copy link

Glad to read your blog post about "Github Load Balance",That post said GLB will not disrupt any connection in any condition,in my opinion,the addition and remove of proxy is ok,because the existence connection data flow will be handled by the old primary(the new secondary),but what if the primary fail,I don't see how the primary sync with secondary about connection state information,will the connection be terminated on secondary?

@theojulienne
Copy link
Contributor

That post said GLB will not disrupt any connection in any condition

To clarify, if a machine fails, the connections that are terminated on that machine will obviously fail, because the state in the Linux kernel for the connection and the application level state in haproxy, nginx, or whatever service is also gone. GLB doesn't prevent this.

What GLB does is ensure that on a single host failure, no other connections are disrupted as connections are redistributed. In addition, if the primary is drained rather than hard-failed, GLB will gracefully drain it of connections, rather than breaking any of them.

@cheneydeng
Copy link
Author

To clarify, if a machine fails, the connections that are terminated on that machine will obviously fail, because the state in the Linux kernel for the connection and the application level state in haproxy, nginx, or whatever service is also gone. GLB doesn't prevent this.

Thanks for clarifying that.

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

No branches or pull requests

2 participants