Add support for istio LEAST_REQUEST destination rule load balancing algorithm

Signed-off-by: Ivan Lopes <ivanckp@gmail.com>
This commit is contained in:
Ivan Lopes
2023-05-25 10:00:54 -03:00
committed by Ivan Lopes
parent 2b80c4756c
commit 7d29af4f41
4 changed files with 9 additions and 0 deletions

View File

@@ -756,6 +756,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

View File

@@ -756,6 +756,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

View File

@@ -756,6 +756,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

View File

@@ -419,6 +419,12 @@ const (
// advanced use cases. Refer to Original Destination load balancer in
// Envoy for further details.
SimpleLBPassthrough SimpleLB = "PASSTHROUGH"
// The least request load balancer spreads load across endpoints,
// favoring endpoints with the least outstanding requests. This is generally
// safer and outperforms ROUND_ROBIN in nearly all cases. Prefer to use LEAST_REQUEST
// as a drop-in replacement for ROUND_ROBIN.
SimpleLBLeastRequest SimpleLB = "LEAST_REQUEST"
)
// Consistent Hash-based load balancing can be used to provide soft