You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi again,
Was wondering how to implement maximum connection count to a server ( within a server pool )?
So for example, if I have 3 servers defined, each will handle up to 5 connections, then It will result in 15 simultaneous connections at most.
Maybe something among the lines on Middleware?
Thanks again
The text was updated successfully, but these errors were encountered:
You can do it by keeping server distribution state in a pool of available slots by server using a simple counter, all of this within a middleware component that receives an outgoing request. Then, you should manage the request completion in order to free the taken slot. If you want traffic control on the client side in order to limit the amount of requests (not sure if this makes sense anyway), you would possibly need to use a waiting queue mechanism in case of all the slots are taken and await any new request.
@h2non Thanks for the fast response. I am thinking if I go the route you have suggested with the simpler counter, didn't I loose the server balancing functionality. Perfectly the system should pick a server with a better score if not fully utilized at the moment.
Hi again,
Was wondering how to implement maximum connection count to a server ( within a server pool )?
So for example, if I have 3 servers defined, each will handle up to 5 connections, then It will result in 15 simultaneous connections at most.
Maybe something among the lines on Middleware?
Thanks again
The text was updated successfully, but these errors were encountered: