carlvine500 opened a new pull request, #12764: URL: https://github.com/apache/dubbo/pull/12764
## What is the purpose of the change ### most people depoy service in three zone for HA , we expect service rpc in same zone : <img width="929" alt="WeChat59657f69ec05d9cc588af6d033f03e95" src="https://github.com/apache/dubbo/assets/7055460/b2d407f6-b815-4992-b134-fc85089588db"> ### some company's service are in a big zone , we expect service rpc in same cell : <img width="910" alt="WeChata0d541688dc3fb1b8b84931642e6ad33" src="https://github.com/apache/dubbo/assets/7055460/e8de2bf4-ff99-4c12-84bd-a3262c70c8dd"> ### 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 - add a configuration in configcenter: /dubbo/config/dubbo/tag.subnets , such as : ``` cn|shanghai|a: 172.37.66.0/24 #zone=cn-shanghai-a cn|shanghai|b: - 172.37.68.0/24 #zone=cn-shanghai-b cn|shanghai|c: - 172.37.69.0/24 #zone=cn-shanghai-c ``` - ServiceConfig.java will add a tag by subnet, such as : 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 https://github.com/apache/dubbo/pull/12673 will help to prefer rpc in same zone , and rpc across zone if needed . ## Verifying this change <!-- Follow this checklist to help us incorporate your contribution quickly and easily: --> ## Checklist - [x] Make sure there is a [GitHub_issue](https://github.com/apache/dubbo/issues) field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue. - [ ] Each commit in the pull request should have a meaningful subject line and body. - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7 - [ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in [dubbo samples](https://github.com/apache/dubbo-samples) project. - [ ] Add some description to [dubbo-website](https://github.com/apache/dubbo-website) project if you are requesting to add a feature. - [ ] GitHub Actions works fine on your own branch. - [ ] If this contribution is large, please follow the [Software Donation Guide](https://github.com/apache/dubbo/wiki/Software-donation-guide). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
