Skip to content

cluster specifier: support new attempt aware cluster specifier - #46640

Draft
wbpcode wants to merge 2 commits into
envoyproxy:mainfrom
wbpcode:dev-cluster-specifer-select-cluster
Draft

cluster specifier: support new attempt aware cluster specifier#46640
wbpcode wants to merge 2 commits into
envoyproxy:mainfrom
wbpcode:dev-cluster-specifer-select-cluster

Conversation

@wbpcode

@wbpcode wbpcode commented Aug 11, 2026

Copy link
Copy Markdown
Member

Commit Message: cluster specifier: support new attempt aware cluster specifier
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: wbpcode <wbphub@gmail.com>
@wbpcode
wbpcode marked this pull request as draft August 11, 2026 12:36
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @adisuissa
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #46640 was opened by wbpcode.

see: more, trace.

Comment on lines +109 to +112
// envoy.my_filter:
// priority_groups:
// - name: remote
// - name: local

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The metadata self is extendable and it should be easy to support clusters there if we want per-request level fallback order and traffic distribution.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For example, the default order and configuration:

  priority_groups:
  - name: local
    - name: a
      weight: 20
    - name: b
      weight: 80
  - name: remote
    clusters:
    - name: c
      weight: 20
    - name: d
      weight: 80

the metadata could be:

envoy.my_filter:
  priority_groups:
  - name: remote
    clusters:
    - name: c
      weight: 80
    - name: d
      weight: 20
  - name: local

Then, the order will be overridden. And for the specific request, the group remote's clusters traffic distribution also will be overridden, but the group local, it's will use the default distribution.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants