Smooth service upgrade method and device

A smooth and service group technology, applied in the field of service upgrades, can solve problems such as service jitter and frequent changes of service nodes, so as to avoid jitter, facilitate management of service upgrade version iterations, and reduce frequent service jitter

Active Publication Date: 2017-06-13
MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
View PDF2 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The existing technical implementation principle can realize the registration and discovery of services as described above, and it can also be removed in real time when a service stops serving. In most cases, there is no problem, but if you want to upgrade a certain service When a service or gray scale test a service, the service node will change frequently. Generally, the new service node is started first, and then the old service node is shut down. In this way, there will be two service list changes inside the service discovery, which means The proxy service will need to change the configuration twice, and the proxy service will experience service jitter when making configuration changes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Smooth service upgrade method and device
  • Smooth service upgrade method and device
  • Smooth service upgrade method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] This embodiment provides a method for smooth service upgrade. Such as image 3 As shown, it includes the following steps:

[0031] Step 110: Register multiple new version service nodes with the first service group, and register the first service group with the service discovery application program.

[0032] The advantage of registering by group in this step is that when the version is updated, all operations are performed by a group instead of one machine or one machine, because the service discovery list (which is a service discovery application The list in ) every change will cause the proxy service to reload the configuration, which can reduce the number of times the proxy service reloads the configuration as much as possible.

[0033] Step 120: From the service discovery application program, the second service group including multiple old version service nodes to be offline is simulated offline, and all new request transactions are connected to the above multiple ...

Embodiment 2

[0041] This embodiment provides a device for smooth service upgrade, which includes: a service group management module, configured to register a plurality of new version service nodes into a first service group, and register the first service group into a service discovery application; The simulated offline management module is used to perform simulated offline of the second service group including multiple old version service nodes to be offline from the service discovery application program, and connect all new request transactions to multiple new version service nodes , so that multiple old version service nodes stop receiving new request transactions, and only process pending request transactions received before the simulated offline; the monitoring service module is used for when the old version service nodes in the second service group will After the transaction processing of the request is completed, stop the service of the old service node.

[0042] Furthermore, the se...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a smooth service upgrade method and a smooth service upgrade device. The method comprises the steps of registering a plurality of new service nodes into a first service set, and registering the first service set into a service finding application program; executing simulative offline on a second service set including a plurality of old service nodes to be off the line from the service finding application program, connecting all new request transactions to the plurality of new service nodes, thus allowing the plurality of old service node to stop receiving the new request transaction and only process the request transactions to be processed received before simulative offline; and stopping the service of the old service nodes after the request transactions to be processed are completely processed by the old service nodes in the second service set. According to the method provided by the invention, the situation that no uncompleted request transaction exists during an upgrade process can be ensured, service jitter is avoided as much as possible, the situation that the service jitters frequently due to frequency change of the plurality of nodes during the service upgrade process is relieved, and smooth upgrade is achieved.

Description

technical field [0001] The invention relates to the technical field of service upgrading, in particular to a method and device for smooth service upgrading. Background technique [0002] The service discovery (Service Discovery) component records the information of all services in a large-scale distributed system, and people or other services can find these services accordingly. DNS is a simple example. Of course, the service discovery component of a complex system should provide more functions, such as service metadata storage, health monitoring, multiple queries and real-time updates, etc. Service discovery provides a coordination mechanism to facilitate the publishing and searching of services. The main benefit of service discovery is zero configuration: instead of using hard-coded network addresses, services can be used only by their name. [0003] The industry offers many service discovery solutions: [0004] People have been using DNS for a long time, and DNS is pr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/51
Inventor 郝忠秀任文越
Owner MICRO DREAM TECHTRONIC NETWORK TECH CHINACO
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products