Skip to content

Load balancing to a backed websocket service using "least_conn" #1960

Answered by jasonwilliams14
vkbodanki asked this question in Q&A
Discussion options

You must be logged in to vote

@vebodank I believe we know what is going on and why you are seeing the different behavior between NGINX Ingress OSS and NGINX In gress Plus.
What is happening is that it works fine for NGINX Ingress Plus, because NGINX Ingress Plus does not have to do a reload when upstreams are changed (brought down brought online) This can be done dynamically.

WIth NGINX Ingress Open source, there has to be a reload when upstreams are changed. In your case, when you bring down one, then bring it back online.. That is important because when the reload occurs, there is a new set of worker processes that is spawned and is not aware of any current existing connections to the backend. (those connections are…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@vkbodanki
Comment options

Comment options

You must be logged in to vote
1 reply
@vkbodanki
Comment options

Comment options

You must be logged in to vote
1 reply
@vkbodanki
Comment options

Comment options

You must be logged in to vote
1 reply
@vkbodanki
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by brianehlert
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants