In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the migration method of Dubbo multi-registry and Zookeeper services". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Dubbo multiple registries
1. Application scenarios
For example, some Alibaba services are too late to deploy in Qingdao, only in Hangzhou, while other applications in Qingdao need to refer to this service to register with two registries at the same time.
Consumer.xml
2. Different services use different registries
For example: some CRM services are specially designed for international stations, while some services are specially designed for Chinese stations.
Consumer.xml
3. Multiple registry references
For example, CRM needs to call the PC2 service of both Chinese and international stations. PC2 is deployed in both Chinese and international stations, with the same interface and version number, but not the same database.
Consumer.xml
If consumer.xml only needs to connect two different registries temporarily in the test environment, use a vertical sign to separate multiple different registry addresses:
II. Service migration of Dubbo multiple registries
1. As the name implies, move services from one place to another, for example, from A to B.
2. How to realize the service migration of multiple registries
Step one
Add the address of the registry in B, which is split between the registries of AB and AB in English, (zk nodes in the same service cluster are separated by commas)
For example: dubbo.registry.address=192.168.220.128:2181 | 192.168.221.129 2181192.168.221.130 2181192.168.221.131purl 2181 this is the configuration of the two registries
Step two
Jenkins rebuilds the service, and the zk1 itself contains all the services, and now the build is to deploy the service to the zk2 cluster. In this way, it can be realized that the two sets of registries of zk in An and zk in B enjoy the same set of services.
Step three
Build all the consumer end of the service
Step 4
First cancel the service that the service consumer invokes zk1, and the specific implementation is to remove the configuration of the first zk, and then build the consumer
Step 5
Unconfigure the service provider as well; then rebuild the service provider. This completes the migration of all services from zk1 to zk2 and removes all services from zk1.
This is the end of the content of "what is the migration method of Dubbo multi-registry and Zookeeper services". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.