Closed YarBor closed 1 month ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
2.5% Duplication on New Code
Is it better to trafficDisable
by default to false
? Every traffic rule that is written should be meaningful by default, instead of having to be shown to be false
, and a false value
that works by default gives the impression that it doesn't work, I think it can be set to false
to reduce that thinking for the user and omit the line by default
Doc for New Routing Configuration
Configuration Format
This doc show how to set up condition-router configurations for your services/application.
The configurations are defined in a YAML format and must adhere to specific rules and parameters to ensure proper functioning.
Examples
Configuration Structure
Top-Level Structure
v3.1
orV3.1
to use this configuration format.service
orapplication
.org.apache.dubbo.samples.CommentService
.true
, it returns an error; iffalse
, it ignores this rule.Conditions
Each condition block contains the following parameters:
region=$region & version=v1
.false
. If set totrue
andfrom
matches successfully, it ignores theto
,force
, andratio
values within the condition, and theforce
value at the top level, returning empty.INT_MAX
and a minimum of 0.true
, it returns empty; iffalse
, it jumps to the next condition.20
meansresult/all-peers >= 20%
.Matching and Filtering Conditions
Supported Parameters
interface
,method
,group
,version
.attachments[key] = value
.arguments[0] = tom
.protocol
,host
,port
.application
,organization
.Condition Operators
method = getComment
.method != getComment
.Value Support
host != 10.20.153.10,10.20.153.11
.region = $region
.userId = 1~100
oruserId = 101~
.