Skip to content

Commit

Permalink
Merge pull request #1439 from Codasquieves/main
Browse files Browse the repository at this point in the history
Add support for istio LEAST_REQUEST destination rule load balancing
  • Loading branch information
aryan9600 authored Jul 7, 2023
2 parents 2b80c47 + 7d29af4 commit 6d6fc94
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 @@ -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.
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 @@ -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.
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 @@ -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.
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 6d6fc94

Please sign in to comment.