Skip to content

Commit 6d6fc94

Browse files
authored
Merge pull request #1439 from Codasquieves/main
Add support for istio LEAST_REQUEST destination rule load balancing
2 parents 2b80c47 + 7d29af4 commit 6d6fc94

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

artifacts/flagger/crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ spec:
756756
- LEAST_CONN
757757
- RANDOM
758758
- PASSTHROUGH
759+
- LEAST_REQUEST
759760
type: string
760761
outlierDetection:
761762
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

charts/flagger/crds/crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ spec:
756756
- LEAST_CONN
757757
- RANDOM
758758
- PASSTHROUGH
759+
- LEAST_REQUEST
759760
type: string
760761
outlierDetection:
761762
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

kustomize/base/flagger/crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ spec:
756756
- LEAST_CONN
757757
- RANDOM
758758
- PASSTHROUGH
759+
- LEAST_REQUEST
759760
type: string
760761
outlierDetection:
761762
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.

pkg/apis/istio/v1alpha3/destination_rule.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@ const (
419419
// advanced use cases. Refer to Original Destination load balancer in
420420
// Envoy for further details.
421421
SimpleLBPassthrough SimpleLB = "PASSTHROUGH"
422+
423+
// The least request load balancer spreads load across endpoints,
424+
// favoring endpoints with the least outstanding requests. This is generally
425+
// safer and outperforms ROUND_ROBIN in nearly all cases. Prefer to use LEAST_REQUEST
426+
// as a drop-in replacement for ROUND_ROBIN.
427+
SimpleLBLeastRequest SimpleLB = "LEAST_REQUEST"
422428
)
423429

424430
// Consistent Hash-based load balancing can be used to provide soft

0 commit comments

Comments
 (0)