Skip to content

lb: add new backend utililization lb policy - #3750

Open
wbpcode wants to merge 4 commits into
istio:masterfrom
wbpcode:dev-new-lb-policy
Open

lb: add new backend utililization lb policy#3750
wbpcode wants to merge 4 commits into
istio:masterfrom
wbpcode:dev-new-lb-policy

Conversation

@wbpcode

@wbpcode wbpcode commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR added new API for backend utilization policy. See istio/istio#60814 for more detail

Signed-off-by: wbpcode <wbphub@gmail.com>
@wbpcode
wbpcode requested a review from a team as a code owner August 3, 2026 03:19
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 3, 2026
@wbpcode

wbpcode commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

cc @ramaraochavali

wbpcode added 2 commits August 3, 2026 12:25
Signed-off-by: wbpcode <wbphub@gmail.com>
Signed-off-by: wbpcode <wbphub@gmail.com>
uint64 minimum_ring_size = 4 [deprecated = true];
}

// Client-side weighted round-robin load balancing policy that uses

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/Client-side weighted round-robin/BackendUtilizationLB

// same weight as endpoints without metrics.
// Default is 10s.
// +protoc-gen-crd:duration-validation:none
google.protobuf.Duration blackout_period = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call weight_stabilization_period?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Envoy call it blackout_period, but yeah, seems you name is more appropriate 🤔

// standard `application_utilization` metric is not available from the
// backend. When set, these metrics are used in the weight formula
// instead of the default.
repeated string metric_names_for_computing_utilization = 5;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I added a little more comment to make it more clear, one the the biggest value will be used if the custom metrics are specified.

Signed-off-by: wbpcode <wbphub@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants