A server alarm processing method and related equipment
Through text preprocessing and classification prediction of LSTM algorithm model, combined with the alarm handling suggestion library, it solves the difficulty of fault identification caused by the explosion of alarm information in the bank data center, realizes fast and accurate fault handling and provision of disposal solutions, and improves monitoring and disposal efficiency.
Patent Information
- Application Number
- CN202111114007.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-09-23
AI Technical Summary
In bank data centers, as the scale of servers expands, alarm information increases exponentially, making it easy for important alarm information to be missed, making faults or abnormalities difficult to accurately identify, resulting in untimely emergency response.
By obtaining the current alarm text information of the server, preprocessing the text and inputting the pre-trained LSTM algorithm model for classification prediction, determining the fault type, and determining the target alarm disposal plan in the pre-built alarm disposal suggestion library, providing fast and accurate troubleshooting plan.
It can quickly and accurately identify server faults and fault types, provide timely disposal solutions, and improve the efficiency of daily monitoring and abnormal accident handling.
Smart Images

Figure CN113821408B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a server alarm processing method and related equipment. Background Art
[0002] As the operation and maintenance scale of bank data centers continues to expand, the scale of server production in data centers has also continued to expand, which has put forward higher requirements for rapid response to server failures and timely restoration of normal equipment operation.
[0003] As the server scale expands and the level of intelligent monitoring improves, server alarm data has exploded, and the number of monitored alarm information has shown a geometric growth trend. When there are too many alarm messages, it is easy to miss important alarm information, and it is impossible to make accurate identification in a short time, which is prone to equipment failure or abnormal misjudgment, resulting in untimely emergency response.
[0004] Therefore, how to quickly and accurately provide solutions to server alarm events has become the key to improving the efficiency of daily monitoring and accident handling. Summary of the invention
[0005] In view of the above problems, the present disclosure provides a server alarm processing method and related devices that overcome the above problems or at least partially solve the above problems. The technical solution is as follows:
[0006] A server alarm processing method, comprising:
[0007] Get the current alarm text information of the server;
[0008] Performing text preprocessing on the current warning text information to obtain a current warning text vector;
[0009] Input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the fault type of the server failure;
[0010] At least according to the fault type, a target alarm handling solution is determined in a pre-built alarm handling suggestion library.
[0011] Optionally, determining a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type includes:
[0012] Obtaining a processing suggestion text vector of at least one preset alarm processing solution corresponding to the fault type from a pre-built alarm processing suggestion library;
[0013] Calculating the cosine similarity between the current warning text vector and each of the treatment suggestion text vectors;
[0014] Clustering the cosine similarities using a preset clustering algorithm to obtain a clustering result;
[0015] According to the clustering result, a target alarm handling solution is determined from the at least one preset alarm handling solution.
[0016] Optionally, after determining a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type, the method further includes:
[0017] The server is handled according to the target alarm handling plan.
[0018] Optionally, after determining a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type, the method further includes:
[0019] The target alarm handling solution is recommended to the target terminal for display.
[0020] Optionally, the method further includes:
[0021] In response to a target triggering operation of the user on the target terminal on the displayed target alarm handling solution, the server is handled according to the target alarm handling solution.
[0022] Optionally, obtaining the current alarm text information of the server includes:
[0023] According to the preset sliding time window, the current alarm text information is obtained in the operation data of the server.
[0024] Optionally, performing text preprocessing on the current warning text information to obtain a current warning text vector includes:
[0025] Perform word segmentation and stop word removal on the current alarm text information to obtain a current alarm text word list;
[0026] The current warning text word list is vectorized to obtain a current warning text vector.
[0027] A server alarm processing device comprises: a current alarm text information obtaining unit, a current alarm text vector obtaining unit, an alarm classification prediction unit and a target alarm handling solution determination unit.
[0028] The current alarm text information obtaining unit is used to obtain the current alarm text information of the server;
[0029] The current warning text vector obtaining unit is used to perform text preprocessing on the current warning text information to obtain a current warning text vector;
[0030] The alarm classification prediction unit is used to input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the fault type of the server failure;
[0031] The target alarm handling solution determining unit is used to determine a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type.
[0032] A computer-readable storage medium stores a program, wherein when the program is executed by a processor, the server alarm processing method as described in any one of the above items is implemented.
[0033] An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute a server alarm processing method as described in any one of the above items.
[0034] By means of the above technical solution, a server alarm processing method and related equipment provided by the present disclosure can obtain the current alarm text information of the server; perform text preprocessing on the current alarm text information to obtain the current alarm text vector; input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the type of failure of the server; at least according to the failure type, determine the target alarm handling solution in the pre-built alarm handling suggestion library. The present disclosure provides a target alarm handling solution for the alarm text information generated when the server fails, which helps to timely handle the server failure in an emergency, thereby improving the work efficiency of daily monitoring and accident abnormality handling of the server.
[0035] The above description is only an overview of the technical solution of the present disclosure. In order to more clearly understand the technical means of the present disclosure, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present disclosure more obvious and easy to understand, the specific implementation methods of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0037] Figure 1 A flow chart showing an implementation of a method for processing server alarms provided in an embodiment of the present disclosure;
[0038] Figure 2 A flow chart showing another implementation of the server alarm processing method provided in an embodiment of the present disclosure;
[0039] Figure 3 A flow chart showing another implementation of the server alarm processing method provided in an embodiment of the present disclosure;
[0040] Figure 4 A flow chart showing another implementation of the server alarm processing method provided in an embodiment of the present disclosure;
[0041] Figure 5 A structural schematic diagram of the LSTM algorithm model provided by an embodiment of the present disclosure is shown;
[0042] Figure 6 A flow chart showing another implementation of the server alarm processing method provided in an embodiment of the present disclosure;
[0043] Figure 7 A schematic diagram of the structure of a server alarm processing device provided by an embodiment of the present disclosure is shown;
[0044] Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0045] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0046] like Figure 1 As shown, a flow chart of an implementation of a server alarm processing method provided in an embodiment of the present disclosure is provided, and the server alarm processing method may include:
[0047] S100: Obtain current alarm text information from the server.
[0048] The server may be an X86 server. The server alarm text information may be Chinese text data recording the running status of the server. Usually, the alarm text information includes the server device name and fault description information. The server alarm text information has the characteristic of being output continuously in a short period of time. Since the alarm text information output by the server is arranged in chronological order, the alarm text information within a fixed time step can be extracted in real time as the current alarm text information.
[0049] Optional, based on Figure 1 The method shown, such as Figure 2 As shown, a flow chart of another implementation of the server alarm processing method provided in an embodiment of the present disclosure is shown, and step S100 may include:
[0050] S110. Obtain current alarm text information from the operation data of the server according to the preset sliding time window.
[0051] Among them, the preset sliding time window is set with a time step. Under normal circumstances, the set time step does not exceed 15 seconds. It is understandable that when a server fails, relevant alarms of physical disks, logical disks and corresponding applications on the server may be generated within a sliding time window. The embodiment of the present disclosure collects the current alarm text information through the preset sliding time window, and can try to make the collected current alarm text information the alarm information of the same fault type.
[0052] S200: Perform text preprocessing on the current alarm text information to obtain a current alarm text vector.
[0053] Optional, based on Figure 1 The method shown, such as Figure 3 As shown, a flow chart of another implementation of the server alarm processing method provided in an embodiment of the present disclosure is shown, and step S200 may include:
[0054] S210: Segment the current alarm text information and remove stop words to obtain a current alarm text word list.
[0055] Specifically, the disclosed embodiment can use the Viterbi algorithm in the Hidden Markov Model (HMM) to perform word segmentation and remove stop words. Further, the disclosed embodiment can use the jieba tool to segment the current alarm text information and generate alarm word information consisting of a series of Chinese words sorted by time. Specifically, the disclosed embodiment can use a pre-built server alarm word segmentation dictionary library to perform word segmentation through the jieba tool. For example: the server alarm word segmentation dictionary library may include "dict = {'physical disk', 'logical disk', 'array controller', 'error keyword', 'CPU'...}". The disclosed embodiment uses a pre-established stop word list to eliminate the words in the stop word list in the alarm word information, achieve data cleaning, and obtain the current alarm text word list.
[0056] S220: vectorize the current alarm text word list to obtain a current alarm text vector.
[0057] Among them, the current alarm text vector is a distributed vector representation corresponding to the current alarm text information.
[0058] Specifically, the embodiment of the present disclosure can use the pre-trained word2vec model to vectorize the current warning text word list to obtain the current warning text vector. Further, the embodiment of the present disclosure can use the formula:
[0059]
[0060] Get the current alarm text vector, where d is the current alarm text word list; word_count is the number of words in the current alarm text word list; t is the word in the current alarm text word list; vec(t) is the vector of the word; word2vec(d) is the current alarm text vector.
[0061] The disclosed embodiment can obtain a current alarm text vector reflecting a distributed vector expression of the current alarm text information in terms of time characteristics by segmenting the current alarm text information and removing stop words to vectorize the current alarm text word list, so as to subsequently determine the fault type of the server.
[0062] S300: Input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails. If the server fails, determine the fault type of the server failure.
[0063] Among them, the Long Short-Term Memory (LSTM) network is a time recurrent neural network. The LSTM algorithm has the function of processing time-related sequences and can handle the continuous alarm information triggered by the server in a short period of time. The alarm information is arranged in chronological order and therefore has a chronological relationship. Since multiple alarm information adjacent in time contains important features, the embodiment of the present disclosure can input the alarm text vector into the LSTM algorithm model to predict the failure of the server.
[0064] The input of the LSTM layer is the historical alarm text vector corresponding to each historical alarm text information in the training data set, which is represented as X = {x1, x2, ..., x n}, where X is the historical alarm text vector, x i is the distributed vector representation corresponding to the word numbered i in the historical alarm text word list obtained after the historical alarm text information is processed by word segmentation and stop word removal, and n is the number of words contained in the historical alarm text word list.
[0065] Among them, the LSTM algorithm model mainly includes: forget gate, input gate, output gate and memory cell.
[0066] The formula for calculating the amount of information stored in the memory unit in the network input at the current moment in the input gate is as follows:
[0067]
[0068] Among them, i t is the output of the input gate; x t is the current input; h t-1 is the output of the previous hidden layer; For x t The weight of h t-1 The weight of i is the bias of the input gate; σ represents the sigmoid activation function.
[0069] The calculation formula for the input gate to output a temporary memory unit is as follows:
[0070]
[0071] Among them, c t It is a temporary memory unit; For x t The weight of h t-1 The weight of c ct The bias.
[0072] The calculation formula for the amount of information retained in the memory unit at the previous moment in the forget gate is as follows:
[0073] f t =σ(w xf x t +w hf h t-1 +b f )
[0074] Among them, f t is the output of the forget gate; w xf For x t The weight of hf h t-1 The weight of f is the bias of the forget gate.
[0075] The current moment input acts on the input gate to obtain the temporary memory unit. The current moment memory unit calculation formula is as follows:
[0076] c t =f t ×c t-1 +i t ×c' t
[0077] Among them, c t-1 is the output value of the previous moment and the previous unit.
[0078] The output expressions of the output gate and hidden layer are as follows:
[0079]
[0080] h t =o t ×tanh(c t )
[0081] Among them, t is the output of the output gate; h t is the output of the current hidden layer; For x t The weight of h t-1 The weight of o for o t The bias.
[0082] Optional, such as Figure 4 As shown, the training process of the LSTM algorithm model in the embodiment of the present disclosure may include:
[0083] S01. Collect historical alarm information of the server in the monitoring system.
[0084] S02. Construct a training data set based on historical alarm information, annotate the data in the training data set with fault type classification tags and fault type disposal classification, and construct an alarm disposal suggestion library.
[0085] S03. Extract historical alarm text information from the historical alarm text information according to a preset sliding time window, determine the fault type label corresponding to each historical alarm text information, and build an alarm event sample library.
[0086] S04. Perform text preprocessing on the historical alarm text information to obtain a historical alarm text vector.
[0087] The disclosed embodiment can perform word segmentation and stop word removal on the historical alarm text information to obtain a historical alarm text word list, and then perform vectorization on the historical alarm text word list to obtain a historical alarm text vector.
[0088] S05. Input the historical alarm text vector into the LSTM algorithm model for classification prediction training to obtain a trained LSTM algorithm model.
[0089] Optional, combined Figure 5 The structural diagram of the LSTM algorithm model shown in FIG. 1 is a schematic diagram of the structure of the LSTM algorithm model. The specific process of performing classification prediction in the LSTM algorithm model in the embodiment of the present disclosure may include: the input of the LSTM is the vector of the alarm text, which is represented as x={X1,X2...X n}, n is the number of alarm information texts and the fault type classification mark y = {Y1, Y2}, Y1 indicates a fault, Y2 indicates no fault, such as array card fault, physical disk fault, etc. The "forget gate" controls the information of the "temporary memory unit" that can pass through the output of the previous moment and the current input information through the value generated by sigmoid (the value range is 0 to 1, 0 means no output at all, 1 means all output), and decides whether to let the information learned at the previous moment pass or partially pass. The "input gate" generally includes two layers: the tanh layer generates new candidate values (the value range is -1 to 1), and the output value of the sigmoid layer is multiplied by the output of the tanh layer to play a scaling role. The values generated by the outputs of the two layers are combined, unnecessary information is excluded and new information is added, the old "temporary memory unit" is updated, and a new cell state is generated. Tanh is used to compress the previously learned information to between -1 and 1, and then the final model output is determined by the sigmoid layer to obtain the predicted result, and it is determined whether the server corresponding to the alarm text information has a fault.
[0090] The disclosed embodiment uses a pre-trained LSTM algorithm model for classification prediction, and can accurately determine whether the server is faulty and the type of fault based on the current alarm text vector corresponding to the server, which helps to promptly discover server faults and provide a basis for timely and accurate provision of corresponding fault handling.
[0091] It is understandable that, in the case where it is determined that the server has not failed, the embodiment of the present disclosure can directly end the alarm processing.
[0092] S400: Determine a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type.
[0093] It is understandable that after determining the fault type, the preset alarm handling solution corresponding to the fault type classification mark corresponding to the fault type can be queried in the alarm handling suggestion library. Among them, the alarm handling solution is a solution to the fault pre-set according to the fault type. The alarm handling solution can be specifically set according to the needs, and the embodiment of the present disclosure does not limit the specific content of the alarm handling solution.
[0094] Optional, based on Figure 1 The method shown, such as Figure 6 As shown, a flow chart of another implementation of the server alarm processing method provided in an embodiment of the present disclosure is provided, and step S400 may include:
[0095] S410: Obtain a processing suggestion text vector of at least one preset alarm processing solution corresponding to the fault type from a pre-built alarm processing suggestion library.
[0096] Specifically, the disclosed embodiment can pre-process the text of the alarm handling solutions in the alarm handling suggestion library, obtain the handling suggestion text vector corresponding to each alarm handling file, and store the handling suggestion text vector in the alarm handling suggestion library.
[0097] S420: Calculate the cosine similarity between the current warning text vector and each treatment suggestion text vector.
[0098] Specifically, the embodiment of the present disclosure can be based on the formula:
[0099]
[0100] Calculate the cosine similarity, where i is the number of the proposed text vector; s i is the cosine similarity between the current warning text vector and the treatment suggestion text vector numbered i; m is the number of treatment suggestion text vectors; n is the number of ontology words (vector dimension); w j is the j-th dimension coordinate of the current warning text vector; w jiis the j-th dimension coordinate of the treatment suggestion text vector numbered i; the cosine similarities between the current alarm text vector and each treatment suggestion text vector are arranged from small to large to form an m-dimensional similarity vector S∈R1×m, which is specifically expressed as:
[0101] S=[s1,s2,...,s n ],s1≤...≤s i ≤...≤s n .
[0102] S430: Clustering the cosine similarities using a preset clustering algorithm to obtain a clustering result.
[0103] The preset clustering algorithm may be a K-Means algorithm.
[0104] The specific process of clustering the cosine similarities using the K-Means algorithm in the embodiment of the present disclosure may include: initializing the cluster center point C min , C mid and C max . Calculate each element s in the similarity vector S separately i With C min , C mid and C max Euclidean distance of: |s i -C min |、|s i -C mid | and |s i -C max |, find the minimum value, according to each element s i The cluster center point corresponding to the minimum value is respectively divided into each element s i Classify into the similarity set represented by the corresponding cluster center point. Update cluster center point: Find s min 、s mid and max The center of gravity is assigned to C min , C mid and C max . Re-cluster with the updated cluster center points, and execute the cycle until s min 、s mid and max All of them no longer change, thus completing the clustering.
[0105] S440: Determine a target alarm handling solution from at least one preset alarm handling solution according to the clustering result.
[0106] Specifically, the embodiment of the present disclosure can, according to the clustering result, i ∈s maxThe corresponding fault type is determined to be the currently occurring fault, and the alarm handling solution corresponding to the fault type is recommended as the first handling solution, that is, the solution that needs to be handled is given priority; i ∈s mid The corresponding fault type is determined as a fault that may be correlated at present, and the alarm handling solution corresponding to the fault type is recommended to be the second handling solution, that is, the handling solution that may be correlated; i ∈s min The corresponding fault type is determined to be a fault with low current correlation, and the recommended alarm handling solution corresponding to the fault type is the third handling solution, that is, the handling solution with low correlation.
[0107] The present disclosure provides a server alarm processing method, which can obtain the current alarm text information of the server; perform text preprocessing on the current alarm text information to obtain the current alarm text vector; input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the fault type of the server failure; at least according to the fault type, determine the target alarm handling solution in a pre-built alarm handling suggestion library. The present disclosure provides a target alarm handling solution for the alarm text information generated when the server fails, which helps to timely handle the server failure in an emergency, thereby improving the work efficiency of daily monitoring and accident abnormality handling of the server.
[0108] The disclosed embodiment can pre-set a corresponding automatically executable processing program for the alarm processing scheme. After determining the target alarm processing scheme, the processing program corresponding to the target alarm processing scheme is actively run or passively triggered to run to process the server.
[0109] Optionally, after determining the target alarm handling solution, the embodiment of the present disclosure may handle the server according to the target alarm handling solution.
[0110] The disclosed embodiment can eliminate server failures in a timely manner by automatically handling the server according to the target alarm handling plan, which is conducive to the normal operation of the server.
[0111] Optionally, after determining the target alarm handling solution, the embodiment of the present disclosure may recommend the target alarm handling solution to the target terminal for display.
[0112] Optionally, the embodiment of the present disclosure may also respond to a target trigger operation of a displayed target alarm handling solution by a user at a target terminal, and handle the server according to the target alarm handling solution.
[0113] The disclosed embodiment recommends the target alarm handling solution to the target terminal for display, so that the relevant operation and maintenance personnel can promptly learn of server failures through the target terminal and check whether the target alarm handling solution can correctly and effectively solve the failure, thereby ensuring that the server failure can be effectively handled.
[0114] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.
[0115] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0116] Corresponding to the above method embodiment, the present disclosure embodiment also provides a server alarm processing device, whose structure is as follows: Figure 7 As shown, it includes: a current alarm text information obtaining unit 100, a current alarm text vector obtaining unit 200, an alarm classification prediction unit 300 and a target alarm handling solution determining unit 400.
[0117] The current alarm text information obtaining unit 100 is used to obtain the current alarm text information of the server.
[0118] Optionally, the current alarm text information obtaining unit 100 is specifically used to obtain the current alarm text information in the operation data of the server according to a preset sliding time window.
[0119] The current warning text vector obtaining unit 200 is used to perform text preprocessing on the current warning text information to obtain a current warning text vector.
[0120] Optionally, the current alarm text vector obtaining unit 200 includes: a current alarm text word list obtaining subunit and a current alarm text vector obtaining subunit.
[0121] The current alarm text word list obtaining subunit is used to perform word segmentation and stop word removal on the current alarm text information to obtain the current alarm text word list.
[0122] The current alarm text vector obtaining subunit is used to perform vectorization processing on the current alarm text word list to obtain the current alarm text vector.
[0123] The alarm classification prediction unit 300 is used to input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails. If the server fails, the fault type of the server failure is determined.
[0124] The target alarm handling solution determining unit 400 is used to determine a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type.
[0125] Optionally, the target alarm handling solution determination unit 400 includes: a handling suggestion text vector acquisition subunit, a cosine similarity calculation subunit, a clustering subunit and a target alarm handling solution determination subunit.
[0126] The handling suggestion text vector obtaining subunit is used to obtain a handling suggestion text vector of at least one preset alarm handling solution corresponding to the fault type from a pre-built alarm handling suggestion library.
[0127] The cosine similarity calculation subunit is used to calculate the cosine similarity between the current warning text vector and each of the treatment suggestion text vectors.
[0128] The clustering subunit is used to cluster the cosine similarities using a preset clustering algorithm to obtain a clustering result.
[0129] The target alarm handling solution determination subunit is used to determine a target alarm handling solution from the at least one preset alarm handling solution according to the clustering result.
[0130] Optionally, the server alarm processing device may further include: a first processing unit.
[0131] The first handling unit is used for the target alarm handling solution determining unit 400 to handle the server according to the target alarm handling solution after determining the target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type.
[0132] Optionally, the server alarm processing device may further include: a disposal plan display unit.
[0133] The treatment plan display unit is used for the target alarm treatment plan determination unit 400 to recommend the target alarm treatment plan to the target terminal for display after determining the target alarm treatment plan in the pre-built alarm treatment suggestion library at least according to the fault type.
[0134] Optionally, the server alarm processing device may further include: a second processing unit.
[0135] The second handling unit is configured to handle the server according to the target alarm handling solution in response to a target triggering operation of the user on the target terminal on the displayed target alarm handling solution.
[0136] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0137] The server alarm processing device includes a processor and a memory. The above-mentioned current alarm text information acquisition unit 100, current alarm text vector acquisition unit 200, alarm classification prediction unit 300 and target alarm handling plan determination unit 400 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0138] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set. By adjusting the kernel parameters, the target alarm handling plan can be provided through the alarm text information generated when the server fails, which helps to handle the server failure in time, thereby improving the efficiency of daily monitoring and accident handling of the server.
[0139] The embodiment of the present disclosure provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the server alarm processing method is implemented.
[0140] An embodiment of the present disclosure provides a processor, which is used to run a program, wherein the server alarm processing method is executed when the program is running.
[0141] like Figure 8 As shown, the embodiment of the present disclosure provides an electronic device 1000, which includes at least one processor 1001, at least one memory 1002 connected to the processor 1001, and a bus 1003; wherein the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call the program instructions in the memory 1002 to execute the above-mentioned server alarm processing method. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0142] The present disclosure also provides a computer program product, which, when executed on an electronic device, is suitable for executing a program that initializes the steps of the server alarm processing method.
[0143] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, apparatuses, electronic devices (systems), and computer program products according to embodiments of the present disclosure. 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 device to generate a machine, so that the instructions executed by the processor of the computer or other programmable 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.
[0144] In a typical configuration, an electronic device includes one or more processors (CPU), a memory, and a bus. The electronic device may also include an input / output interface, a network interface, and the like.
[0145] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0146] 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 magnetic 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.
[0147] In the description of the present disclosure, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present disclosure.
[0148] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants 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 further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0149] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take 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.) containing computer-usable program code.
[0150] The above are only embodiments of the present disclosure and are not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.
Claims
1. A server alarm processing method, It is characterized in that include: Get the current alarm text information of the server; Performing text preprocessing on the current warning text information to obtain a current warning text vector; Input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the fault type of the server failure; At least according to the fault type, determining a target alarm handling solution in a pre-built alarm handling suggestion library; The step of determining a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type comprises: obtaining a handling suggestion text vector of at least one preset alarm handling solution corresponding to the fault type in the pre-built alarm handling suggestion library; calculating the cosine similarity between the current alarm text vector and each of the handling suggestion text vectors; clustering each of the cosine similarities using a preset clustering algorithm to obtain a clustering result; and determining a target alarm handling solution in the at least one preset alarm handling solution according to the clustering result, wherein the clustering result is used to characterize the correlation between different preset alarm handling solutions; The server is handled according to the target alarm handling plan.
2. The method according to claim 1, It is characterized in that After determining the target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type, the method further includes: The target alarm handling solution is recommended to the target terminal for display.
3. The method according to claim 2, It is characterized in that Also includes: In response to a target triggering operation of the user on the target terminal on the displayed target alarm handling solution, the server is handled according to the target alarm handling solution.
4. The method according to claim 1, It is characterized in that The obtaining of the current alarm text information of the server includes: According to the preset sliding time window, the current alarm text information is obtained in the operation data of the server.
5. The method according to claim 1, It is characterized in that The performing text preprocessing on the current warning text information to obtain a current warning text vector includes: Perform word segmentation and stop word removal on the current alarm text information to obtain a current alarm text word list; The current warning text word list is vectorized to obtain a current warning text vector.
6. A server alarm processing device, It is characterized in that include: A current alarm text information obtaining unit, a current alarm text vector obtaining unit, an alarm classification prediction unit, a target alarm handling scheme determining unit, and a first handling unit; The current alarm text information obtaining unit is used to obtain the current alarm text information of the server; The current warning text vector obtaining unit is used to perform text preprocessing on the current warning text information to obtain a current warning text vector; The alarm classification prediction unit is used to input the current alarm text vector into a pre-trained LSTM algorithm model for classification prediction to determine whether the server fails, and if the server fails, determine the fault type of the server failure; The target alarm handling solution determination unit is used to determine a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type; The step of determining a target alarm handling solution in a pre-built alarm handling suggestion library at least according to the fault type comprises: obtaining a handling suggestion text vector of at least one preset alarm handling solution corresponding to the fault type in the pre-built alarm handling suggestion library; calculating the cosine similarity between the current alarm text vector and each of the handling suggestion text vectors; clustering each of the cosine similarities using a preset clustering algorithm to obtain a clustering result; and determining a target alarm handling solution in the at least one preset alarm handling solution according to the clustering result, wherein the clustering result is used to characterize the correlation between different preset alarm handling solutions; The first handling unit is used to handle the server according to the target alarm handling solution.
7. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the server alarm processing method according to any one of claims 1 to 5 is implemented.
8. An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; in, The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the server alarm processing method according to any one of claims 1 to 5.
