diaosj commented on issue #10992: URL: https://github.com/apache/apisix/issues/10992#issuecomment-1998840147
> > To achieve load balancing based on the number of requests, would it be necessary to configure Nginx to use a single worker and disable keepalive? Specifically, are these the configurations to adjust? > > I'm saying this by my obvious reasoning that you don't have to do this to make it work. If `least-conn` was supposed to be used this way, it would make no sense. Thank you for your response. May I clarify if this implies that the `least_conn` algorithm is independent of the `keepalive` setting? In my understanding, if keepalive connections are reused, wouldn't this result in an inaccurate count of connections for each node in the upstream? Greatly appreciate your insight on this matter. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
