-
Notifications
You must be signed in to change notification settings - Fork 26.6k
rpc in same zone or rpc in same cell #12764
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
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
Codecov Report
@@ Coverage Diff @@
## 3.2 #12764 +/- ##
============================================
+ Coverage 66.87% 69.32% +2.45%
Complexity 2 2
============================================
Files 1782 1649 -133
Lines 71677 68268 -3409
Branches 10243 9980 -263
============================================
- Hits 47931 47329 -602
+ Misses 19132 16374 -2758
+ Partials 4614 4565 -49 see 169 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
AlbumenJ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a dynamic tag service?
Yes! SRE will not pay more attension to add tag for deployment for multiple zone or cell . developer(192.168.1.223) in shanghai office zone will rpc in shanghai with dubbo.tag=cn|shanghai|office-zone ; |
|
Can this be split into an independent module in dubbo-spi-extensions? |
OK , I will try to refactor . @AlbumenJ is there any way to add dubbo.tag to registry in dubbo-spi-extensions ? |
|
Let's working on apache/dubbo-spi-extensions#216 |








What is the purpose of the change
fix issue: #12763
most people depoy service in three zone for HA , we expect service rpc in same zone :
tag-subnets:
some company's service are in a big zone , we expect service rpc in same cell :
some company's service are in serveral city, we expect service prefer rpc in same zone , and rpc special service across zone( such as stock quantity service):
Brief changelog
ServiceConfig.java will add a tag by subnet, such as :
service on host 172.37.66.1 will add a dubbo.tag=cn|shanghai|a
and then service in cn-shanghai-a will rpc same zone
pull request tag support multi level #12673 will help to prefer rpc with long tag-level, for example:
consumer rpc tag=cn|shanghai|a
prefer1: service tag=cn|shanghai|a
prefer2: service tag=cn|shanghai
prefer3: service tag=cn
prefer4: service tag=""
Verifying this change
Checklist