Skip to content

Commit

Permalink
Change Envoy LB Algorithm to Least Requests (#265)
Browse files Browse the repository at this point in the history
* small update to docs

* change lb algorithn to least requests
  • Loading branch information
ukclivecox authored Jun 4, 2022
1 parent edfd800 commit 291a11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler/pkg/envoy/resources/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func MakeCluster(clusterName string, eps []Endpoint, isGrpc bool) *cluster.Clust
Name: clusterName,
ConnectTimeout: durationpb.New(5 * time.Second),
ClusterDiscoveryType: &cluster.Cluster_Type{Type: cluster.Cluster_STRICT_DNS},
LbPolicy: cluster.Cluster_ROUND_ROBIN,
LbPolicy: cluster.Cluster_LEAST_REQUEST,
LoadAssignment: MakeEndpoint(clusterName, eps),
DnsLookupFamily: cluster.Cluster_V4_ONLY,
TypedExtensionProtocolOptions: map[string]*anypb.Any{"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": hpoMarshalled},
Expand All @@ -85,7 +85,7 @@ func MakeCluster(clusterName string, eps []Endpoint, isGrpc bool) *cluster.Clust
Name: clusterName,
ConnectTimeout: durationpb.New(5 * time.Second),
ClusterDiscoveryType: &cluster.Cluster_Type{Type: cluster.Cluster_STRICT_DNS},
LbPolicy: cluster.Cluster_ROUND_ROBIN,
LbPolicy: cluster.Cluster_LEAST_REQUEST,
LoadAssignment: MakeEndpoint(clusterName, eps),
DnsLookupFamily: cluster.Cluster_V4_ONLY,
}
Expand Down

0 comments on commit 291a11b

Please sign in to comment.