Migration method, electronic equipment and storage medium for microservices in multi-computer rooms
A micro-service and multi-computer room technology, applied in the field of information processing, can solve problems such as data inconsistency and data conflicts in multiple computer rooms, and achieve the effect of avoiding data conflicts and optimizing migration methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 A schematic flowchart of a method for migrating microservices in multiple computer rooms according to Embodiment 1 of the present invention is shown, such as figure 1 As shown, the method includes the following steps:
[0030] Step S101 , according to the data migration request for the microservice to be migrated, determine the source host room and the target host room corresponding to the microservice to be migrated.
[0031] Specifically, the host room and the slave room are pre-configured for each microservice in the configuration center. Microservices refer to services that can be deployed independently and have high cohesion characteristics. Different microservices also have low coupling characteristics. Those skilled in the art can configure the host room and the slave room for each microservice according to actual needs, so as to ensure that the traffic in the computer room is balanced. Assuming that the e-book reading server contains 4 microservices, ...
Embodiment 2
[0043] figure 2 It shows a schematic flowchart of a method for migrating microservices in multiple computer rooms according to Embodiment 2 of the present invention, as shown in figure 2 As shown, the method includes the following steps:
[0044] Step S201, configuring the master computer room and the slave computer room for each microservice in the configuration center.
[0045] In the configuration center, the master room and the slave room can be configured for each microservice based on principles such as machine room traffic balance. For each microservice, the host computer room of the microservice is used to provide external data access. When the host computer room provides external data access, the slave computer room of the microservice does not provide external data access, but serves as a hot backup. Among them, some microservices need to call each other, for example, multiple microservices related to user-generated content need to call each other, or multiple mi...
Embodiment 3
[0063] Embodiment 3 of the present invention provides a non-volatile storage medium, where the storage medium stores at least one executable instruction, and the executable instruction can execute the method for migrating microservices in multiple computer rooms in any of the foregoing method embodiments.
[0064] The executable instructions can specifically be used to cause the processor to perform the following operations: according to the data migration request for the microservice to be migrated, determine the source host room and the target host room corresponding to the microservice to be migrated; use the switch component to turn off the microservice to be migrated at the source External data access of the host room; generate probe data, write the probe data into the data access log of the source host room, and synchronize the data access log of the source host room to the target host room; the target host room reads the data access log Update the database. When the prob...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap