Service orchestration method and device for distributed system
By using machine learning algorithms to build service orchestration models in distributed systems, the problem of insufficient flexibility and adaptability of service orchestration frameworks in complex scenarios in existing technologies is solved, and efficient service orchestration decision-making and self-optimization are achieved.
Patent Information
- Application Number
- CN202410843008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
AI Technical Summary
The existing service orchestration framework lacks flexibility and adaptability in the face of complex scenarios, making it difficult to make effective decisions and self-optimize.
Build a service orchestration model based on machine learning algorithms. By obtaining the original log data of the distributed system, use the Gini coefficient to train the decision tree algorithm, generate service orchestration results, and improve the flexibility and adaptability of service orchestration.
It achieves efficient generation of service orchestration results in complex scenarios, provides timely and effective decisions, and improves the self-optimization capabilities of service orchestration.
Smart Images

Figure CN118863100A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, in particular to the field of artificial intelligence technology, and more particularly to a service orchestration method and device for a distributed system. Background Art
[0002] With the popularity of microservice architecture, the system is split into multiple independent services, and the interactions between these services become complex. Service orchestration can centrally manage these interactions, ensuring that the dependencies, call order, and exception handling between services are properly handled, thereby reducing the complexity of the system. In related technologies, service orchestration is implemented through existing frameworks, but some service orchestration frameworks often rely on hard-coded rules, which lack flexibility and adaptability when facing unknown situations or data; in complex production and orchestration scenarios, there are a large number of variables and constraints, and traditional service orchestration frameworks are difficult to make effective decisions and self-optimization capabilities. Summary of the invention
[0003] One object of the present invention is to provide a service orchestration method for a distributed system, to build a service orchestration model based on a machine learning algorithm, to effectively improve the flexibility, adaptability and self-optimization capability of the service orchestration, to efficiently generate service orchestration results in complex scenarios, and to provide effective decisions in a timely manner. Another object of the present invention is to provide a service orchestration device for a distributed system. Another object of the present invention is to provide a computer-readable medium. Still another object of the present invention is to provide a computer device.
[0004] In order to achieve the above objectives, the present invention discloses a service orchestration method for a distributed system, comprising:
[0005] Get the original log data of each node in the distributed system;
[0006] Based on the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model;
[0007] Through the service orchestration model, the Gini coefficient is calculated according to the current service operation data to generate the service orchestration result.
[0008] Preferably, obtaining the original log data of each node on the distributed system includes:
[0009] Use the log management tool to obtain the service call logs of each node;
[0010] Use log management tools to extract raw log data from service call logs.
[0011] Preferably, according to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model, including:
[0012] Preprocess the original log data to generate a service indicator data set;
[0013] According to the service indicator dataset, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model.
[0014] Preferably, data preprocessing is performed on the original log data to generate a service indicator data set, including:
[0015] Clean the original log data to generate the initial data set;
[0016] Extract key indicators from the initial data set to generate a key indicator data set;
[0017] The key indicator data set is discretized to generate a service indicator data set.
[0018] Preferably, according to the service indicator data set, a decision tree algorithm is trained based on the Gini coefficient to construct a service orchestration model, including:
[0019] Divide the service indicator data set into a training indicator data set and a test indicator data set;
[0020] Perform initial training on the decision tree algorithm through the training indicator data set to generate an initial orchestration model;
[0021] By testing the indicator data set, the parameters of the initial orchestration model are optimized based on the Gini coefficient to build a service orchestration model.
[0022] Preferably, the service orchestration model is used to calculate the Gini coefficient according to the current service operation data to generate a service orchestration result, including:
[0023] Preprocess the current service operation data to generate atomic service indicators;
[0024] Through the service orchestration model, the Gini coefficient of each atomic service is generated according to the atomic service indicators;
[0025] According to the Gini coefficient, the service orchestration results of the atomic service are determined.
[0026] The present invention also discloses a service arrangement device for a distributed system, comprising:
[0027] An acquisition unit, used to acquire the original log data of each node in the distributed system;
[0028] The model building unit is used to train the decision tree algorithm based on the original log data and the Gini coefficient to build a service orchestration model;
[0029] The service orchestration unit is used to calculate the Gini coefficient according to the current service operation data through the service orchestration model to generate a service orchestration result.
[0030] The present invention also discloses a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0031] The present invention also discloses a computer device, including a memory and a processor, wherein the memory is used to store information including program instructions, the processor is used to control the execution of program instructions, and the processor implements the above method when executing the program.
[0032] The present invention also discloses a computer program product, including a computer program / instruction, and the method described above is implemented when the computer program / instruction is executed by a processor.
[0033] The present invention obtains the original log data of each node on the distributed system; according to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model; through the service orchestration model, the Gini coefficient is calculated according to the current service operation data to generate a service orchestration result, and the service orchestration model is built based on the machine learning algorithm, which effectively improves the flexibility and adaptability of service orchestration and the self-optimization ability of the model, and can efficiently generate service orchestration results in complex scenarios and provide effective decisions in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A flow chart of a service orchestration method for a distributed system provided by an embodiment of the present invention;
[0036] Figure 2 A flow chart of another distributed system service orchestration method provided by an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of the structure of a service orchestration device for a distributed system provided by an embodiment of the present invention;
[0038] Figure 4A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] It should be noted that the service orchestration method and device for a distributed system disclosed in the present application can be used in the field of artificial intelligence technology, and can also be used in any field other than the field of artificial intelligence technology. The application field of the service orchestration method and device for a distributed system disclosed in the present application is not limited.
[0041] The following takes the service orchestration device of the distributed system as an example to illustrate the implementation process of the service orchestration method of the distributed system provided by the embodiment of the present invention. It is understandable that the execution subject of the service orchestration method of the distributed system provided by the embodiment of the present invention includes but is not limited to the service orchestration device of the distributed system.
[0042] Figure 1 A flow chart of a service arrangement method for a distributed system provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0043] Step 101: Obtain original log data of each node in the distributed system.
[0044] Step 102: According to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model.
[0045] Step 103: Calculate the Gini coefficient based on the current service operation data through the service orchestration model to generate a service orchestration result.
[0046] In the technical solution provided by the embodiment of the present invention, the original log data of each node on the distributed system is obtained; according to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model; through the service orchestration model, the Gini coefficient is calculated according to the current service operation data to generate a service orchestration result, and the service orchestration model is built based on the machine learning algorithm, which effectively improves the flexibility and adaptability of service orchestration and the self-optimization ability of the model, and can efficiently generate service orchestration results in complex scenarios and provide effective decisions in a timely manner.
[0047] Figure 2A flow chart of another distributed system service orchestration method provided by an embodiment of the present invention is as follows: Figure 2 As shown, the method includes:
[0048] Step 201: Obtain the service call log of each node through a log management tool.
[0049] In the embodiment of the present invention, each step is executed by a service orchestration device of a distributed system.
[0050] In the embodiment of the present invention, the log management tool is GrayLog, which is an open source platform for centralized log management, capable of providing the functions of collecting, storing, analyzing and visualizing a large amount of log data. Specifically, the GrayLog program is deployed on the distributed nodes, and by writing a custom log collection script, the service call logs of each node of the distributed system are sent to the GrayLog service (Server), thereby realizing the generation and unified management of cross-node service call log files.
[0051] Step 202: extract original log data from the service call log using a log management tool.
[0052] In the embodiment of the present invention, the log management tool is GrayLog. Specifically, the original log data is obtained from the original log through the search analysis engine (ElasticsSearch) JSON text in the GrayLog program, which is convenient for the next step of data preprocessing.
[0053] Step 203: pre-process the original log data to generate a service indicator data set.
[0054] In the embodiment of the present invention, data preprocessing is the combination and discretization processing of the original log data.
[0055] In the embodiment of the present invention, step 203 specifically includes:
[0056] Step 2031: clean the original log data to generate an initial data set.
[0057] Specifically, the original log data is cleaned to remove abnormal data such as service call exceptions and service timeouts to form an initial data set.
[0058] Step 2032: extract key indicators from the initial data set to generate a key indicator data set.
[0059] In the embodiment of the present invention, the key indicators include but are not limited to service function classification, service call status, service time consumption, service deployment node, service uniform resource locator (URL), and service call status.
[0060] Step 2033: discretize the key indicator data set to generate a service indicator data set.
[0061] In the embodiments of the present invention, discretization processing is a data processing technology, which is mainly used to convert continuous data values into discrete, finite numerical values or categories to improve the time and space efficiency of the algorithm, reduce the amount of calculation, process outliers, and facilitate data visualization and the application of specific models.
[0062] For example, the key indicator data set includes the key indicators corresponding to service A, service B, and service C. Among them, the key indicators corresponding to service A include service time of 100ms, service deployment node is node a, and service call is successful; the key indicators corresponding to service B include service time of 450ms, service deployment node is node a, and service call is failed; the key indicators corresponding to service C include service time of 1.2s, service deployment node is node b, and service call is successful. The key indicators corresponding to service A, the key indicators corresponding to service B, and the key indicators corresponding to service C are discretized respectively, and the service indicator data corresponding to service A include service time t≤500ms, service deployment node is node a, and service call status is 1; the service indicator data corresponding to service B include service time 500ms<t≤1s, service deployment node is node a, and service call status is 0; the service indicator data corresponding to service C include service time t>1s, service deployment node is node b, and service call status is 1; the finally generated service indicator data set is: [A,≤500ms,a,1], [B,“500ms>,1s≤”,a,0], [C,1s>,b,1].
[0063] Step 204: According to the service indicator data set, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model.
[0064] In an embodiment of the present invention, the Gini Coefficient, also known as Gini Impurity, is an indicator to measure the degree of class confusion in a data set. In machine learning, especially in the CART decision tree algorithm, it is used as one of the criteria for building a classification tree. Gini Impurity is the probability that two samples randomly selected from a data set belong to different categories. If the data set is completely pure (ie, all samples belong to the same category), then the Gini Impurity is 0; if the class distribution in the data set is completely uniform (ie, the number of samples in each category is the same), the Gini Impurity will reach the maximum value.
[0065] The Gini coefficient is a value between 0 and 1 that provides a way to quantify the purity of a dataset and is an important metric in CART decision trees and some other machine learning algorithms.
[0066] In the embodiment of the present invention, step 204 includes:
[0067] Step 2041: Divide the service indicator data set to generate a training indicator data set and a test indicator data set.
[0068] In the embodiment of the present invention, the service indicator data set is divided into a training indicator data set and a test indicator data set according to a preset division ratio.
[0069] It is worth noting that the division ratio can be set according to actual needs, and the embodiment of the present invention does not limit this. As an optional solution, the division ratio between the training index data set and the test index data set is 7:3.
[0070] Step 2042: Perform initial training on the decision tree algorithm using the training indicator data set to generate an initial orchestration model.
[0071] In an embodiment of the present invention, the decision tree algorithm is a CART (Classification and Regression Trees) decision tree, which is used to solve classification and regression problems. A CART decision tree is a binary tree that constructs a tree by recursively dividing a data set into smaller subsets. Each internal node represents a decision rule on a feature, and each leaf node represents a prediction result (a category in a classification tree and a value in a regression tree).
[0072] Specifically, the training indicator data set is input into the CART decision tree for classification task training to generate an initial orchestration model.
[0073] Step 2043: By testing the indicator data set, the parameters of the initial orchestration model are optimized based on the Gini coefficient to build a service orchestration model.
[0074] In an embodiment of the present invention, the parameters of the initial orchestration model are optimized according to the test indicator data set, the configuration of the model parameters is completed, and a service orchestration model is constructed. The model parameters include but are not limited to the maximum depth of the decision tree, the minimum number of split samples, and the Gini impurity.
[0075] In the embodiment of the present invention, the performance of the service orchestration model is evaluated through the training index data set and the test index data set, and the performance is measured through indicators such as accuracy and recall rate. The model parameters are adjusted according to the evaluation results, and optimization such as decision tree pruning is performed depending on the situation.
[0076] Furthermore, the trained service orchestration model is connected to verify the accuracy of the final service call result.
[0077] Step 205: pre-process the current service operation data to generate atomic service indicators.
[0078] In the embodiment of the present invention, the current service operation data is the operation data of each service to be arranged. Specifically, the service operation data is cleaned to generate initial operation data; key indicators are extracted from the initial operation data to generate key indicator data; the key indicator data is discretized to generate atomic service indicators.
[0079] It is worth noting that the data preprocessing process in this step is the same as step 203, and the embodiment of the present invention does not limit this.
[0080] Step 206: Generate the Gini coefficient of each atomic service based on the atomic service indicators through the service orchestration model.
[0081] Specifically, the atomic service indicators are input into the service orchestration model for orchestration, the Gini coefficient of each atomic service is calculated, and the decision tree structure, that is, the order of service calls, is finally determined. For example, the corresponding Gini coefficients of atomic service A, atomic service B, and atomic service C are 0.7, 0.1, and 0.3 respectively.
[0082] Step 207: Determine the service arrangement result of the atomic service according to the Gini coefficient.
[0083] In the embodiment of the present invention, the atomic services are sorted in ascending order of the Gini coefficient to obtain the sorted sequence of the atomic services; and the sorted sequence of the atomic services is determined as the service arrangement result.
[0084] For example: the corresponding Gini coefficients of atomic service A, atomic service B, and atomic service C are 0.7, 0.1, and 0.3, respectively; the atomic services are sorted in ascending order of the Gini coefficients, and the order of atomic service orchestration is atomic service B, atomic service C, and atomic service A; the service orchestration result is determined as atomic service B, atomic service C, and atomic service A.
[0085] The present invention achieves self-orchestration of calling services by writing custom log collection scripts, data preprocessing, model training, model evaluation and tuning, service orchestration verification and other processes, effectively reducing the reliance on manual decision-making of service calling processes. At the same time, through the continuous updating of model data sets, the structure of the decision tree can be continuously and dynamically adjusted to continuously optimize the service orchestration capability.
[0086] It is worth noting that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of laws and regulations. The user information in the embodiments of this application is obtained through legal and compliant channels, and the acquisition, storage, use, and processing of user information are authorized and agreed by the customer.
[0087] It is worth noting that the information collected in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0088] It is worth noting that the technical solution provided in this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0089] In the technical solution of the service orchestration method for a distributed system provided by an embodiment of the present invention, the original log data of each node on the distributed system is obtained; according to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model; through the service orchestration model, the Gini coefficient is calculated according to the current service operation data to generate a service orchestration result, and the service orchestration model is built based on the machine learning algorithm, which effectively improves the flexibility and adaptability of the service orchestration and the self-optimization ability of the model, and can efficiently generate service orchestration results in the face of complex scenarios and provide effective decisions in a timely manner.
[0090] Figure 3 A schematic diagram of the structure of a service arrangement device for a distributed system provided by an embodiment of the present invention, wherein the device is used to execute the service arrangement method for the distributed system, such as Figure 3 As shown, the device includes: an acquisition unit 11, a model building unit 12 and a service orchestration unit 13.
[0091] The acquisition unit 11 is used to acquire the original log data of each node in the distributed system.
[0092] The model building unit 12 is used to train the decision tree algorithm based on the original log data and the Gini coefficient to build a service orchestration model.
[0093] The service arrangement unit 13 is used to calculate the Gini coefficient according to the current service operation data through the service arrangement model to generate a service arrangement result.
[0094] In the embodiment of the present invention, the acquisition unit 11 is specifically used to acquire the service call log of each node through a log management tool; and extract original log data from the service call log through the log management tool.
[0095] In the embodiment of the present invention, the model building unit 12 is specifically used to perform data preprocessing on the original log data to generate a service indicator data set; according to the service indicator data set, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model.
[0096] In the embodiment of the present invention, the model building unit 12 is specifically used to perform data cleaning on the original log data to generate an initial data set; extract key indicators from the initial data set to generate a key indicator data set; discretize the key indicator data set to generate a service indicator data set.
[0097] In the embodiment of the present invention, the model building unit 12 is specifically used to divide the service indicator data set to generate a training indicator data set and a test indicator data set; perform initial training on the decision tree algorithm through the training indicator data set to generate an initial orchestration model; and optimize the parameters of the initial orchestration model based on the Gini coefficient through the test indicator data set to build a service orchestration model.
[0098] In the embodiment of the present invention, the service orchestration unit 13 is specifically used to perform data preprocessing on the current service operation data to generate atomic service indicators; generate the Gini coefficient of each atomic service according to the atomic service indicators through the service orchestration model; and determine the service orchestration result of the atomic service according to the Gini coefficient.
[0099] In the scheme of the embodiment of the present invention, the original log data of each node on the distributed system is obtained; according to the original log data, the decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model; through the service orchestration model, the Gini coefficient is calculated according to the current service operation data to generate a service orchestration result, and the service orchestration model is built based on the machine learning algorithm, which effectively improves the flexibility and adaptability of service orchestration and the self-optimization ability of the model, and can efficiently generate service orchestration results in complex scenarios and provide effective decisions in a timely manner.
[0100] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0101] An embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions. When the program instructions are loaded and executed by the processor, the steps of the embodiment of the service orchestration method of the above-mentioned distributed system are implemented. For a specific description, please refer to the embodiment of the service orchestration method of the above-mentioned distributed system.
[0102] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.
[0103] like Figure 4 As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations 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. In the RAM 603, various programs and data required for the operation of the computer device 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0104] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 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 as needed as the storage section 608.
[0105] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from the removable medium 611.
[0106] Computer readable 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 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 media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0107] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0108] 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.
[0109] 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.
[0110] 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 A step that specifies a function in one or more boxes.
[0111] 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.
[0112] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0113] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0114] 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.
[0115] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0116] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0117] 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 service orchestration method for a distributed system, characterized in that: The method comprises: Get the original log data of each node in the distributed system; According to the original log data, a decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model; The service scheduling model is used to calculate the Gini coefficient based on the current service operation data to generate a service scheduling result.
2. The service arrangement method of a distributed system according to claim 1, characterized in that: The obtaining of the original log data of each node on the distributed system includes: Use the log management tool to obtain the service call logs of each node; The original log data is extracted from the service call log by using the log management tool.
3. The service arrangement method of a distributed system according to claim 1, characterized in that: The step of training a decision tree algorithm based on the original log data and the Gini coefficient to construct a service orchestration model includes: Performing data preprocessing on the original log data to generate a service indicator data set; According to the service indicator data set, a decision tree algorithm is trained based on the Gini coefficient to build a service orchestration model.
4. The service arrangement method of a distributed system according to claim 3, characterized in that: The preprocessing of the original log data to generate a service indicator data set includes: Performing data cleaning on the original log data to generate an initial data set; Extracting key indicators from the initial data set to generate a key indicator data set; The key indicator data set is discretized to generate the service indicator data set.
5. The service arrangement method of a distributed system according to claim 3, characterized in that: The step of training a decision tree algorithm based on the service indicator data set and the Gini coefficient to construct a service orchestration model includes: Dividing the service indicator data set to generate a training indicator data set and a test indicator data set; Performing initial training on the decision tree algorithm through the training indicator data set to generate an initial orchestration model; The test indicator data set is used to optimize the parameters of the initial orchestration model based on the Gini coefficient to construct the service orchestration model.
6. The service arrangement method of a distributed system according to claim 1, characterized in that: The service arrangement model is used to calculate the Gini coefficient according to the current service operation data to generate a service arrangement result, including: Performing data preprocessing on the current service operation data to generate atomic service indicators; Generate a Gini coefficient of each atomic service according to the atomic service indicator through the service orchestration model; A service orchestration result of the atomic service is determined according to the Gini coefficient.
7. A service orchestration device for a distributed system, characterized in that: The device comprises: An acquisition unit, used to acquire the original log data of each node in the distributed system; A model building unit, used to train a decision tree algorithm based on the original log data and the Gini coefficient to build a service orchestration model; The service arrangement unit is used to calculate the Gini coefficient according to the current service operation data through the service arrangement model to generate a service arrangement result.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the service orchestration method for a distributed system described in any one of claims 1 to 6 is implemented.
9. A computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the service orchestration method of the distributed system described in any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the service orchestration method for a distributed system according to any one of claims 1 to 6 is implemented.
