Orchestration processing method and device

By parsing the orchestration file to generate a relationship diagram and performing orchestration processing, it solves the problems of low orchestration efficiency and high professional ability requirements in the existing technology, realizes intelligent application instance deployment and service registration, and improves processing efficiency and accuracy.

CN118796254APending Publication Date: 2024-10-18CHINA MOBILE GROUP ZHEJIANG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311206277.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, the orchestration and scheduling based on manual methods are inefficient, especially in complex scenarios, which require high professional capabilities of users, and are difficult to meet the cloud deployment needs of a large number of edge applications.

Method used

By obtaining the orchestration file and application code, parsing the file to generate the orchestration relationship diagram, performing orchestration processing according to the diagram, creating application instances, and registering services when the available resources of the node meet the operating conditions, realizing intelligent orchestration processing.

Benefits of technology

It improves the efficiency and accuracy of orchestration processing, reduces manual decision-making errors, and adapts to application deployment needs in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796254A_ABST
    Figure CN118796254A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an arrangement processing method and device, and the method comprises the steps: obtaining the application arrangement data containing an arrangement file and an application code, analyzing the arrangement file, obtaining arrangement configuration information, generating an arrangement relation graph based on the arrangement configuration information and an arrangement relation template, and carrying out the arrangement processing according to the arrangement relation graph, the method comprises the steps of obtaining an arrangement node, creating an application instance based on the arrangement node and the application code, and performing service registration on the application instance under the condition that node available resources of the arrangement node meet operation conditions of the application instance, so as to provide an intelligent arrangement processing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of cloud computing technology, and in particular to an orchestration processing method and device. Background Art

[0002] With the rapid development of edge computing technology, a large number of edge applications need to be deployed to the cloud and provided to users from all walks of life for application;

[0003] At present, manual orchestration and scheduling are mainly used, relying on command line code to write and issue instructions. This is inefficient and technically difficult in complex scenarios, and requires higher professional capabilities from users. Therefore, there is an urgent need for an intelligent orchestration method to perform instance orchestration. Summary of the invention

[0004] An embodiment of the present specification aims to provide an orchestration processing method and apparatus to solve the problem of how to intelligently perform instance orchestration.

[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:

[0006] In a first aspect, an embodiment of the present specification provides an arrangement processing method, including:

[0007] Obtain application orchestration data including orchestration files and application codes;

[0008] Parsing the orchestration file to obtain orchestration configuration information, and generating an orchestration relationship diagram based on the orchestration configuration information and an orchestration relationship template;

[0009] Performing orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and creating an application instance based on the orchestration node and the application code;

[0010] When the node available resources of the orchestration node meet the running conditions of the application instance, the application instance is registered for service.

[0011] In a second aspect, another embodiment of the present specification provides an arrangement processing device, including:

[0012] A data acquisition module is configured to acquire application orchestration data including an orchestration file and application code;

[0013] A parsing module is configured to parse the orchestration file to obtain orchestration configuration information, and generate an orchestration relationship graph based on the orchestration configuration information and an orchestration relationship template;

[0014] An orchestration processing module is configured to perform orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and create an application instance based on the orchestration node and the application code;

[0015] The service registration module is configured to perform service registration for the application instance when the node available resources of the orchestration node meet the running conditions of the application instance.

[0016] In a third aspect, another embodiment of the present specification provides an orchestration processing device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the steps of the orchestration processing method as described in the first aspect above.

[0017] In a fourth aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the arrangement processing method described in the first aspect above are implemented.

[0018] The orchestration processing method provided in this embodiment obtains application orchestration data including orchestration files and application codes, parses the orchestration files to obtain orchestration configuration information, generates an orchestration relationship graph based on the orchestration configuration information and the orchestration relationship template, performs orchestration processing according to the orchestration relationship graph to obtain orchestration nodes, creates application instances based on the orchestration nodes and the application code, and registers the application instances for services when the node available resources of the orchestration nodes meet the operating conditions of the application instances. In this way, an intelligent orchestration processing method is provided, so that applications can be orchestrated through the intelligently generated orchestration relationship graph, effectively avoiding the problem of low decision-making accuracy caused by manual orchestration, and improving the processing efficiency of orchestration processing of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in one or more embodiments of the present specification, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0020] Figure 1 A processing flow chart of an arrangement processing method provided in one embodiment of this specification;

[0021] Figure 2 A schematic diagram of an arrangement configuration template provided for one embodiment of this specification;

[0022] Figure 3 A schematic diagram of an arrangement relationship diagram provided for one embodiment of this specification;

[0023] Figure 4 A schematic diagram of a computing network orchestration engine provided for one embodiment of this specification;

[0024] Figure 5 A processing flow chart of an orchestration processing method for an application orchestration processing scenario at an edge node provided by an embodiment of this specification;

[0025] Figure 6 A processing flow chart of an arrangement processing method provided in one embodiment of this specification;

[0026] Figure 7 A schematic diagram of a processing process of an arrangement processing scenario provided by an embodiment of this specification;

[0027] Figure 8 A schematic diagram of an arrangement processing device provided in one embodiment of this specification;

[0028] Fig. 9 A schematic diagram of the structure of an arrangement processing device provided in one embodiment of this specification. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0030] This specification provides an embodiment of an arrangement processing method:

[0031] Reference Figure 1 The arrangement processing method provided in this embodiment specifically includes the following steps S102 to S108.

[0032] Step S102: Acquire application orchestration data including orchestration files and application codes.

[0033] In this embodiment, the application orchestration data refers to data used to represent the relevant content of the application orchestration; specifically, the application orchestration data includes an orchestration file and an application code, wherein the orchestration file includes the user's orchestration matching strategy; the application code refers to the original data of the application that needs to be orchestrated. In order to improve the efficiency and convenience of the user in defining the orchestration matching strategy, the orchestration configuration strategy can be entered by displaying the orchestration file template to the user.

[0034] It should be noted that the orchestration file template may include pre-defined configuration information, which describes the established computing network matching elements and related configuration information; the user can select according to the actual situation, for example, the configuration information of the port requirement, the configuration information of the storage requirement and the configuration information of the domain name requirement are configured in advance; the user can determine the configuration information by selecting the port, storage and / or domain name, and the user does not need to enter the relevant information; in addition, in addition to being able to select from the pre-defined configuration information, since the pre-defined information cannot inevitably take into account various scenarios and the pre-defined information cannot match all user requirements, the user can also submit the configuration information by customizing it in the orchestration file template; specifically, the user customizes the configuration information through metaprogramming and generates a customized code logic fragment as the customized configuration information; wherein the user-defined configuration information is defined by a language with metaprogramming capabilities, such as Groovy (an agile dynamic language for Java virtual machines), Ruby (object-oriented (object-oriented programming) scripting language) or Python (programming language), etc.

[0035] In specific implementation, when performing orchestration processing on an application, this embodiment needs to first obtain application orchestration data of the application, where the application orchestration data includes an orchestration file and an application code.

[0036] In order to ensure the validity of the application orchestration data and avoid directly performing application orchestration after obtaining the application orchestration data, but the application orchestration data is indeed incorrect or there are other problems that cause the orchestration to fail, resulting in a waste of orchestration resources and time, this embodiment provides an optional implementation method, after obtaining the application orchestration data including the orchestration file and the application code, the application orchestration data is verified, and the following step S104 is executed if the verification passes.

[0037] Specifically, it is necessary to verify the security and integrity of the obtained application orchestration data to determine whether the obtained application orchestration data has been tampered with or whether there are security issues. Through data verification, it is confirmed that the application orchestration data is safe, and then it is parsed to obtain the orchestration configuration information. Based on the orchestration configuration information and the orchestration relationship template, an orchestration relationship diagram is generated.

[0038] For example, a description file of the application code is obtained in advance, and the description file describes a version number of 2.1. The application code in the obtained application arrangement data is verified according to the version number to determine whether the version number of the application code is correct. If the version number of the application code is 2.0, the version number of the application code is different from the version number in the description file, and the verification fails, and the user is reminded to modify the application code and upload it again.

[0039] Step S104: parsing the orchestration file to obtain orchestration configuration information, and generating an orchestration relationship diagram based on the orchestration configuration information and an orchestration relationship template.

[0040] The orchestration configuration information in this embodiment is the relevant information required by the application during the orchestration process; the orchestration relationship template is a relationship template between various pre-configured orchestration information; in actual applications, different configurations need to be executed in a corresponding order during the implementation process, for example, only when resources are opened first can the network be opened, so the relationship between resources and networks is to open resources first and then open the network; the orchestration relationship template is used to constrain the relationship and execution order between such configurations; Figure 2 The schematic diagram of the orchestration configuration template is shown. During the specific execution process, since the orchestration relationship template only specifies the relationship and execution relationship between configurations, but the configuration to be executed in the specific application orchestration process is not certain, the orchestration file submitted by the user is parsed to obtain the orchestration configuration information, and based on the orchestration configuration information and the orchestration relationship template that constrains the configuration relationship, an orchestration relationship graph for orchestrating the application is generated; the orchestration relationship graph is a directed acyclic graph generated based on each orchestration configuration information and the orchestration relationship template, and the configuration information to be executed and the execution relationship between each configuration information are recorded in the orchestration relationship graph. Figure 3 The orchestration relationship diagram shown records that the computing network matching task includes computing power requirements and network resources. Among them, computing power resources include storage, and network resources include DNS (Domain Name System) and ports. Finally, the computing network strategy is implemented through these configuration information.

[0041] In specific implementation, after obtaining the application orchestration data, it is necessary to parse the orchestration files in the application orchestration data to obtain the orchestration configuration information, and generate an orchestration relationship diagram based on the obtained orchestration configuration information and a preset orchestration relationship template.

[0042] For example, the orchestration file in the application orchestration data is parsed to obtain the resource information to be activated and the network information to be activated. In the preset orchestration relationship template, the resources and the network are associated and bound, and there is an execution order between the resources and the network. The resources need to be activated first before the network can be activated. Therefore, based on the orchestration configuration information and the orchestration relationship template, an orchestration relationship diagram is generated, in which the resources are activated first and then the network is activated.

[0043] This embodiment provides an optional implementation method, in which the following operations are performed during the process of parsing the orchestration file and obtaining the orchestration configuration information:

[0044] Read the user configuration information submitted by the user based on the arrangement file template and the custom configuration information entered by the user in the arrangement file;

[0045] According to the template content of the arrangement file template and the user configuration information, the remaining configuration information is determined, and the default configuration information is screened out from the remaining configuration information.

[0046] Among them, the default configuration information is the configuration information required for the application during the computing network orchestration process. If the user configuration information submitted by the user based on the orchestration file template does not contain the required configuration information, the default configuration information filled in the orchestration file template needs to be used as the default configuration information.

[0047] In the process of parsing the orchestration file, it is necessary to read the user configuration information submitted by the user based on the orchestration file and the custom configuration information entered by the user in the orchestration file. According to the template content and user configuration information of the orchestration file template, when it is found that the user configuration information submitted by the user does not contain the required configuration information, it is necessary to read the default configuration information in the orchestration file template.

[0048] For example, the template content of the orchestration file template includes A, B, C, D, E, and F, where A is the required configuration information, and the user submits user configuration information C, D, F and custom configuration information W based on the orchestration file template. At this time, it is necessary to determine the remaining configuration information A, B, and E based on the template content of the orchestration file template and the user configuration information, and filter out the default configuration information A from A, B, and E. The final orchestration configuration information includes A, C, D, F, and W.

[0049] On the basis of obtaining the orchestration configuration information, in order to obtain the configuration information with an execution order, in this embodiment, an orchestration relationship graph is generated based on the orchestration configuration information and the orchestration relationship template; this embodiment provides an optional implementation method, in the process of generating the orchestration relationship graph based on the orchestration configuration information and the orchestration relationship template, the following operations are performed:

[0050] Writing the user configuration information and the default configuration information into the orchestration relationship template to obtain an initial orchestration relationship diagram;

[0051] Determining an execution location of the custom configuration information according to the location information of the custom configuration information;

[0052] Based on the execution position, writing the custom configuration information into the initial orchestration relationship graph to obtain an intermediate orchestration relationship graph;

[0053] Initialization processing is performed on the intermediate orchestration relationship graph to obtain the orchestration relationship graph.

[0054] The obtained user configuration information and default configuration information are written into the orchestration relationship template to obtain an initial orchestration relationship diagram, and then the execution position of the custom configuration information in the initial orchestration diagram is determined according to the location information of the custom configuration information, and the custom configuration information is written into the initial orchestration relationship diagram to obtain an intermediate orchestration relationship diagram, and finally the intermediate orchestration relationship diagram is initialized to obtain the orchestration relationship diagram.

[0055] This embodiment provides an optional implementation mode, in which the user configuration information and the default configuration information are written into the orchestration relationship template, and in the process of obtaining the initial orchestration relationship diagram, the following operations are performed:

[0056] Writing each user configuration identifier in the user configuration information and each default configuration identifier in the default configuration information into the orchestration relationship template to obtain a first orchestration relationship graph;

[0057] If the user configuration information includes execution information corresponding to each user configuration identifier, the execution information corresponding to each user configuration identifier is associated with each user configuration identifier; and, the execution information corresponding to each default configuration identifier is read, and the execution information corresponding to each default configuration identifier is associated with each default configuration identifier to obtain the initial arrangement relationship diagram;

[0058] If the user configuration information does not contain the execution information corresponding to each user configuration identifier, then read the execution information corresponding to each user configuration identifier and the execution information corresponding to each default configuration identifier; associate the execution information corresponding to each user configuration identifier to each user configuration identifier, and associate the execution information corresponding to each default configuration identifier to each default configuration identifier, to obtain an initial arrangement relationship diagram.

[0059] Specifically, first, each user configuration identifier in the user configuration information and each default configuration identifier in the default configuration information are written into an orchestration relationship template to obtain a first orchestration relationship diagram. Since the corresponding configuration execution is to be performed, it is also necessary to associate the corresponding execution information with each configuration identifier. For the user configuration identifier containing the corresponding execution information in the user configuration information, the corresponding execution information in the user configuration information is associated with the corresponding user configuration identifier in the first orchestration relationship diagram. For the user configuration information that does not contain the corresponding execution information in the user configuration information, the pre-stored execution information corresponding to the user configuration identifier and the execution information corresponding to each default configuration identifier are read, and the execution information corresponding to the read user configuration identifier is associated with the corresponding user configuration identifier in the first orchestration relationship diagram, and the execution information corresponding to each default configuration identifier is associated with each default configuration identifier in the first orchestration relationship diagram to obtain an initial orchestration relationship diagram.

[0060] On the basis of obtaining the initial orchestration relationship graph, in the case where the orchestration configuration information includes custom configuration information, determining the execution position of the custom configuration information according to the position information carried in the custom configuration information, and writing the custom configuration identifier of the custom configuration information into the initial orchestration relationship graph according to the execution position, and associating the execution information in the custom configuration information with the custom configuration identifier to obtain the intermediate orchestration relationship graph;

[0061] After obtaining the intermediate orchestration relationship diagram, since the configuration identifier in the orchestration relationship template may be greater than the sum of the user configuration identifier, the default configuration identifier and the custom configuration identifier, in order to ensure the validity and accuracy of the orchestration relationship diagram, the intermediate orchestration relationship diagram is initialized to obtain the orchestration relationship diagram.

[0062] This embodiment provides an optional implementation method, in which the intermediate arrangement file relationship graph is initialized and the following operations are performed in the process of obtaining the arrangement relationship graph:

[0063] Deleting the orchestration information with a configuration identifier of null in the intermediate orchestration relationship graph to obtain the orchestration relationship graph after deletion;

[0064] The execution relationship in the deleted orchestration relationship graph is updated to obtain the orchestration relationship graph.

[0065] In this embodiment, the arrangement information with a configuration identifier of empty in the intermediate arrangement relationship diagram refers to the arrangement information that is not selected by the user in the arrangement file template and does not belong to the default arrangement information. Such arrangement information is the arrangement information with a configuration identifier of empty.

[0066] When initializing the intermediate orchestration relationship graph, the orchestration information with the configuration mark as empty needs to be deleted to remove redundancy; since some orchestration information is deleted in the deleted orchestration relationship graph, there are gaps between the relationship logic, and it cannot become a complete orchestration relationship graph. Therefore, the execution relationship in the deleted orchestration relationship graph is updated so that the execution relationship in the orchestration relationship graph can be coherent and complete, and the final orchestration relationship graph.

[0067] Step S106: Perform orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and create an application instance based on the orchestration node and the application code.

[0068] In this step, the orchestration process is performed according to the orchestration relationship graph generated based on the orchestration configuration information and the orchestration relationship template to obtain the orchestration node for deploying the application, and then the application instance is created according to the application code at the orchestration node.

[0069] It should be noted that the application orchestration data may include the orchestration quantity, and the node quantity of the obtained orchestration node is equal to the orchestration quantity.

[0070] In specific implementation, after obtaining the orchestration node, the application code is deployed and an application instance is created. After the instantiation is successful, the VIM interface is called through the install deployment operation to finally complete the creation of the application instance. Optionally, the number of instances created is equal to the orchestration data contained in the application orchestration data.

[0071] In the specific execution process, after the application instance is created, in order to ensure the normal operation and startup of the application instance, resource detection is performed. In an optional implementation provided by this embodiment, after the application instance is created, the following operations are further performed:

[0072] Check whether the available resources of the node are greater than or equal to the running resources of the application instance on the orchestration node;

[0073] If yes, register the application instance as a service;

[0074] If not, allocate resources to the orchestration node.

[0075] Specifically, after creating an application instance, the node available resources of the orchestration node are automatically judged to determine whether the orchestration node can run the application instance. If so, the service of the application instance on the orchestration node is registered. If not, resources are allocated to the orchestration node to register the service of the application instance on the orchestration node when the node available resources of the orchestration node are greater than or equal to the running resources of the application instance on the orchestration node.

[0076] Step S108: When the node available resources of the orchestration node meet the running conditions of the application instance, register the application instance for service.

[0077] In the above steps, an application instance is created. In this step, when the node available resources of the orchestration node meet the running conditions of the application instance, that is, when the node available resources of the orchestration node are greater than or equal to the running resources of the application instance on the orchestration node, the application instance is registered as a service.

[0078] This embodiment provides an optional implementation mode. In the process of registering a service for an application instance, the execution process further includes:

[0079] Associate the domain name contained in the orchestration file with the application instance and configure the traffic rules of the application instance;

[0080] Register the instance service for the application instance that configures the traffic rules.

[0081] Specifically, when the node available resources of the orchestration node are greater than or equal to the running resources of the application instance on the orchestration node, it is determined that the application instance is started successfully, and the service registration is performed for the application instance; in the process of performing the service registration, the domain name contained in the orchestration file is first associated with the application instance, the DNS rule is activated, and then the traffic rule of the application instance is configured, and finally the instance service registration is performed for the application instance configured with the traffic rule, so as to perform service processing based on the application instance.

[0082] Generally, for an application instance after the instance service registration is performed, after the corresponding service traffic is obtained, service processing can be performed on the service traffic based on the application instance; specifically, when the service corresponds to multiple application instances, in an optional implementation manner provided by this embodiment, service processing is performed in the following manner:

[0083] Obtaining the service traffic corresponding to the application instance;

[0084] The service traffic is distributed to each application instance in the application instance according to the service traffic and the number of instances of the application instance.

[0085] Specifically, the service traffic may be evenly distributed to each application instance, and the service traffic may be distributed to the corresponding application instance according to the traffic type or other relevant parameters of the service traffic.

[0086] During the specific execution process, there is a situation where the instance load of some application instances among multiple application instances is too large, while the instance load of some application instances is smaller. In this case, in order to improve the processing efficiency of service traffic, an optional implementation manner provided by this embodiment is that if it is detected that the instance load of a first application instance in the application instance is greater than a preset threshold, the service traffic of the first application instance is read; and the read service traffic is distributed to the application instances in the application instance whose instance load is less than the preset threshold, thereby achieving reasonable distribution of service traffic.

[0087] In addition, other configurations can be performed in the orchestration file, such as configuring the instance reduction time, and configuring the fault self-healing permissions. The following describes these two situations in detail.

[0088] (1) Instance reduction time

[0089] In actual applications, services may have different amounts of service traffic at different times. For example, in a train station scenario, there is more traffic during the day and less traffic at night. In this case, to save resources, you can configure instances to reduce the time. When the instance reduction time is reached, terminate the running instances to reduce the number of running instances.

[0090] In an optional implementation manner provided in this embodiment, the number of instances is reduced in the following manner:

[0091] When it is detected that the instance reduction time in the orchestration file has arrived, the number of instances to be reduced is calculated according to the number of application instances and the number of running instances at the instance reduction time in the orchestration file;

[0092] The processing permission of the target application instance whose number of instances is reduced in the application instance is closed.

[0093] Specifically, the instance reduction time may be recorded in the orchestration file. When it is detected that the instance reduction time has arrived, the number of reduced instances is calculated, and the processing authority of the target application instance whose number of instances has been reduced in the application instance is closed.

[0094] For example, the gate service has 5 application instances, and the user's arrangement file records that the instance reduction time is 12 o'clock in the evening. At 12 o'clock in the evening, 2 application instances are run. Then, at 12 o'clock in the evening, the processing rights of 3 of the 5 application instances of the gate service are closed. The 3 closed application instances can be randomly selected or can be the application instances recorded in the arrangement file, which is not limited in this embodiment.

[0095] It should be noted that when the processing permission is closed, the instance state of the target application instance is marked as suspended. It should also be noted that if it is detected that the instance addition time in the arrangement file has arrived, the processing permission of the target application instance is activated. After the processing permission is activated, the instance state of the target application instance is activated.

[0096] In addition to activating and closing processing permissions for the target application instance, any application instance can also be terminated; it should be noted that instance termination can also be orchestrated according to the orchestration file for application instance termination submitted by the user to obtain a terminated application instance, and then the terminated application instance is terminated. In the process of terminating the terminated application instance, the association between the application instance and the corresponding domain name is first released, and then the service is deregistered, so as to avoid receiving service traffic due to the association with the domain name not being contacted during the service deregistration process, thereby affecting the service processing of the service traffic.

[0097] It should be noted that the orchestration processing method for creating application instances in this embodiment is merely illustrative, and the termination of application instances, migration of application instances, and other processing may also be performed. The specific process is similar to the orchestration processing method for creating application instances, except that the application orchestration data does not contain application code and does not create application instances. Please refer to the above-mentioned related content, and this embodiment will not be repeated here.

[0098] (2) Fault self-healing permissions

[0099] During specific implementation, various faults may occur during the operation of the application instance. Therefore, the user can record the configuration of fault self-healing permissions, fault self-healing rules, and fault self-healing strategies in the orchestration file, so that the application instance can perform fault self-healing processing based on the fault self-healing strategy when a fault corresponding to the fault self-healing rule occurs.

[0100] In an implementation manner provided in this embodiment, the following operations are also performed:

[0101] If it is detected that the target application instance in the application instance triggers the fault self-healing rule of the orchestration file, detecting whether there is a permission mark of the fault self-healing permission in the orchestration file;

[0102] If not, no action will be taken;

[0103] If yes, read the fault self-healing strategy in the orchestration file, and perform fault self-healing processing on the target application instance based on the fault self-healing strategy;

[0104] If the result of the fault self-healing process is successful, the service processing can be performed based on the application instance after the successful processing;

[0105] If the result of the fault self-healing process is a processing failure and the cross-node migration strategy in the orchestration file is triggered, the target application instance and the service traffic of the target application instance are migrated to the standby node according to the preset migration strategy.

[0106] Specifically, if the target application instance triggers the fault self-healing rule in the orchestration file, then in the case where there is a permission mark of the fault self-healing permission in the orchestration file, the target application instance is subjected to fault self-healing processing according to the fault self-healing strategy in the orchestration file. If the fault self-healing processing fails, the target application instance and the service traffic of the target application instance are migrated to the standby node according to the preset migration strategy. Alternatively, in the case where the fault self-healing processing fails and the cross-node migration strategy in the orchestration file is triggered, the target application instance and the service traffic of the target application instance are migrated to the standby node according to the preset migration strategy. Optionally, the preset migration strategy may be included in the orchestration file or may be pre-configured, which is not limited in this embodiment.

[0107] like Figure 4As shown, this embodiment can be applied to the computing network orchestration engine, which includes the computing network rule service, computing network rule orchestration service, computing network orchestration definition and computing network orchestration status service; wherein, the user submits the application orchestration data through the computing network orchestration engine API, and the computing network rule service parses the orchestration file to obtain the orchestration configuration information; the computing network rule orchestration service is used to generate the orchestration relationship diagram; the computing network orchestration status service is used to save the execution status of each orchestration configuration information in the orchestration processing process, and the computing network orchestration definition is used to combine the storage configuration identifier with the corresponding execution information, and the database of the node resources of the storage orchestration node to perform orchestration processing and service registration for the application instance to obtain the computing power demand and network resources. Among them, the computing network orchestration definition and the computing network orchestration status service are in the computing network orchestration execution environment.

[0108] In summary, the orchestration processing method provided in this embodiment can be developed and designed based on the Cloudify framework to automate the declaration lifecycle of applications, including deployment on any cloud or data center environment, detection of all aspects of deployed applications, detection of problems and faults, automatic problem or fault repair, and maintenance of running application instances; specifically, it implements modeling and orchestration of applications, ensures the pluggability and security of the modeling and orchestration processes, and improves the efficiency and effectiveness of orchestration processing.

[0109] The following further describes the arrangement processing method provided by this embodiment by taking the actual application of the arrangement processing method provided by this embodiment in the application arrangement processing scenario of the edge node as an example. Figure 5 The orchestration processing method for the application orchestration processing scenario applied to the edge node specifically includes steps S502 to S514.

[0110] Step S502: Acquire application package data including an orchestration file and application code.

[0111] Step S504: perform security and integrity checks on the application package data, and if the checks pass, parse the orchestration file to obtain orchestration configuration information.

[0112] Step S506: Generate an orchestration relationship diagram based on the orchestration configuration information and the orchestration relationship template.

[0113] Step S508: Perform orchestration processing according to the orchestration relationship diagram to obtain an orchestration edge node.

[0114] Step S510: Create an application instance at the orchestration edge node according to the application code.

[0115] Step S512, determining whether the node available resources of the orchestration edge node meet the running conditions of the application instance on the orchestration edge node;

[0116] If yes, execute step S514;

[0117] If not, resources are allocated to the orchestration edge node, and step S514 is executed.

[0118] Step S514, associate the domain name in the orchestration file with the application instance, configure the traffic rules of the application instance, and register the instance service for the application instance with the configured traffic rules.

[0119] This specification provides an embodiment of an arrangement processing method:

[0120] Reference Figure 6 The arrangement processing method provided in this embodiment specifically includes the following steps S602 to S606.

[0121] Step S602: Acquire application orchestration data.

[0122] Optionally, the application orchestration data may be application orchestration data for creating an application instance, application orchestration data for deleting an application instance, or application orchestration data for migrating or transferring an application instance, which is not limited in this embodiment.

[0123] Step S604: parse the application orchestration data to obtain orchestration configuration information, and generate an orchestration relationship graph based on the orchestration configuration information and an orchestration relationship template.

[0124] Step S606: Perform arrangement processing according to the arrangement relationship diagram to obtain an arrangement result.

[0125] like Figure 7 As shown, the computing network orchestration engine manages the available resources of each orchestration edge node. In addition, it also configures the orchestration relationship template. After receiving the user's application orchestration data, it first determines the application orchestration type contained in the application orchestration data, and generates an orchestration relationship graph according to the application orchestration type. After obtaining the orchestration relationship graph, it can automatically perform orchestration processing based on the orchestration relationship graph to obtain the orchestration result. If automatic orchestration is not enabled, manual process decisions are made based on the orchestration relationship graph to perform orchestration processing and obtain the orchestration result. If the orchestration processing fails, the exception can be rolled back.

[0126] Figure 8 A schematic diagram of an arrangement processing device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the device comprises:

[0127] The data acquisition module 802 is configured to acquire application orchestration data including orchestration files and application codes;

[0128] The parsing module 804 is configured to parse the orchestration file to obtain the orchestration configuration information, and generate an orchestration relationship diagram based on the orchestration configuration information and the orchestration relationship template;

[0129] The orchestration processing module 806 is configured to perform orchestration processing according to the orchestration relationship diagram, obtain an orchestration node, and create an application instance based on the orchestration node and the application code;

[0130] The service registration module 808 is configured to perform service registration for the application instance when the node available resources of the orchestration node meet the running conditions of the application instance.

[0131] The arrangement processing device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0132] Furthermore, an embodiment of the present specification also provides an arrangement processing device, Fig. 9 A schematic diagram of a structure of an arrangement processing device provided in an embodiment of this specification, such as Fig. 9 As shown, the device includes: a memory 901, a processor 902, a bus 903 and a communication interface 904. The memory 901, the processor 902 and the communication interface 904 communicate through the bus 903, and the communication interface 904 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.

[0133] Fig. 9 In the embodiment, the memory 901 stores computer executable instructions that can be run on the processor 902. When the computer executable instructions are executed by the processor 902, the following process is implemented:

[0134] Obtain application orchestration data including orchestration files and application codes;

[0135] Parsing the orchestration file to obtain orchestration configuration information, and generating an orchestration relationship diagram based on the orchestration configuration information and an orchestration relationship template;

[0136] Performing orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and creating an application instance based on the orchestration node and the application code;

[0137] When the node available resources of the orchestration node meet the running conditions of the application instance, the application instance is registered for service.

[0138] The arrangement processing device provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0139] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:

[0140] Obtain application orchestration data including orchestration files and application codes;

[0141] Parsing the orchestration file to obtain orchestration configuration information, and generating an orchestration relationship diagram based on the orchestration configuration information and an orchestration relationship template;

[0142] Performing orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and creating an application instance based on the orchestration node and the application code;

[0143] When the node available resources of the orchestration node meet the running conditions of the application instance, the application instance is registered for service.

[0144] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0145] The computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0146] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0147] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0150] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0151] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.

[0152] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0153] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0155] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for arrangement processing, characterized in that: include: Obtain application orchestration data including orchestration files and application codes; Parsing the orchestration file to obtain orchestration configuration information, and generating an orchestration relationship diagram based on the orchestration configuration information and an orchestration relationship template; Performing orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and creating an application instance based on the orchestration node and the application code; When the node available resources of the orchestration node meet the running conditions of the application instance, the application instance is registered for service.

2. The arrangement processing method according to claim 1, characterized in that: The parsing of the arrangement file to obtain arrangement configuration information includes: Read the user configuration information submitted by the user based on the arrangement file template and the custom configuration information entered by the user in the arrangement file; According to the template content of the arrangement file template and the user configuration information, the remaining configuration information is determined, and the default configuration information is screened out from the remaining configuration information.

3. The arrangement processing method according to claim 2, characterized in that: The generating an orchestration relationship diagram based on the orchestration configuration information and the orchestration relationship template includes: Writing the user configuration information and the default configuration information into the orchestration relationship template to obtain an initial orchestration relationship diagram; Determining an execution location of the custom configuration information according to the location information of the custom configuration information; Based on the execution position, writing the custom configuration information into the initial orchestration relationship graph to obtain an intermediate orchestration relationship graph; Initialization processing is performed on the intermediate orchestration relationship graph to obtain the orchestration relationship graph.

4. The arrangement processing method according to claim 3, characterized in that: The initializing process of the intermediate orchestration relationship graph to obtain the orchestration relationship graph includes: Deleting the orchestration information with a configuration identifier of null in the intermediate orchestration relationship graph to obtain the orchestration relationship graph after deletion; The execution relationship in the deleted orchestration relationship graph is updated to obtain the orchestration relationship graph.

5. The arrangement processing method according to claim 1, characterized in that: After the step of performing service registration on the application instance when the node available resources of the orchestration node meet the running conditions of the application instance is performed, the method further includes: When it is detected that the instance reduction time in the orchestration file has arrived, the number of instances to be reduced is calculated according to the number of instances of the application instance and the number of instances running at the instance reduction time in the orchestration file; The processing permission of the target application instance whose number of instances is reduced in the application instance is closed.

6. The arrangement processing method according to claim 1, characterized in that: After the step of performing service registration on the application instance when the node available resources of the orchestration node meet the running conditions of the application instance is performed, the method further includes: Obtaining the service traffic corresponding to the application instance; The service traffic is distributed to each application instance in the application instance according to the service traffic and the number of instances of the application instance.

7. The arrangement processing method according to claim 1, characterized in that: After the step of performing service registration on the application instance when the node available resources of the orchestration node meet the running conditions of the application instance is performed, the method further includes: If it is detected that the target application instance in the application instance triggers the fault self-healing rule of the orchestration file, detecting whether the orchestration file contains a permission mark of the fault self-healing permission; If so, read the fault self-healing strategy in the orchestration file, and perform fault self-healing processing on the target application instance based on the fault self-healing strategy.

8. An arrangement processing device, characterized in that: include: A data acquisition module is configured to acquire application orchestration data including an orchestration file and application code; A parsing module is configured to parse the orchestration file to obtain orchestration configuration information, and generate an orchestration relationship graph based on the orchestration configuration information and an orchestration relationship template; An orchestration processing module is configured to perform orchestration processing according to the orchestration relationship diagram to obtain an orchestration node, and create an application instance based on the orchestration node and the application code; The service registration module is configured to perform service registration for the application instance when the node available resources of the orchestration node meet the running conditions of the application instance.

9. An arrangement processing device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer executable instructions, and when the computer executable instructions are executed on the processor, the steps of the method described in any one of claims 1 to 7 can be implemented.

10. A computer-readable storage medium having computer-executable instructions stored therein, characterized in that: When the computer executable instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 can be implemented.