Operation and maintenance method, electronic device and storage medium

The method addresses server data protection by classifying abnormal situations and prioritizing data backup and task handling, ensuring data integrity and continuity during emergencies.

CN118897760BActive Publication Date: 2024-12-06BEITANGWAN (TIANJIN) TECHNOLOGY DEVELOPMENT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411392675.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2024-12-06
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

Servers are expensive and data recovery from abnormal situations, such as fires, is complex and costly, with high environmental control requirements and potential for permanent data loss.

Method used

An operation and maintenance method that classifies abnormal situations into levels and performs targeted data backup and task handling based on the severity, using a neural network model to predict situation escalation and prioritize data transmission to backup servers.

Benefits of technology

Effectively protects server data by classifying and handling abnormal situations through multiple dimensions, ensuring data backup and task continuity with minimal resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897760B_ABST
    Figure CN118897760B_ABST
Patent Text Reader

Abstract

The present invention provides an operation and maintenance method, an electronic device and a storage medium, which relate to the field of intelligent operation and maintenance. The method comprises: obtaining a current abnormal situation characteristic value list of a target server, and obtaining the abnormal situation level of the target server based on the current abnormal situation characteristic value list, if the abnormal situation level is a preset first level, no processing is performed; if the abnormal situation level is a preset second level, the capacity of stored data of the target server is obtained, a designated server is determined based on the capacity of the stored data and the abnormal situation upgrade time, the stored data of the target server is sent to the designated server for backup, and, if the remaining time of the target task is less than the abnormal situation upgrade time, the target task is continued to be executed; if the abnormal situation level is a preset third level, the stored data of the target server is sent to a backup server for backup, so that the stored data of the target server can be protected as much as possible when an abnormal situation occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent operation and maintenance, and in particular to an operation and maintenance method, electronic equipment and storage medium. Background Art

[0002] At present, with the development of information technology, the demand and quantity of servers are growing continuously. Cloud computing technology enables enterprises to store data, run applications and provide services through remote server clusters, while eliminating the troubles of planning, construction and operation and maintenance management. However, at the same time, whether it is a remote server or not, the server is often expensive and the data recovery cost is extremely high. Therefore, the server generally has high requirements for the surrounding environment and is usually equipped with sophisticated environmental control systems, such as air conditioning and humidity control.

[0003] Abnormal situations such as fire may cause permanent loss of server data, which is disastrous for enterprises that rely on this data for daily operations. In addition, recovery work after a computer room fire is complex and time-consuming. Therefore, when an abnormal situation occurs on the server, it is crucial to properly protect the server's stored data. Summary of the invention

[0004] In view of the above technical problems, the technical solution adopted by the present invention is: an operation and maintenance method, the method is used to warn and process a target server in an abnormal situation, the method comprising the following steps:

[0005] S100, obtain the current abnormal situation feature value list B of the target server = {B 1 , B 2 , …, B j , …, B n} and obtain the abnormal situation level of the target server based on B, B j is the feature value of the jth preset feature corresponding to the current abnormal situation, the value range of j is 1 to n, and n is the number of preset features;

[0006] S200, if the abnormal situation level is the preset first level, no processing is performed;

[0007] S300: If the abnormal situation level is the preset second level, obtain the capacity C of the stored data of the target server. 0 , based on C 0 And abnormal situation upgrade time T 0 Determine the designated server and send the stored data of the target server to the designated server for backup, where T 0 is the time when the abnormal situation level is upgraded to the preset third level, and the designated server is a backup server of the target server;

[0008] And, if the remaining time of the target task T<T 0 , continue to execute the target task, if the remaining time of the target task T ≥ T 0 , send the target task to the designated server and send a priority execution instruction so that the designated server will preferentially execute the target task, wherein the target task is the task being executed by the target server, and the remaining time T of the target task is the time until the target task is completed under the current abnormal situation;

[0009] S400, if the abnormal situation level is the preset third level, the stored data of the target server is sent to the backup server for backup, wherein the preset first level corresponds to the lowest abnormality level, and the preset third level corresponds to the highest abnormality level.

[0010] According to another aspect of the present invention, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned method.

[0011] According to yet another aspect of the present invention, an electronic device is provided, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0012] The present invention has at least the following beneficial effects: In summary, a current abnormal situation characteristic value list of the target server is obtained, and the abnormal situation level of the target server is obtained based on the current abnormal situation characteristic value list. If the abnormal situation level is the preset first level, no processing is performed; if the abnormal situation level is the preset second level, the capacity of the stored data of the target server is obtained, and the designated server is determined based on the capacity of the stored data and the abnormal situation upgrade time, and the stored data of the target server is sent to the designated server for backup, and if the remaining time of the target task is less than the abnormal situation upgrade time, the target task continues to be executed; if the abnormal situation level is the preset third level, the stored data of the target server is sent to the backup server for backup; the present invention classifies the current abnormal situation through multiple dimensions, and handles abnormal situations of different levels differently to ensure that when an abnormal situation occurs, the target task of the target server is reasonably processed, and the data stored on the target server is protected as much as possible when an abnormal situation occurs. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0014] Figure 1 A flowchart of an operation and maintenance method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0015] 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0016] The embodiment of the present invention provides an operation and maintenance method, which is used to warn and process a target server in an abnormal situation, such as Figure 1 As shown, the method comprises the following steps:

[0017] S100, obtain the current abnormal situation feature value list B of the target server = {B 1 , B 2 , …, B j , …, B n} and obtain the abnormal situation level of the target server based on B, B j is the feature value of the jth preset feature corresponding to the current abnormal situation. The value range of j is 1 to n, and n is the number of preset features.

[0018] In one embodiment of the present invention, n=8; when n=8, the preset characteristics include: current temperature, heating rate, environmental image characteristics, temperature difference with the set temperature, temperature difference with the temperature of the previous 1s, current humidity, humidity drop rate, and oxygen content.

[0019] Furthermore, before S100, it also includes: acquiring the environment image of the target server in real time, and executing S100 if the environment image of the target server shows preset key features; specifically, the preset key features can be set according to actual conditions; it can be understood that when the environment image of the target server shows preset key features, it is considered that an abnormal situation occurs in the environment where the target server is located.

[0020] S200: If the abnormal situation level is the preset first level, no processing is performed.

[0021] Specifically, when the abnormal situation level is the preset first level, it is considered that the current abnormal situation does not pose a danger, and the target server is not processed.

[0022] S300: If the abnormal situation level is the preset second level, obtain the capacity C of the stored data of the target server. 0 , based on C 0 And abnormal situation upgrade time T0 Determine the designated server and send the stored data of the target server to the designated server for backup, where T 0 is the time when the abnormal situation level is upgraded to the preset third level, and the designated server is a backup server of the target server;

[0023] And, if the remaining time of the target task T<T 0 , continue to execute the target task, if the remaining time of the target task T ≥ T 0 , send the target task to the designated server and send a priority execution instruction so that the designated server will prioritize the target task, where the target task is the task being executed by the target server, and the remaining time T of the target task is the time until the target task is completed under the current abnormal situation.

[0024] It can be understood that if the remaining time of the target task T ≥ T 0 This means that the target task cannot be completed on the target server. Therefore, the target task is sent to the designated server and the designated server is given priority to execute the target task to ensure the experience of the target task object.

[0025] Specifically, when the abnormal situation level is the preset second level, it is considered that the current abnormal situation is dangerous, and it is necessary to urgently determine whether the task being executed can be completed and to back up the stored data of the target server.

[0026] Specifically, when the abnormal situation level is the preset second level, it is considered that the current abnormal situation is dangerous, but has not reached the highest danger level. There is still a certain amount of time for processing and backup. The designated server is determined based on the capacity of the stored data of the target server, rather than directly backing up to the backup server. Therefore, it is ensured that as few backup servers as possible are used when the backup is completed.

[0027] S400: If the abnormal situation level is the preset third level, the stored data of the target server is sent to the backup server for backup.

[0028] Specifically, when the abnormal situation level is the preset third level, it is considered that the current abnormal situation is already in a very dangerous state, and the stored data of the target server is immediately sent to the backup server for backup.

[0029] Furthermore, the stored data of the target server is prioritized, and the stored data is sent to the backup server in order of priority from high to low for backup; thereby ensuring that the stored data with high priority is backed up.

[0030] In summary, a current abnormal situation characteristic value list of the target server is obtained, and the abnormal situation level of the target server is obtained based on the current abnormal situation characteristic value list. If the abnormal situation level is the preset first level, no processing is performed; if the abnormal situation level is the preset second level, the capacity of the stored data of the target server is obtained, and the designated server is determined based on the capacity of the stored data and the abnormal situation upgrade time, and the stored data of the target server is sent to the designated server for backup, and if the remaining time of the target task is less than the abnormal situation upgrade time, the target task continues to be executed; if the abnormal situation level is the preset third level, the stored data of the target server is sent to the backup server for backup; the present invention classifies the current abnormal situation through multiple dimensions, and handles abnormal situations of different levels differently to ensure that when an abnormal situation occurs, the target task of the target server is reasonably handled, and the data stored on the target server is protected as much as possible when an abnormal situation occurs.

[0031] Specifically, in S300, based on C 0 And abnormal situation upgrade time T 0 Determine the designated server, send the stored data of the target server to the designated server for backup, and also include:

[0032] S310, obtaining a data transmission rate.

[0033] Specifically, those skilled in the art know that any method of obtaining data transmission rate in the prior art falls within the protection scope of the present invention, such as obtaining the average value of the transmission rate of historical data as the data transmission rate, or using transmission bandwidth and transmission fluctuation to obtain the data transmission rate.

[0034] S320, based on data transfer rate and C 0 , determine the target quantity q.

[0035] Specifically, based on the capacity C of the stored data 0 and data transmission efficiency, obtaining the target quantity so that the target server can be multi-path backed up to multiple backup servers.

[0036] S330, determining q designated servers based on the distance between each backup server and the target server, wherein the q designated servers are all from the backup servers.

[0037] In one embodiment of the present invention, the distance between each backup server and the target server is obtained, the distances are sorted from small to large, and the backup servers corresponding to the first q sorted distances are used as designated servers. It is known to those skilled in the art that selecting designated servers based on other existing factors is also within the protection scope of the present invention. For example, the operating parameters of the server, the load size, etc., can all be considered factors.

[0038] S340, prioritize the stored data of the target server, and send the stored data to the designated server in descending order of priority for backup.

[0039] Specifically, when the number of designated servers is equal to the number of backup servers, and the stored data of the target server still cannot be 0 When the internal transmission is completed, the stored data with high priority will be backed up to the designated server first, and the stored data with low priority will be discarded.

[0040] In summary, the data transmission rate is obtained, and the number of backup servers required is determined based on the data transmission rate and the capacity of the stored data. The designated server is determined based on the distance between the backup server and the target server, and the stored data of the target server is prioritized. The stored data is sent to the designated server in order of priority for backup. While ensuring that the stored data can be backed up, the present invention gives priority to using designated servers that are close to minimize resource consumption, and sends the stored data to the designated server in order from high to low priority to ensure that the stored data with high priority is backed up first.

[0041] Furthermore, S300 also includes obtaining the remaining time T of the target task through the following steps:

[0042] S3001, obtaining a temperature-performance correspondence table, wherein the temperature-performance correspondence table is a performance coefficient of a target server at different temperatures.

[0043] Specifically, those skilled in the art know that as the temperature increases, the server processing performance will gradually decrease, so a temperature-performance correspondence relationship is obtained, wherein the temperature-performance correspondence relationship can be obtained based on historical data.

[0044] S3002: Obtain a performance coefficient of the target server based on a temperature value of the target server and a temperature-performance correspondence relationship.

[0045] S3003, obtaining the target task completion time, and obtaining the target task remaining time T based on the target task completion time and the performance coefficient of the target server, wherein the target task completion time is the time until the target task is completed under normal circumstances.

[0046] In summary, the temperature-performance correspondence is obtained, and the performance coefficient of the target server is obtained based on the temperature value of the target server and the temperature-performance correspondence, the target task completion time is obtained, and the remaining time of the target task is obtained based on the target task completion time and the performance coefficient of the target server. The present invention uses the temperature-performance correspondence to more accurately obtain the target task completion time to ensure the experience of the target task object.

[0047] Furthermore, S100 also includes: inputting the current abnormal situation feature value list B of the target server into the target neural network model to obtain the abnormal situation level, abnormal situation upgrade probability, abnormal situation upgrade time T 0 .

[0048] Furthermore, the target neural network model is obtained through the following steps:

[0049] S001, obtain the historical abnormal situation information list set A={A 1 , A 2 , …, A i , …, A m}, the i-th historical abnormal situation information list A i ={A i1 , A i2 , A i3 , A i4}, A i1 ={A i11 , A i12 , …, A i1j , …, A i1n}, A i1j is the characteristic value of the jth preset characteristic of the i-th historical abnormal situation, A i2 is the abnormality level of the i-th historical abnormality, A i3 is the probability of abnormal situation escalation of the i-th historical abnormal situation, A i4 is the abnormal situation upgrade time of the i-th historical abnormal situation, where A i2 When the third level is preset, A i3 =A i4 =0, the value range of i is 1 to m, and m is the number of historical abnormal situation information lists.

[0050] S002, use the historical abnormal situation information list set A to train the preset neural network model, and obtain the trained preset neural network model as the target neural network model.

[0051] In summary, a historical abnormal situation information list set is obtained, and a preset neural network model is trained using the historical abnormal situation information list set A, and the trained preset neural network model is obtained as a target neural network model.

[0052] Furthermore, the present invention further comprises in S002: during the training process, A i2 Use the first intermediate feature list for training, A i3 Use the second intermediate feature list for training, A i4 The third intermediate feature list is used for training, wherein the first intermediate feature list contains a plurality of first intermediate features, the second intermediate feature list contains a plurality of second intermediate features, and the third intermediate feature list contains a plurality of third intermediate features, and the first intermediate features, the second intermediate features, and the third intermediate features are all from preset features. It can be understood that different features are used for different prediction results to make the prediction results more accurate.

[0053] Specifically, the second intermediate characteristic includes at least: the temperature difference from the set temperature, the temperature difference from the temperature of the previous second, the humidity drop rate, and the oxygen content.

[0054] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.

[0055] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0056] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. An operation and maintenance method, the method is used to warn and handle a target server in an abnormal situation, characterized in that: The method comprises the following steps: S100, obtaining a list of characteristic values ​​of the current abnormal situation of the target server B={B1, B2, ..., B j , …, B n } and obtain the abnormal situation level of the target server based on B, B j is the feature value of the jth preset feature corresponding to the current abnormal situation, the value range of j is 1 to n, and n is the number of preset features; S200, if the abnormal situation level is the preset first level, no processing is performed; S300, if the abnormal situation level is the preset second level, obtain the capacity C0 of the stored data of the target server, determine the designated server based on C0 and the abnormal situation upgrade time T0, and send the stored data of the target server to the designated server for backup, wherein T0 is the time when the abnormal situation level is upgraded to the preset third level, and the designated server is a backup server of the target server; Furthermore, if the remaining time of the target task T<T0, the target task will continue to be executed; if the remaining time of the target task T≥T0, the target task will be sent to the designated server, and a priority execution instruction will be sent, so that the designated server will preferentially execute the target task, wherein the target task is the task being executed by the target server, and the remaining time of the target task T is the time until the target task is completed under the current abnormal situation; S400, if the abnormal situation level is the preset third level, the stored data of the target server is sent to the backup server for backup, wherein the preset first level corresponds to the lowest abnormality level, and the preset third level corresponds to the highest abnormality level.

2. The operation and maintenance method according to claim 1, characterized in that: n=8。 3. The operation and maintenance method according to claim 2, characterized in that: The preset features include: current temperature, heating rate, environmental fire image features, temperature difference with the set temperature, temperature difference with the temperature of the previous second, current humidity, humidity drop rate, and oxygen content.

4. The operation and maintenance method according to claim 1, characterized in that: In S300, a designated server is determined based on C0 and the abnormal situation upgrade time T0, and the stored data of the target server is sent to the designated server for backup, which also includes: S310, obtaining data transmission rate; S320, determining a target quantity q based on the data transmission rate and C0; S330, determining q designated servers based on the distance between each backup server and the target server, wherein the q designated servers are all from the backup servers; S340, prioritize the stored data of the target server, and send the stored data to the designated server in descending order of priority for backup.

5. The operation and maintenance method according to claim 1, characterized in that: S100 also includes: inputting the current abnormal situation feature value list B of the target server into the target neural network model to obtain the abnormal situation level, abnormal situation escalation probability, and abnormal situation escalation time T0.

6. The operation and maintenance method according to claim 5, characterized in that: Obtain the target neural network model through the following steps: S001, obtain the historical abnormal situation information list set A={A1, A2, ..., A i , …, A m }, the i-th historical abnormal situation information list A i ={A i1 , A i2 , A i3 , A i4 }, A i1 ={A i11 , A i12 , …, A i1j , …, A i1n }, A i1j is the characteristic value of the jth preset characteristic of the i-th historical abnormal situation, A i2 is the abnormality level of the i-th historical abnormality, A i3 is the probability of abnormal situation escalation of the i-th historical abnormal situation, A i4 is the abnormal situation upgrade time of the i-th historical abnormal situation, where A i2 When the third level is preset, A i3 =A i4 =0, the value range of i is 1 to m, and m is the number of historical abnormal situation information lists; S002, use the historical abnormal situation information list set A to train the preset neural network model, and obtain the trained preset neural network model as the target neural network model.

7. The operation and maintenance method according to claim 1, characterized in that: S400 also includes: classifying the stored data of the target server into priorities, and sending the stored data to the backup server in order of priority from high to low for backup.

8. The operation and maintenance method according to claim 3, characterized in that: S300 also includes obtaining the remaining time T of the target task through the following steps: S3001, obtaining a temperature-performance correspondence table, wherein the temperature-performance correspondence table is a performance coefficient of a target server at different temperatures; S3002, obtaining a performance coefficient of the target server based on a temperature value of the target server and a temperature-performance correspondence relationship; S3003, obtaining the target task completion time, and obtaining the target task remaining time T based on the target task completion time and the performance coefficient of the target server, wherein the target task completion time is the time until the target task is completed under normal circumstances.

9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the operation and maintenance method as described in any one of claims 1-8.

10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.

Citation Information

Patent Citations

  • Fault processing method based on task scheduling

    CN106528276A

  • Intelligent television software roll-back method, intelligent television and storage medium

    CN107220080A

  • Fault processing method and device

    CN112256498A

  • Safety monitoring device and method of auxiliary driving system, computer equipment and medium

    CN116880265A

  • Server fault detection method and device based on artificial intelligence, equipment and medium

    CN117608974A