Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and a terminal for publishing services in batches

A batch and terminal technology, applied in the field of operation and maintenance, can solve problems such as script execution failure, affecting service smoothness, smooth release, etc., and achieve the effect of smooth release

Active Publication Date: 2019-05-21
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the release process, remove the "canary" service from the original load list, upgrade it, and then test the application, add the application that passed the test to the load list, and upgrade the remaining services; but in the canary There are still some flaws in the release plan. For example, when multiple services that are dependent on each other need to be released, that is, when publishing services in batches, if the services are not tested and released according to the dependencies between services, script execution will fail. Affect the smooth and smooth release of services

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
  • A method and a terminal for publishing services in batches
  • A method and a terminal for publishing services in batches
  • A method and a terminal for publishing services in batches

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0053] The official domain name points to all instances of the service, and the grayscale domain name points to the first instance of the service;

[0054] Also include before the step S2:

[0055] Store test scripts corresponding to each service;

[0056] Publishing services according to the topology sequence in step S3 is specifically:

[0057] S311. Acquire the services to be released according to the order of the topology sequence, and remove the first instance of the service to be released from the pointing of the official domain name;

no. 1 example ;

[0059] S313. After judging that the first instance is started, automatically execute the test script corresponding to the service to be released;

[0060] Judging whether the first instance of the service to be published is successfully released according to the execution of the test script, if not, then initiate a notification;

[0061] If so, judge whether there are unpublished services in the topology sequence, if so, return to S31, if not, add back the first instance of all successfully released services to the pointing of the official domain name, and add the first instance of all successfully released services The second instance is removed from the official domain name, and the code corresponding to the code version in the first instance of each successfully published service is constructed to the second instance of the service.

[0062] From the above description, it can be seen that the services to be released are automatically tested and released according to the ord...

Embodiment 1

[0099] Please refer to figure 1 , image 3 and Figure 4 , a method for publishing services in batches, this embodiment is described from the perspective of an operation and maintenance system, including steps:

[0100] S1. Collect the data and dependencies of requests and calls between services, and generate a service dependency graph;

[0101] Among them, the running status of the service is monitored through the basic operation and maintenance monitoring tool of the collection module, and the data requested and called between services is collected;

[0102] Store the code of the service in the code warehouse uniformly for easy management;

[0103] The service dependency graph is a directed acyclic graph, the vertices in the service dependency graph are services, and the outgoing edges of the vertices are the dependencies between the service and other services, such as image 3 As shown, service A invokes the interface of service G, that is, service A depends on service ...

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 invention discloses a method and a terminal for publishing services in batches. The method comprises steps of by collecting data requested to be called among services and a dependency relationship, generating a service dependency graph, generating a release dependency directional diagram according to the received to-be-released service list and the service dependency relationship diagram, calculating a topological sequence of the release dependent directional diagram; According to the topological sequence release service, the problem that scripts fail when a plurality of services having mutual dependency relationships are tested and released can be avoided, the consistency of interface versions for calling the dependency services when the services are subjected to automatic testing isensured, and smooth release of batch services is realized.

Description

technical field [0001] The present invention relates to the technical field of operation and maintenance, in particular to a method and terminal for publishing services in batches. Background technique [0002] There are many technologies for publishing, such as: [0003] Solution 1, blue-green release [0004] Blue-green release is to release a new version of the service and then test it without stopping the old version of the service. After confirming that there is no problem with the new version of the service, the traffic will be switched to the new version, and then the old version instance will be deleted. This solution has high requirements on the backend of the database. Unfinished business and new business need to be properly handled when the environment is switched. Since two sets of environments need to be started at the same time, basic setting support is required, and the cost is relatively high. [0005] Solution 2, rolling release [0006] Rolling release g...

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): H04L12/26H04L29/08G06F11/36
Inventor 刘德建吴昊郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products