Skip to content

Commit

Permalink
Add support for istio LEAST_REQUEST destination rule load balancing a…
Browse files Browse the repository at this point in the history
…lgorithm

Signed-off-by: Ivan Lopes <[email protected]>
  • Loading branch information
Codasquieves committed May 25, 2023
1 parent e71ce18 commit 18e6afa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.
Expand Down
1 change: 1 addition & 0 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.
Expand Down
1 change: 1 addition & 0 deletions kustomize/base/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ spec:
- LEAST_CONN
- RANDOM
- PASSTHROUGH
- LEAST_REQUEST
type: string
outlierDetection:
description: Settings controlling eviction of unhealthy hosts from the load balancing pool.
Expand Down
6 changes: 6 additions & 0 deletions pkg/apis/istio/v1alpha3/destination_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18e6afa

Please sign in to comment.