Business publishing method, device, equipment and storage medium

By obtaining and parsing business orchestration information, generating and sending publishing tasks, the problem of low business publishing efficiency in the existing technology is solved, and the unified management of virtual machines and container platforms is realized, and the release efficiency and accuracy are improved, and adapted to enterprise-level applications. complex deployment requirements.

CN113986258BActive Publication Date: 2024-12-20CCB FINTECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111365968.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2024-12-20
Estimated Expiration
2041-11-17

AI Technical Summary

Technical Problem

In the prior art, business release efficiency is low, and requires manual configuration of publishing files and data, which is cumbersome to operate, and it is difficult to support the differentiated task release of virtual machines and container platforms at the same time.

Method used

By obtaining business orchestration information, analyzing and generating publishing tasks, and sending tasks to the corresponding deployment equipment based on the deployment unit type and platform information, realizing unified management and publishing of virtual machines and container platforms.

Benefits of technology

It improves the generation efficiency of release tasks and the determination efficiency of deployment equipment, improves the efficiency and accuracy of business releases, and supports enterprise-level applications' complex deployment architecture and flexible change requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986258B_ABST
    Figure CN113986258B_ABST
Patent Text Reader

Abstract

The present disclosure provides a service publishing method, which can be applied to the fields of computer technology and cloud computing technology. The service publishing method includes: in response to a publishing request of a target service, obtaining service orchestration information corresponding to the target service, wherein the service orchestration information includes multiple publishing units and a first orchestration sequence of each publishing unit, and the publishing unit includes service execution data and deployment information; parsing the service orchestration information, generating a publishing task corresponding to each publishing unit according to the service execution data and deployment information; sending each publishing task to the deployment device corresponding to each publishing unit in sequence according to the deployment unit type, platform information and second orchestration sequence corresponding to each publishing task, and outputting the publishing result. The present disclosure also provides a service publishing device, equipment, storage medium and program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of computer technology and cloud computing technology, and more specifically to a service publishing method, device, equipment, medium and program product. Background Art

[0002] With the rapid development of enterprise business and the frequent changes in IT technology, the frequency of business releases is also increasing. The current main application release solutions include virtual machine release and container release. In related technologies, both of the above release methods require manual configuration of release files, data, etc., and then send the release files, data, etc. to the virtual machine or container platform in sequence for release.

[0003] In the process of realizing the inventive concept of the present disclosure, the inventors discovered that the following problems exist in the related art: the manual method of publishing services leads to low efficiency in publishing services. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a service publishing method, apparatus, device, medium and program product.

[0005] According to a first aspect of the present disclosure, a service publishing method is provided, comprising:

[0006] In response to a publishing request of a target business, business orchestration information corresponding to the target business is obtained, wherein the business orchestration information includes a plurality of publishing units and a first orchestration order of each of the publishing units, the publishing units include business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each of the deployment units includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform;

[0007] Parsing the business arrangement information, generating a publishing task corresponding to each of the publishing units according to the business execution data and the deployment information, wherein the second arrangement sequence of each of the publishing tasks is the same as the first arrangement sequence of each of the publishing units;

[0008] According to the deployment unit type corresponding to each of the release tasks, the platform information and the second arrangement sequence, each of the release tasks is sequentially sent to the deployment device corresponding to each of the release units, and a release result is output.

[0009] According to an embodiment of the present disclosure, the service publishing method further includes:

[0010] Obtaining a publishing unit creation request, wherein the publishing unit creation request includes the business execution data and the deployment information corresponding to each of the publishing units;

[0011] In response to the publishing unit creation request, generating a plurality of the publishing units according to each of the business execution data and the deployment information;

[0012] The service arrangement information is generated according to each of the publishing units.

[0013] According to an embodiment of the present disclosure, generating the service orchestration information according to each of the publishing units includes:

[0014] Displaying a service arrangement page, wherein the service arrangement information includes a publishing unit identifier corresponding to each of the publishing units;

[0015] Obtaining a sequence arrangement operation corresponding to each of the publishing unit identifiers, and generating the first arrangement sequence corresponding to each of the publishing units;

[0016] The service arrangement information is generated according to each of the publishing units and the first arrangement sequence corresponding to each of the publishing units.

[0017] According to an embodiment of the present disclosure, the step of sending each of the publishing tasks to the deployment device corresponding to each of the publishing units in sequence according to the deployment unit type corresponding to each of the publishing tasks, the platform information and the second arrangement sequence includes:

[0018] Determine the deployment unit corresponding to the current release unit according to the deployment unit type corresponding to the current release task and the platform information;

[0019] According to a preset processing method corresponding to the platform information, the current publishing task is sent to the deployment device corresponding to the deployment unit.

[0020] According to an embodiment of the present disclosure, according to a preset processing method corresponding to the platform information, sending the current publishing task to the deployment device corresponding to the deployment unit includes:

[0021] When the platform information indicates that the publishing platform of the publishing task is a virtual machine platform, the publishing task is sent to the execution agent plug-in of the deployment device so that the execution agent plug-in of the deployment device executes the publishing task.

[0022] According to an embodiment of the present disclosure, the step of sending the current publishing task to the deployment device corresponding to the deployment unit according to the preset processing method corresponding to the platform information further includes:

[0023] In the case where the platform information indicates that the publishing platform of the publishing task is a container platform, the data transmission interface in the deployment device is called to send the publishing task to the deployment device through the data transmission interface.

[0024] According to an embodiment of the present disclosure, the service publishing method further includes:

[0025] Acquire feedback information generated by each of the deployment devices, wherein the feedback information includes an execution log of the release task;

[0026] A publishing log corresponding to the target business is generated according to each of the execution logs and the publishing result, so as to perform information query according to the publishing log.

[0027] A second aspect of the present disclosure provides a service publishing device, including:

[0028] A first response module, configured to respond to a publishing request of a target business and obtain business orchestration information corresponding to the target business, wherein the business orchestration information includes a plurality of publishing units and a first orchestration order of each of the publishing units, the publishing units include business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each of the deployment units includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform;

[0029] A parsing module, used to parse the business arrangement information, and generate a publishing task corresponding to each of the publishing units according to the business execution data and the deployment information, wherein the second arrangement sequence of each of the publishing tasks is the same as the first arrangement sequence of each of the publishing units;

[0030] The sending module is used to send each of the above-mentioned publishing tasks to the deployment device corresponding to each of the above-mentioned publishing units in sequence according to the above-mentioned deployment unit type corresponding to each of the above-mentioned publishing tasks, the above-mentioned platform information and the above-mentioned second arrangement order, and output the publishing result.

[0031] The third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned service publishing method.

[0032] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned service publishing method.

[0033] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned service publishing method when executed by a processor.

[0034] According to an embodiment of the present disclosure, a publishing task corresponding to each publishing unit is generated according to the business orchestration information including multiple publishing units and the first orchestration order of each publishing unit, and the publishing task is sent to the corresponding deployment device for execution according to the platform information and the type of the deployment unit of the deployment unit in the business unit, and the publishing result is output. Since the publishing task and the deployment device are determined according to the business orchestration information composed of the publishing unit and the first orchestration order of each publishing unit, the publishing unit can simultaneously support the differentiated task publishing between the virtual machine platform and the container platform, so that the generation efficiency of the publishing task and the determination efficiency of the deployment device can be improved, thereby improving the efficiency and accuracy of the business publishing. At the same time, by uniformly managing the publishing units for virtual machine publishing and container publishing, the virtual machine and container publishing are simultaneously realized in a single published business orchestration. It can not only adapt to the publishing scenarios of simple virtual machines or containers, but also expand to support differentiated publishing scenarios, thereby supporting the complex deployment architecture and flexible change requirements of enterprise-level applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0036] Figure 1 The application scenario diagram of the service publishing method according to the embodiment of the present disclosure is schematically shown.

[0037] Figure 2 The flowchart of the service publishing method according to the embodiment of the present disclosure is schematically shown.

[0038] Figure 3 A schematic diagram of a service publishing method according to an embodiment of the present disclosure is schematically shown.

[0039] Figure 4 The following schematically shows a flow chart of a service publishing method according to another embodiment of the present disclosure.

[0040] Figure 5 The structural block diagram of the service publishing device according to the embodiment of the present disclosure is schematically shown.

[0041] Figure 6 A block diagram of an electronic device suitable for implementing a service publishing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0042] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0043] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0044] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0045] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0046] With the rapid development of enterprise business and the frequent changes in IT technology, the deployment architecture of enterprise-level applications has become more complex, the system scale has expanded, and the trend of frequent release changes has become more obvious. Relying on manual release of enterprise-level applications is not only time-consuming and labor-intensive, but also inefficient and has great operational risks.

[0047] The main application release solutions currently include virtual machine release and container release. Currently, many application systems use both virtual machine and container technologies to deploy and release applications. For example, frequently changing modules are released using containers, and modules with higher security requirements are released using virtual machines. However, in related technologies, the above two release methods need to be configured separately, which is cumbersome.

[0048] An embodiment of the present disclosure provides a service publishing method, comprising: in response to a publishing request of a target service, obtaining service orchestration information corresponding to the target service, wherein the service orchestration information comprises a plurality of publishing units and a first orchestration sequence of each publishing unit, the publishing unit comprises service execution data and deployment information, the deployment information comprises at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each deployment unit comprises at least one deployment device, and the publishing platform comprises a virtual machine platform and a container platform; parsing the service orchestration information, generating a publishing task corresponding to each publishing unit according to the service execution data and the deployment information, wherein the second orchestration sequence of each publishing task is the same as the first orchestration sequence of each publishing unit; sending each publishing task to the deployment device corresponding to each publishing unit in sequence according to the deployment unit type, platform information and second orchestration sequence corresponding to each publishing task, and outputting a publishing result.

[0049] Figure 1 The application scenario diagram of the service publishing method according to the embodiment of the present disclosure is schematically shown.

[0050] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a network, a terminal device and a server. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0051] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0052] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0053] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0054] It should be noted that the service publishing method provided in the embodiment of the present disclosure can generally be executed by the server 105 or a display device that establishes communication with the server. Accordingly, the service publishing device provided in the embodiment of the present disclosure can generally be set in the server 105. The service publishing method provided in the embodiment of the present disclosure can also be executed by a server or a server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the service publishing device provided in the embodiment of the present disclosure can also be set in a server or a server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0055] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0056] The following will be based on Figure 1 The scene described by Figure 2 to Figure 4 The service publishing method of the disclosed embodiment is described in detail.

[0057] Figure 2 The flowchart of the service publishing method according to the embodiment of the present disclosure is schematically shown.

[0058] like Figure 2 As shown, the business publishing method of this embodiment includes operations S201 to S203, and the transaction processing method can be executed by a server or a terminal device.

[0059] In operation S201, in response to a publishing request of a target business, business orchestration information corresponding to the target business is obtained, wherein the business orchestration information includes multiple publishing units and a first orchestration order of each publishing unit, the publishing unit includes business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each deployment unit includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform.

[0060] According to an embodiment of the present disclosure, the target business may include, for example, business application publishing, database table changes, middleware changes, etc. The first arrangement order of the publishing unit may include the sequence identification of each publishing unit or the dependency relationship between each publishing unit. The deployment device corresponds to the publishing platform, and the deployment device may include, for example, a virtual machine and a container, and the container may include, for example, a Linux container, etc. The business execution data may include, for example, script data corresponding to the target business, etc. The deployment unit type may include, for example, a web server (presentation layer) type, an AP server (application layer) type, and a DB server (data layer) type.

[0061] In operation S202, the business orchestration information is parsed, and a publishing task corresponding to each publishing unit is generated according to the business execution data and the deployment information, wherein the second orchestration sequence of each publishing task is the same as the first orchestration sequence of each publishing unit.

[0062] According to an embodiment of the present disclosure, the second arrangement order may include, for example, the execution order of each release task. Each release task may correspond to a service number, for example, so as to facilitate querying the release task according to the service number.

[0063] In operation S203, according to the deployment unit type, platform information and the second arrangement order corresponding to each publishing task, each publishing task is sequentially sent to the deployment device corresponding to each publishing unit, and a publishing result is output.

[0064] According to an embodiment of the present disclosure, when the publishing result indicates that all publishing tasks have been completed, it indicates that the target service has been released.

[0065] According to the embodiments of the present disclosure, the publishing unit can simultaneously support differentiated task publishing between virtual machine platforms and container platforms, and support docking with virtual machine platforms, container platforms or other platforms based on virtualization technology through the deployment unit, so as to perform different publishing operations according to different scenarios. By uniformly managing the publishing unit for virtual machine publishing and container publishing, virtual machine and container publishing can be achieved simultaneously in a single published business orchestration. It can adapt to the publishing scenarios of simple virtual machines or containers, and can also expand to support differentiated publishing scenarios, thereby supporting the complex deployment architecture and flexible change requirements of enterprise-level applications.

[0066] According to an embodiment of the present disclosure, a publishing task corresponding to each publishing unit is generated according to the business arrangement information including multiple publishing units and the first arrangement order of each publishing unit, and according to the platform information and the type of the deployment unit in the business unit, the publishing task is sent to the corresponding deployment device for execution, and the publishing result is output. Since the publishing task and the deployment device are determined according to the business arrangement information, the generation efficiency of the publishing task and the determination efficiency of the deployment device can be improved, thereby improving the efficiency and accuracy of business publishing.

[0067] According to an embodiment of the present disclosure, the service publishing method further includes:

[0068] A publishing unit creation request is obtained, wherein the publishing unit creation request includes business execution data and deployment information corresponding to each publishing unit. In response to the publishing unit creation request, multiple publishing units are generated according to each business execution data and deployment information. Business orchestration information is generated according to each publishing unit.

[0069] According to the embodiments disclosed in this announcement, the publishing unit and the service arrangement information can be generated by pre-configuration by the user, for example. In the case where the service publishing method is executed by a server, the user can perform configuration operations on a terminal device that establishes communication with the server, and after the publishing unit or service arrangement information is configured, the configured publishing unit or service arrangement information is sent to the server through the terminal device. The terminal device can include, for example, a computer, a mobile phone, etc.

[0070] According to the embodiment disclosed in this announcement, generating service arrangement information according to each publishing unit includes:

[0071] Display a business arrangement page, wherein the business arrangement information includes a publishing unit identifier corresponding to each publishing unit. Obtain a sequence arrangement operation corresponding to each publishing unit identifier, and generate a first arrangement sequence corresponding to each publishing unit. Generate business arrangement information according to each publishing unit and the first arrangement sequence corresponding to each publishing unit.

[0072] According to an embodiment of the present disclosure, the service arrangement page may be displayed by a terminal device, and the sequence arrangement operation may be acquired by the terminal device. The issuing unit identifier may include a symbol identifier or a picture identifier.

[0073] According to the embodiments of the present disclosure, the dependency relationship between publishing units can be intuitively displayed through a visual view, which is convenient for developers to perform business orchestration and improves business orchestration efficiency.

[0074] According to an embodiment of the present disclosure, according to the deployment unit type, platform information and the second arrangement order corresponding to each publishing task, sending each publishing task in sequence to the deployment device corresponding to each publishing unit includes:

[0075] According to the deployment unit type and platform information corresponding to the current release task, the deployment unit corresponding to the current release unit is determined. According to the preset processing method corresponding to the platform information, the current release task is sent to the deployment device corresponding to the deployment unit.

[0076] According to an embodiment of the present disclosure, since the platform information includes a virtual machine platform and a container platform, the publishing task sending method for each platform is different, and the publishing task is sent to the deployment device corresponding to each platform according to the method corresponding to each platform.

[0077] According to an embodiment of the present disclosure, according to a preset processing method corresponding to the platform information, sending the current publishing task to a deployment device corresponding to the deployment unit includes:

[0078] When the platform information indicates that the publishing platform of the publishing task is a virtual machine platform, the publishing task is sent to the execution agent plug-in of the deployment device so that the execution agent plug-in of the deployment device executes the publishing task.

[0079] According to an embodiment of the present disclosure, for a virtual machine, for example, an execution task may be sent to an execution agent plug-in on the virtual machine to execute the task. The execution agent plug-in may, for example, be pre-configured on the virtual machine.

[0080] According to an embodiment of the present disclosure, according to a preset processing method corresponding to the platform information, sending the current publishing task to a deployment device corresponding to the deployment unit also includes:

[0081] When the platform information indicates that the publishing platform of the publishing task is a container platform, a data transmission interface in the deployment device is called to send the publishing task to the deployment device through the data transmission interface.

[0082] According to an embodiment of the present disclosure, for a container platform, for example, a data transmission interface of the container platform may be directly called to send a publishing task, and the data transmission interface may include a public interface, etc.

[0083] According to an embodiment of the present disclosure, the service publishing method further includes:

[0084] Acquire feedback information generated by each deployment device, wherein the feedback information includes an execution log of the release task. Generate a release log corresponding to the target business according to each execution log and the release result, so as to perform information query according to the release log.

[0085] According to an embodiment of the present disclosure, in order to record the execution details of each publishing unit in the business orchestration information, for example, multiple levels of execution instance information can be created, including the entire business orchestration information, each publishing unit, each deployment unit, each operation in the publishing unit, etc. After the virtual machine or container platform completes the task, it generates feedback information (success or failure, etc.), generates an execution log based on the feedback information, and generates a publishing log based on the execution log and the publishing result.

[0086] Figure 3 A schematic diagram of a service publishing method according to an embodiment of the present disclosure is schematically shown.

[0087] like Figure 3 As shown, the service publishing method can be executed by a management console 301 and an automation module 302 , and the deployment devices in the service platform include a virtual machine 303 and a container platform 304 .

[0088] like Figure 3As shown, the functions of the management console 301 include creating releases, execution management, release details, and system management. Among them, creating releases mainly realizes the creation and configuration of release units, business orchestration of release scenarios, grayscale release of application instances, compliance checks of releases, etc. Execution management schedules and issues orchestration tasks according to the logical sequence of business orchestration and creates release instances. Release details track the execution of releases, display a panoramic view of release execution in a visual way, quickly locate release problems, and provide intervention functions. System management provides basic system management functions, including permission management, parameter management, etc.

[0089] The functions of the automation module 302 mainly include processing business orchestration functions and docking with the underlying platform function. Among them, processing business orchestration functions includes receiving orchestration tasks, parsing them into different types of automated operation tasks, calling the underlying platform services and returning the results to the management console 301. The docking with the underlying platform function requires docking with the underlying platform (virtual machine 303 and container platform 304), and calling different underlying platform services according to the type of operation task. If the automated operation task is a virtual machine publishing unit task, send an operation instruction to the virtual machine to execute the release; if the automated task is a container publishing unit task, call the container platform 304 service.

[0090] When publishing a service, the service orchestration information is configured through the creation and publishing function of the management console 301. The service orchestration information is then sent to the automation module 302 through the execution management function of the management console 301. The automation module 302 parses the service orchestration information into multiple automated publishing tasks through the service orchestration function. The publishing tasks are then sent to the virtual machine 303 or the container platform 304 through the docking underlying platform function.

[0091] During the task publishing process, the management console 301 can track the execution status of the publishing through the publishing details and display the panoramic view of the publishing execution in a visual manner.

[0092] Figure 4 The following schematically shows a flow chart of a service publishing method according to another embodiment of the present disclosure.

[0093] like Figure 4 As shown, the service publishing method includes operations S410 to S460, S441 and S442.

[0094] In operation S410, a publishing unit is created, wherein the publishing unit includes business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of the publishing platform, and each deployment unit includes at least one deployment device. In operation S420, the dependency relationship of each publishing unit is configured to generate business orchestration information. In operation S430, an automated publishing task corresponding to each publishing unit is generated according to the business orchestration information. In operation S440, it is determined whether the current publishing task is a virtual machine publishing task or a container platform publishing task. In operation S441, if the current task is a virtual machine publishing task, the current publishing task is sent to the virtual machine. In operation S442, if the current task is not a virtual machine publishing task, the current publishing task is sent to the container platform. In operation S450, feedback information generated by the virtual machine or the container platform is obtained to detect whether the publishing task is completed. In operation S460, if the detection result indicates that the publishing task is completed, the publishing record of the target business is updated.

[0095] Based on the above service publishing method, the present disclosure also provides a service publishing device. Figure 5 The device is described in detail.

[0096] Figure 5 The structural block diagram of the service publishing device according to the embodiment of the present disclosure is schematically shown.

[0097] like Figure 5 As shown, the service publishing device 500 of this embodiment includes a first responding module 501 , a parsing module 502 and a sending module 503 .

[0098] The first response module 501 is used to respond to the publishing request of the target business and obtain the business arrangement information corresponding to the target business, wherein the business arrangement information includes multiple publishing units and the first arrangement order of each publishing unit, the publishing unit includes business execution data and deployment information, the deployment information includes at least one deployment unit and the deployment unit type corresponding to the deployment unit and the platform information of the publishing platform, each deployment unit includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform. In one embodiment, the first response module 501 can be used to perform the operation S201 described above, which will not be repeated here.

[0099] The parsing module 502 is used to parse the business arrangement information and generate a publishing task corresponding to each publishing unit according to the business execution data and the deployment information, wherein the second arrangement sequence of each publishing task is the same as the first arrangement sequence of each publishing unit. In one embodiment, the parsing module 502 can be used to perform the operation S202 described above, which will not be repeated here.

[0100] The sending module 503 is used to send each publishing task to the deployment device corresponding to each publishing unit in sequence according to the deployment unit type, platform information and the second arrangement order corresponding to each publishing task, and output the publishing result. In one embodiment, the sending module 503 can be used to perform the operation S203 described above, which will not be repeated here.

[0101] According to an embodiment of the present disclosure, a publishing task corresponding to each publishing unit is generated according to the business arrangement information including multiple publishing units and the first arrangement order of each publishing unit, and according to the platform information and the type of the deployment unit in the business unit, the publishing task is sent to the corresponding deployment device for execution, and the publishing result is output. Since the publishing task and the deployment device are determined according to the business arrangement information, the generation efficiency of the publishing task and the determination efficiency of the deployment device can be improved, thereby improving the efficiency and accuracy of business publishing.

[0102] According to an embodiment of the present disclosure, the service publishing device 500 further includes a first acquisition module, a second response module and a first generation module.

[0103] The first acquisition module is used to acquire a release unit creation request, wherein the release unit creation request includes business execution data and deployment information corresponding to each release unit.

[0104] The second response module is used to respond to the release unit creation request and generate multiple release units according to each business execution data and deployment information.

[0105] The first generating module is used to generate service arrangement information according to each publishing unit.

[0106] According to an embodiment of the present disclosure, the first generating module includes a display unit, an acquisition unit and a generating unit.

[0107] The display unit is used to display the service arrangement page, wherein the service arrangement information includes a publishing unit identifier corresponding to each publishing unit.

[0108] The acquisition unit is used to acquire the sequence arrangement operation corresponding to each publishing unit identifier and generate a first arrangement sequence corresponding to each publishing unit.

[0109] The generating unit is used to generate the service arrangement information according to each publishing unit and the first arrangement sequence corresponding to each publishing unit.

[0110] According to an embodiment of the present disclosure, the sending module 503 includes a determining unit and a sending unit.

[0111] The determination unit is used to determine the deployment unit corresponding to the current release unit according to the deployment unit type and platform information corresponding to the current release task.

[0112] The sending unit is used to send the current publishing task to the deployment device corresponding to the deployment unit according to the preset processing method corresponding to the platform information.

[0113] According to an embodiment of the present disclosure, the sending unit includes a first sending subunit.

[0114] The first sending subunit is used to send the publishing task to the execution agent plug-in of the deployment device when the platform information indicates that the publishing platform of the publishing task is a virtual machine platform, so that the execution agent plug-in of the deployment device executes the publishing task.

[0115] According to an embodiment of the present disclosure, the sending unit further includes a second sending subunit.

[0116] The second sending subunit is used to call the data transmission interface in the deployment device when the platform information indicates that the publishing platform of the publishing task is a container platform, so as to send the publishing task to the deployment device through the data transmission interface.

[0117] According to an embodiment of the present disclosure, the service publishing device 500 further includes a second acquisition module and a second generation module.

[0118] The second acquisition module is used to acquire feedback information generated by each deployment device, wherein the feedback information includes an execution log of the release task.

[0119] The second generating module is used to generate a publishing log corresponding to the target business according to each execution log and publishing result, so as to perform information query according to the publishing log.

[0120] According to an embodiment of the present disclosure, any multiple modules in the first response module 501, the parsing module 502 and the sending module 503 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first response module 501, the parsing module 502 and the sending module 503 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the first response module 501, the parsing module 502 and the sending module 503 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0121] Figure 6 A block diagram of an electronic device suitable for implementing a service publishing method according to an embodiment of the present disclosure is schematically shown.

[0122] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0123] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0124] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0125] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0126] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0127] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.

[0128] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0129] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0130] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0131] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0132] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0133] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0134] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A service publishing method, comprising: In response to a publishing request of a target business, obtaining business orchestration information corresponding to the target business, wherein the business orchestration information includes a plurality of publishing units and a first orchestration order of each of the publishing units, the publishing units include business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each of the deployment units includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform; Parsing the service orchestration information, and generating a publishing task corresponding to each of the publishing units according to the service execution data and the deployment information, wherein the second orchestration sequence of each of the publishing tasks is the same as the first orchestration sequence of each of the publishing units; According to the deployment unit type corresponding to each of the publishing tasks, the platform information and the second arrangement order, each of the publishing tasks is sequentially sent to the deployment device corresponding to each of the publishing units, and a publishing result is output; Obtaining a release unit creation request, wherein the release unit creation request includes the business execution data and the deployment information corresponding to each of the release units; In response to the publishing unit creation request, generating a plurality of the publishing units according to each of the business execution data and the deployment information; Generating the service arrangement information according to each of the publishing units; The generating the service arrangement information according to each of the publishing units includes: Displaying a service arrangement page, wherein the service arrangement information includes a publishing unit identifier corresponding to each publishing unit; Acquire a sequence arrangement operation corresponding to each of the publishing unit identifiers, and generate the first arrangement sequence corresponding to each of the publishing units; The service orchestration information is generated according to each of the publishing units and the first orchestration sequence corresponding to each of the publishing units.

2. The method according to claim 1, wherein: The sending each of the publishing tasks to the deployment device corresponding to each of the publishing units in sequence according to the deployment unit type corresponding to each of the publishing tasks, the platform information and the second arrangement order comprises: Determine the deployment unit corresponding to the current publishing unit according to the deployment unit type corresponding to the current publishing task and the platform information; According to a preset processing method corresponding to the platform information, the current publishing task is sent to the deployment device corresponding to the deployment unit.

3. The method according to claim 2, wherein: According to a preset processing method corresponding to the platform information, sending the current publishing task to the deployment device corresponding to the deployment unit includes: When the platform information indicates that the publishing platform of the publishing task is a virtual machine platform, the publishing task is sent to the execution agent plug-in of the deployment device so that the execution agent plug-in of the deployment device executes the publishing task.

4. The method according to claim 2, wherein: The sending the current publishing task to the deployment device corresponding to the deployment unit according to the preset processing method corresponding to the platform information also includes: When the platform information indicates that the publishing platform of the publishing task is a container platform, a data transmission interface in the deployment device is called to send the publishing task to the deployment device through the data transmission interface.

5. The method according to claim 1, further comprising: Acquire feedback information generated by each of the deployment devices, wherein the feedback information includes an execution log of the release task; A publishing log corresponding to the target business is generated according to each of the execution logs and the publishing result, so as to perform information query according to the publishing log.

6. A service publishing device, comprising: A first response module, configured to respond to a publishing request of a target business and obtain business orchestration information corresponding to the target business, wherein the business orchestration information includes a plurality of publishing units and a first orchestration order of each of the publishing units, the publishing units include business execution data and deployment information, the deployment information includes at least one deployment unit and a deployment unit type corresponding to the deployment unit and platform information of a publishing platform, each of the deployment units includes at least one deployment device, and the publishing platform includes a virtual machine platform and a container platform; A parsing module, configured to parse the service orchestration information, and generate a publishing task corresponding to each of the publishing units according to the service execution data and the deployment information, wherein the second orchestration sequence of each of the publishing tasks is the same as the first orchestration sequence of each of the publishing units; A sending module, configured to send each of the publishing tasks to the deployment device corresponding to each of the publishing units in sequence according to the deployment unit type corresponding to each of the publishing tasks, the platform information and the second orchestration order, and output a publishing result; A first acquisition module, configured to acquire a release unit creation request, wherein the release unit creation request includes the business execution data and the deployment information corresponding to each release unit; A second response module, configured to generate a plurality of the publishing units in response to the publishing unit creation request and according to each of the business execution data and the deployment information; A first generating module, configured to generate the service arrangement information according to each of the publishing units; Wherein, the first generation module includes: A display unit, used to display a service arrangement page, wherein the service arrangement information includes a publishing unit identifier corresponding to each of the publishing units; An acquiring unit, configured to acquire a sequence arrangement operation corresponding to each of the publishing unit identifiers, and generate the first arrangement sequence corresponding to each of the publishing units; A generating unit is used to generate the service arrangement information according to each of the publishing units and the first arrangement sequence corresponding to each of the publishing units.

7. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 5.

9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Automatic deployment method, device, equipment and storage medium

    CN111913721A

  • Resource arrangement method and device, equipment and storage medium

    CN112463363A

  • Request processing method and device, electronic equipment, medium and program product

    CN113190625A

  • Visual task arrangement method and device and storage medium

    CN113448547A

  • Automated data structure-driven orchestration of complex server provisioning tasks

    US20180024851A1