least_time

Syntax: least_time header | last_byte;
Default:
Context: upstream

This directive appeared in version 1.7.10.

Specifies that a group should use a load balancing method where a request is passed to the server with the least average response 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 header parameter is specified, time to receive the response header is used. If the last_byte parameter is specified, time to receive the full response 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.