Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] New Condition route v3.1 #14455

Open
4 tasks done
wcy666103 opened this issue Jul 21, 2024 · 1 comment
Open
4 tasks done

[Feature] New Condition route v3.1 #14455

wcy666103 opened this issue Jul 21, 2024 · 1 comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@wcy666103
Copy link
Contributor

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Apache Dubbo Component

Java SDK (apache/dubbo)

Descriptions

the updated condition-route like

dubbo/config/group/{$name}.condition-router

configVersion: v3.1
scope: service
key: org.apache.dubbo.samples.CommentService
force: false
runtime: true
enabled: true

#######
conditions:
  - from:
      match: tag=tag1     # disable traffic
  - from:
      match: tag=gray
    to:
      - match: tag!=gray
        weight: 100
      - match: tag=gray
        weight: 900
  - from:
      match: version=v1
    to:
      - match: version=v1

dubbo/config/group/{$name}.affinity-router

configVersion: v3.1
scope: service # Or application
key: service.apache.com
enabled: true
runtime: true
affinityAware:
  key: region
  ratio: 20

Related issues

#14356

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@wcy666103 wcy666103 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Jul 21, 2024
@AlbumenJ
Copy link
Member

Use ref like $invocation.attachment.tag or $url.tag would be better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants