least_time

Syntax: least_time connect | first_byte | last_byte;
Default:
Context: upstream

Specifies that a group should use a load balancing method where a connection is passed to the server with the least average time and least number of active connections, taking into account weights of servers. If there are several such servers, they are tried in turn using a weighted round-robin balancing method.

If the connect parameter is specified, time to connect to the upstream server is used. If the first_byte parameter is specified, time to receive the first byte of data is used. If the last_byte is specified, time to receive the last byte of data is used.

This directive is available as part of our commercial subscription.
doc_nginx
2017-02-09 07:06:43
Comments
Leave a Comment

Please login to continue.