Welcome! Log In Create A New Profile

Advanced

Re: least_conn not working for me

December 23, 2020 12:36PM
Thanks for the response.

I understand what you are saying about the worker processes. We have only a single worker process.

I have 2 upstream servers.

To validate:
I am sending a request for a LARGE file. I see it hit server1. Server1 is now serving that request for the next couple of minutes.
I send a request for a very tiny file. I see it hit server2. It finishes (server1 is still processing request #1)
I send a request for a very tiny file. I see it hit server1 (even tho it is still serving request #1 and server2 is not serving anything)

I repeat that over and over, and I'll see all the subsequent requests being routed to server1, then 2, then 1 then 2.
If I submit another LARGE file request, if the last request went to server2, then now I have 2 LARGE file requests being served by server1.

If I submit more requests, they all continue to be equally distributed to server1 and server2 (even though server1 has 2 active things it is serving).

Is there some sort of a 'fudge factor' or threshold? That there has to be n number of requests that one server is handling more than another server? I wouldn't think so, but I'm at a loss.
Subject Author Posted

least_conn not working for me

kenneth.s.brooks December 23, 2020 10:28AM

Re: least_conn not working for me

kenneth.s.brooks December 23, 2020 10:57AM

Re: least_conn not working for me

Maxim Dounin December 23, 2020 12:16PM

Re: least_conn not working for me

kenneth.s.brooks December 23, 2020 12:36PM

Re: least_conn not working for me

kenneth.s.brooks December 23, 2020 01:12PM

Re: least_conn not working for me

pbooth December 23, 2020 02:08PM

Re: least_conn not working for me

Maxim Dounin December 23, 2020 04:28PM

Re: least_conn not working for me

kenneth.s.brooks December 23, 2020 04:44PM

Re: least_conn not working for me

philw December 23, 2020 05:00PM

Re: least_conn not working for me

Maxim Dounin December 23, 2020 05:16PM

Re: least_conn not working for me

kenneth.s.brooks December 23, 2020 05:40PM

Re: least_conn not working for me

kenneth.s.brooks December 25, 2020 08:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 61
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready