A process early warning method and device, electronic equipment and storage medium

CN115774646BActive Publication Date: 2026-08-07INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2022-11-03
Publication Date
2026-08-07

AI Technical Summary

Benefits of technology

本发明实施例中,通过设置监控时间段,并从在先的时间段中确定监控时间段对应参考时间段,基于参考时间段内BMC系统的各个进程对应的第一历史运行数据,分别确定参考时间段内各个进程的第一参考使用率信息,在监控时间段内监控各个进程并获取当前各个进程的第一使用率信息,根据当前各个进程的第一使用率信息和各个进程第一参考使用率信息,判断所述BMC系统是否满足预警条件,并在满足预警条件时进行预警处理。从而可以通过当前各个进程的第一使用率信息和各个进程第一参考使用率信息,提前预测出在监控时间段内BMC系统是否满足预警条件,并在满足预警条件时进行预警处理,保证BMC系统运行的稳定。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115774646B_ABST
    Figure CN115774646B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a process early warning method, device and equipment and a storage medium. The method is applied to a server, the server has a baseboard management controller (BMC) system, and the method comprises the following steps: determining first reference usage rate information of each process in a reference time period based on first historical running data corresponding to each process of the BMC system in the reference time period; monitoring each process in a monitoring time period and obtaining first usage rate information of each process in the monitoring time period; judging whether the BMC system meets an early warning condition according to the first usage rate information of each process in the monitoring time period and the first reference usage rate information of each process; and performing early warning processing when the early warning condition is met. Thus, whether the BMC system meets the early warning condition in the monitoring time period can be predicted in advance according to the first usage rate information of each process in the monitoring time period and the first reference usage rate information of each process, and early warning processing is performed when the early warning condition is met, thereby ensuring the stability of the BMC system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server technology, and in particular to a process warning method, a process warning device, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the development of big data on the Internet, the market demand for servers is increasing, and the requirements for server stability are also becoming higher. As a result, the BMC (Baseboard Management Controller) system, which monitors and manages the stable state of the server system, is becoming more and more important. Therefore, how to ensure the stability of the BMC system is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a process early warning method, a process early warning device, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.

[0004] To address the aforementioned problems, this invention discloses a process early warning method. This method is applied to a server, which has a Baseboard Management Controller (BMC) system. The method includes: Set the monitoring time period and determine the corresponding reference time period from the prior time periods; Obtain the first historical running data corresponding to each process of the BMC system within the reference time period; Based on the first historical running data corresponding to each process within the reference time period, the first reference utilization information of each process within the reference time period is determined respectively; the first historical running data includes CPU utilization and / or memory utilization. During the monitoring period, monitor each process and obtain the first utilization information of each process at present; Based on the first utilization information of each process and the first reference utilization information of each process, it is determined whether the BMC system meets the warning conditions, and warning processing is performed when the warning conditions are met.

[0005] Optionally, determining the reference time period corresponding to the monitoring time period from prior time periods includes: Obtain the time attributes of the monitored time period; the time attributes include holidays, weekdays, and event days. Based on the time attribute, the reference time period corresponding to the monitoring time period is selected from the prior time periods.

[0006] Optionally, the first reference utilization information includes a first utilization change curve, and the step of determining the first reference utilization information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period includes: The first historical running data corresponding to each process within the reference time period is filtered to obtain the first target historical running data corresponding to each process within the reference time period. Based on the historical operating data of the first target, determine the first utilization rate change curve of each process within the reference time period.

[0007] Optionally, determining whether the BMC system meets the early warning conditions based on the first utilization information of each process and the first reference utilization information of each process includes: Based on the first utilization rate change curve of each process within the reference time period, the slope of the first curve corresponding to each process and multiple preset time points within the reference time period is calculated. Based on the current time point, a target preset time point corresponding to the current time point is determined from multiple preset time points, and based on the target time point and the slope of the first curve corresponding to the target time point, the slope of the first target curve corresponding to each of the current processes is determined. Based on the first utilization information of each process and the slope of the corresponding first target curve, it is determined whether the BMC system meets the early warning conditions.

[0008] Optionally, determining whether the BMC system meets the early warning conditions based on the first utilization information of each process and the corresponding slope of the first target curve includes: Based on the current time point, the end time point of the monitoring period, the first utilization rate information of each process, the slope of the first target curve corresponding to each process, and the slope function relationship, the maximum utilization rate of each process within the monitoring period is calculated. If the maximum utilization rate of each process during the monitoring period is greater than the first preset utilization rate, then the BMC system meets the early warning conditions.

[0009] Optionally, after setting the monitoring time period and determining the reference time period corresponding to the monitoring time period from the prior time periods, the method further includes: Obtain the second historical operating data of the BMC system within the reference time period; the second historical operating data includes CPU utilization and / or memory utilization. Based on the second historical operating data, calculate the second reference utilization rate information of the BMC system within the reference time period; Monitor the BMC system during the monitoring period and obtain the current second utilization information of the BMC system; Based on the current second usage rate information and the second reference usage rate information, determine whether the BMC system meets the early warning conditions, and perform early warning processing when the early warning conditions are met.

[0010] Optionally, the second reference utilization information includes a second utilization rate change curve, and the step of calculating the second reference utilization information of the BMC system within the reference time period based on the second historical operating data includes: The second historical operation data is filtered to obtain the second target historical operation data of the BMC system within the reference time period; The second utilization rate change curve of the BMC system within the reference time period is calculated based on the historical operating data of the second target.

[0011] This invention discloses a process early warning device applied to a server, the server having a Baseboard Management Controller (BMC) system, the device comprising: The first determining module is used to set the monitoring time period and determine the reference time period corresponding to the monitoring time period from the prior time periods; The first acquisition module is used to acquire the first historical running data corresponding to each process of the BMC system within the reference time period; the first historical running data includes CPU utilization and / or memory utilization. The second determining module is used to determine the first reference utilization rate information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period. The first monitoring module is used to monitor each process during the monitoring time period and obtain the first utilization information of each process at present. The first early warning module is used to determine whether the BMC system meets the early warning conditions based on the first utilization information of each process and the first reference utilization information of each process, and to perform early warning processing when the early warning conditions are met.

[0012] Optionally, the first determining module includes: The acquisition submodule is used to acquire the time attributes of the monitoring time period; the time attributes include holidays, weekdays, and event days. The filtering submodule is used to filter out the reference time period corresponding to the monitoring time period from the prior time periods based on the time attribute.

[0013] Optionally, the first reference utilization information includes a first utilization change curve, and the second determining module includes: The first filtering submodule is used to filter the first historical running data corresponding to each process within the reference time period to obtain the first target historical running data corresponding to each process within the reference time period. The first determining submodule is used to determine the first utilization rate change curve of each process within the reference time period based on the historical running data of the first target.

[0014] Optionally, the first early warning module includes: The first calculation submodule is used to calculate the slope of the first curve corresponding to multiple preset time points for each process within the reference time period based on the first utilization rate change curve of each process within the reference time period. The second determining submodule is used to determine a target preset time point corresponding to the current time point from a plurality of preset time points based on the current time point, and to determine the slope of the first target curve corresponding to each of the current processes based on the target time point and the slope of the first curve corresponding to the target time point. The first judgment submodule is used to determine whether the BMC system meets the early warning conditions based on the first utilization information of each process and the slope of the corresponding first target curve.

[0015] Optionally, the first early warning module includes: The second calculation submodule is used to calculate the maximum utilization rate of each process within the monitoring period based on the current time point, the end time point of the monitoring period, the first utilization rate information of each process, the slope of the first target curve corresponding to each process, and the slope function relationship. The second judgment submodule is used to determine if the maximum utilization rate of each process within the monitoring time period is greater than the first preset utilization rate, in which case the BMC system meets the early warning condition.

[0016] Optionally, the device further includes: The second acquisition module is used to acquire the second historical operating data of the BMC system within the reference time period; the second historical operating data includes CPU utilization and / or memory utilization. The third determining module is used to determine the second reference utilization rate information of the BMC system within the reference time period based on the second historical operation data. The second monitoring module is used to monitor the BMC system during the monitoring time period and obtain the current second utilization information of the BMC system. The second early warning module is used to determine whether the BMC system meets the early warning conditions based on the current second usage rate information and the second reference usage rate information, and to perform early warning processing when the early warning conditions are met.

[0017] Optionally, the second reference utilization information includes a second utilization change curve, and the third determining module includes: The second filtering submodule is used to filter the second historical operation data to obtain the second target historical operation data of the BMC system within the reference time period; The third determining submodule is used to determine the second utilization rate change curve of the BMC system within the reference time period based on the historical operating data of the second target.

[0018] The present invention also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described process warning method.

[0019] The present invention also discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the above-described process warning method.

[0020] The embodiments of the present invention have the following advantages: In this embodiment of the invention, a monitoring time period is set, and a reference time period corresponding to the monitoring time period is determined from the previous time periods. Based on the first historical running data corresponding to each process of the BMC system within the reference time period, the first reference utilization information of each process within the reference time period is determined. Each process is monitored within the monitoring time period, and the current first utilization information of each process is obtained. Based on the current first utilization information and the first reference utilization information of each process, it is determined whether the BMC system meets the early warning conditions, and early warning processing is performed when the early warning conditions are met. Therefore, by using the current first utilization information and the first reference utilization information of each process, it is possible to predict in advance whether the BMC system will meet the early warning conditions within the monitoring time period, and to perform early warning processing when the early warning conditions are met, ensuring the stable operation of the BMC system. Attached Figure Description

[0021] Figure 1 This is a flowchart of the steps of a process early warning method provided in an embodiment of the present invention; Figure 2 This is a flowchart of another process early warning method provided in an embodiment of the present invention; Figure 3 This is a structural block diagram of a process early warning device provided in an embodiment of the present invention. Detailed Implementation

[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0023] As BMC systems become increasingly important, ensuring their stability is a key technical problem that those skilled in the art need to address. To solve this problem, this invention provides a process early warning method. The core concept involves calculating the first reference utilization rate information for each process within a reference time period using historical operational data of each process in the BMC system. Then, based on this first reference utilization rate information and the current utilization rate of each process, the method determines whether the BMC system meets the early warning conditions and, if so, initiates an early warning process.

[0024] Reference Figure 1 The diagram illustrates a process early warning method according to an embodiment of the present invention. The method is applied to a server, which has a Baseboard Management Controller (BMC) system. The real-time method may specifically include the following steps: Step 101: Set the monitoring time period and determine the reference time period corresponding to the monitoring time period from the existing time periods.

[0025] The server in this embodiment of the invention may have a BMC system. When the BMC system is running, the running data of each process in the BMC system can be monitored, or all running data of the BMC system can be monitored directly. The monitored running data can be recorded and stored in the BMC memory. In this application, the BMC system can be monitored by the top command or the ps command, or by viewing the process information in the proc file in the BMC system. The specific monitoring method is not specifically limited in this application.

[0026] When monitoring and issuing early warnings for a BMC system, this invention allows for the initial setting of a monitoring time period. A reference time period is then determined from existing time periods. In one example, the time attribute of the monitoring time period is first obtained, and then the reference time period is selected from existing time periods based on this attribute. The time attribute can include holidays, weekdays, and event days. For instance, if the monitoring time period is set to 12:00 to 20:00, and the existing time period is set to 5 days, and the time attribute of the monitoring time period is obtained as weekdays, then 3 out of the 5 days preceding the monitoring time period are identified as weekdays. The time period from 12:00 to 20:00 within these 3 weekdays is then determined as the reference time period. If the time attribute of the monitored period is an activity day, then the activity day is selected from the prior time periods based on the time attribute of the activity day. The period from 12:00 to 20:00 on the activity day is determined as the reference period. This is because the usage rate of each process is generally higher on activity days than on weekdays or holidays, and the usage rate curves of each process will also be significantly different on activity days compared to weekdays or holidays. Therefore, this application can better determine the reference period by using the time attribute, thereby determining more accurate historical operating data and avoiding erroneous warnings caused by inaccurate operating data determined due to different time attributes.

[0027] Step 102: Obtain the first historical running data corresponding to each process of the BMC system within the reference time period; the first reference utilization information includes CPU utilization and / or memory utilization.

[0028] In this embodiment of the invention, after determining the reference time period corresponding to the monitoring time period, the first historical running data corresponding to each process of the BMC system within the reference time period is obtained. The processes of the BMC system may include: ipmimain process, SensorMonitor process, fault diagnosis process, etc. The first historical running data may include CPU utilization and / or memory utilization. In one example, the first historical running data corresponding to each process of the BMC system within the reference time period can be obtained from the running data pre-recorded and stored in the BMC memory.

[0029] Step 103: Calculate the first reference utilization rate information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period.

[0030] In this embodiment of the invention, after obtaining the first historical running data corresponding to each process within a reference time period, the first reference utilization information of each process within the reference time period can be calculated based on the first historical running data. The first reference utilization information may include a first utilization change curve. In one example, the first historical data corresponding to each process within the reference time period can be filtered to obtain the first target historical running data corresponding to each process within the reference time period. During the filtering process, abnormal data can be removed. For example, the first historical running data may show instances of suddenly high or low utilization rates that subsequently return to normal. These instances of suddenly high or low utilization rates can be removed, and the remaining historical running data is determined as the first target historical running data. Then, the first utilization change curve of each process within the reference time period is determined based on the first historical running data. In this application, the CPU utilization and / or memory utilization corresponding to each process within the reference time period can be fitted to obtain the first CPU and / or memory utilization change curves corresponding to each process within the reference time period. This application filters the first historical operating data, which makes the determined first utilization rate change curve more accurate, so that when this application performs early warning processing based on the first utilization rate change curve, it can perform early warning processing more correctly.

[0031] Step 104: Monitor each process during the monitoring period and obtain the first utilization information of each process at present.

[0032] In this embodiment of the invention, each process can be monitored within a monitoring time period, and the first utilization information of each process can be obtained.

[0033] Step 105: Based on the first utilization rate information of each process and the first reference utilization rate information of each process, determine whether the BMC system meets the early warning conditions, and perform early warning processing when the early warning conditions are met.

[0034] In this embodiment of the invention, the system can determine whether the BMC system currently meets the early warning conditions based on the first utilization information and the first reference utilization information of each process. If the BMC system early warning conditions are met, early warning processing is performed. During early warning processing, alarms can be recorded to notify maintenance personnel to take preventative measures for the BMC system in advance.

[0035] In one example, determining whether the BMC system meets the warning conditions can be done through the following specific process: Based on the first utilization rate change curve of each process within a reference time period, calculate the slope of the first curve corresponding to each process and multiple preset time points within the reference time period. Based on the current time point, determine the target preset time point corresponding to the current time point from the multiple preset time points. Based on the target time point and the slope of the first curve corresponding to the target time point, determine the slope of the first target curve corresponding to each current process. Based on the first utilization rate information of each current process and the corresponding slope of the first target curve, determine whether the BMC system meets the warning conditions. The preset time points can be set according to a preset time period or a preset fixed time point. The shorter the preset time period, the more frequently the corresponding first curve slope is calculated, and the more accurate the warning can be when issuing warnings based on the slope of the first curve. For example: The current time is 15:03:30. Within the reference time period of the BMC system, there are processes A, B, and C. The first utilization rate change curves corresponding to processes A, B, and C are A1, B1, and C1, respectively. The slope of the first utilization rate change curve is calculated at a preset time point, with one cycle per second. Then, the slopes of the first curves corresponding to A1, B1, and C1 at 15:03:30 within the reference time period can be calculated as A2, B2, and C2, respectively. Therefore, the time point of 15:03:30 within the reference time period can be used as the reference point relative to the current time point 15:03. With a target preset time point of 30 seconds, the slopes A2, B2, and C2 of the first curves corresponding to each process at 15:03:30 within the reference time period can be determined as the slopes of the first target curves for the current processes A, B, and C, respectively. Then, based on the first utilization information of processes A, B, and C at the current time and the slopes A2, B2, and C2, it can be determined whether processes A, B, and C meet the warning conditions. If process A meets the warning conditions, the BMC system meets the warning conditions and performs warning processing, outputting relevant warning information for process A during the warning processing. In this way, the slope of the first target curve can be used to predict the changing trend of the utilization rate of each process within the monitoring time period, thereby achieving the effect of early warning.

[0036] In one example, based on the current first utilization rate information of each process and the corresponding slope of the first target curve, it is determined whether the BMC system meets the early warning conditions. This can be done through the following specific process: Based on the current time point, the end time point of the monitoring period, the current first utilization rate information of each process, the slope of the first target curve corresponding to each process, and the slope function relationship, the maximum utilization rate corresponding to each process within the monitoring period is calculated. If the maximum utilization rate corresponding to each process within the monitoring period is greater than the first preset utilization rate, then the BMC system meets the early warning conditions. For example, the slope function relationship is y=kx+b, where y is the utilization rate corresponding to each process at the end time point within the monitoring period, k is the slope of the first target curve corresponding to each process, x is the difference between the end time point and the current time point within the monitoring period, b is the first utilization rate information of each process at the current time point, the first preset utilization rate is 80%, the slopes of the first target curves corresponding to current processes A, B, and C are 5, 10, and 15 respectively, when the current time point is 15 and the end time point is 20, the first utilization rate information corresponding to current processes A, B, and C is 10% and 11% respectively. If we calculate the utilization rates of processes A, B, and C at the end time as 35%, 61%, and 87%, respectively, then we can determine that the maximum utilization rate of each process at the end time is 12%. Since the maximum utilization rate of processes A, B, and C is 35%, 61%, and 87%, respectively, and process C's utilization rate is greater than the first preset utilization rate, the BMC meets the warning condition and triggers a warning. Warnings can also be triggered specifically for process C within the BMC system, allowing maintenance personnel to take preventative measures. This application can predict the maximum utilization rate of each process within the monitoring period based on the current first utilization rate information and the corresponding first target curve slope, thus enabling early warnings based on the predicted maximum utilization rate.

[0037] In this embodiment of the invention, based on the first historical running data corresponding to each process of the BMC system and the first utilization information of each process at present, it can predict in advance whether the BMC system will meet the warning conditions within the monitoring time, and perform warning processing when the warning conditions are met, so as to ensure the stable operation of the BMC system.

[0038] Reference Figure 2 The diagram illustrates a flowchart of another process early warning method provided by an embodiment of the present invention. The method is applied to a server, which has a Baseboard Management Controller (BMC) system. The real-time method may specifically include the following steps: Step 201: Set the monitoring time period and determine the reference time period corresponding to the monitoring time period from the existing time periods.

[0039] Step 201 is the same as step 101 in the embodiment, and will not be described again here.

[0040] Step 202: Obtain the second historical operating data of the BMC system within the reference time period; the second historical operating data includes CPU utilization and / or memory utilization.

[0041] In this embodiment of the invention, after determining the reference time period corresponding to the monitoring time period, the second historical operating data of the BMC system within the reference time period is obtained. The second historical operating data of the BMC system can be the historical operating data of all processes in the BMC system, or it can be other historical operating data besides those of processes within the BMC. The second historical operating data may include CPU utilization and / or memory utilization. In one example, the second historical operating data of the BMC system within the reference time period can be obtained from the operating data pre-recorded and stored in the BMC memory.

[0042] Step 203: Based on the second historical operating data, determine the second reference utilization rate information of the BMC system within the reference time period.

[0043] In this embodiment of the invention, after obtaining the second historical operating data of the BMC system within a reference time period, the second reference utilization rate information of the BMC system within the reference time period can be calculated based on the second historical operating data of the BMC system within the reference time period. The second reference utilization rate information may include a second utilization rate change curve. In one example, the second historical data of the BMC system within the reference time period can be filtered to obtain the second target historical operating data of the BMC system within the reference time period. During the filtering process, abnormal data can be removed from the second historical operating data, and then the second utilization rate change curve of the BMC system within the reference time period can be determined based on the second historical operating data. In this application, the CPU utilization rate and / or memory utilization rate of the BMC system within the reference time period can be fitted to obtain the first utilization rate change curve of the BMC system within the reference time period. The filtering process of the second historical operating data in this application makes the determined second utilization rate change curve more accurate, enabling the application to more correctly perform early warning processing when performing early warning processing based on the second utilization rate change curve.

[0044] Step 204: Monitor the BMC system during the monitoring period and obtain the second utilization information of the current BMC system.

[0045] In this embodiment of the invention, the BMC system can be monitored during the monitoring period, and the second utilization information of the current BMC system can be obtained.

[0046] Step 205: Based on the current second usage rate information and the second reference usage rate information, determine whether the BMC system meets the early warning conditions, and perform early warning processing if the early warning conditions are met.

[0047] In this embodiment of the invention, the system can determine whether the BMC system currently meets the early warning conditions based on the second utilization information of the current BMC system and the second reference utilization information of each process. If the BMC system early warning conditions are met, early warning processing is performed. During early warning processing in this application, alarms can be recorded to notify maintenance personnel to take preventative measures for the BMC system in advance.

[0048] In one example, determining whether the BMC system meets the early warning conditions can be done through the following specific process: Based on the second utilization rate change curve of the BMC system within a reference time period, the slope of the second curve corresponding to multiple preset time points within the reference time period is calculated. A target preset time point corresponding to the current time point is determined from the multiple preset time points. Based on the target time point and its corresponding second curve slope, the slope of the second target curve corresponding to the current BMC system is determined. Based on the second utilization rate information of the current BMC system and the corresponding second target curve slope, it is determined whether the BMC system meets the early warning conditions. The preset time points can be set according to a preset time period or a preset fixed time point. The shorter the preset time period, the more frequently the corresponding second curve slope is calculated, resulting in more accurate early warnings based on the second curve slope. This application can predict the utilization rate change trend of each process within the monitoring time period using the second target curve slope, thereby achieving an early warning effect.

[0049] In one example, based on the second utilization rate information of the current BMC system and the slope of the corresponding second target curve, it is determined whether the BMC system meets the early warning conditions. This determination can be made through the following specific process: Based on the current time point, the end time point of the monitoring period, the second utilization rate information of the current BMC system, the slope of the second target curve corresponding to the current BMC system, and the slope function relationship, the maximum utilization rate of the BMC system within the monitoring period is calculated. If the maximum utilization rate of the BMC system within the monitoring period is greater than the second preset utilization rate, then the BMC system meets the early warning conditions. This application can predict the maximum utilization rate of the BMC system within the monitoring period based on the first utilization rate information of each process and the slope of the corresponding first target curve, thereby providing early warning based on the predicted maximum utilization rate.

[0050] In this embodiment of the invention, based on the second historical operating data of the BMC system and the second utilization information of the current BMC system, it can predict in advance whether the BMC system will meet the warning conditions within the monitoring period, and perform warning processing when the warning conditions are met, so as to ensure the stable operation of the BMC system.

[0051] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0052] Reference Figure 3 The diagram illustrates a structural block diagram of a process early warning device according to an embodiment of the present invention. The device is applied to a server, which has a Baseboard Management Controller (BMC) system. The device specifically includes the following modules: The first determining module 301 is used to set a monitoring time period and determine a reference time period corresponding to the monitoring time period from the prior time periods. The first acquisition module 302 is used to acquire the first historical running data corresponding to each process of the BMC system within the reference time period; the first historical running data includes CPU utilization and / or memory utilization. The second determining module 303 is used to determine the first reference utilization rate information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period. The first monitoring module 304 is used to monitor each process during the monitoring time period and obtain the first utilization information of each process at present. The first early warning module 305 is used to determine whether the BMC system meets the early warning conditions based on the first utilization information of each process and the first reference utilization information of each process, and to perform early warning processing when the early warning conditions are met.

[0053] In one embodiment of the present invention, the first determining module 301 includes: The acquisition submodule is used to acquire the time attributes of the monitoring time period; the time attributes include holidays, weekdays, and event days. The filtering submodule is used to filter out the reference time period corresponding to the monitoring time period from the prior time periods based on the time attribute.

[0054] In one embodiment of the present invention, the first reference usage information includes a first usage change curve, and the second determining module 303 includes: The first filtering submodule is used to filter the first historical running data corresponding to each process within the reference time period to obtain the first target historical running data corresponding to each process within the reference time period. The first determining submodule is used to determine the first utilization rate change curve of each process within the reference time period based on the historical running data of the first target.

[0055] In one embodiment of the present invention, the first early warning module 305 includes: The first calculation submodule is used to calculate the slope of the first curve corresponding to multiple preset time points for each process within the reference time period based on the first utilization rate change curve of each process within the reference time period. The second determining submodule is used to determine a target preset time point corresponding to the current time point from a plurality of preset time points based on the current time point, and to determine the first target curve slope corresponding to each of the current processes based on the target time point and the slope of the first curve corresponding to the target time point. The first judgment submodule is used to determine whether the BMC system meets the early warning conditions based on the first utilization information of each process and the slope of the corresponding first target curve.

[0056] In one embodiment of the present invention, the first early warning module 305 includes: The second calculation submodule is used to calculate the maximum utilization rate of each process within the monitoring period based on the current time point, the end time point of the monitoring period, the first utilization rate information of each process, the slope of the first target curve corresponding to each process, and the slope function relationship. The second judgment submodule is used to determine whether the BMC system meets the early warning conditions if the maximum utilization rate of each process during the monitoring period is greater than the first preset utilization rate.

[0057] In one embodiment of the present invention, the device further includes: The second acquisition module is used to acquire the second historical operating data of the BMC system within the reference time period; the second historical operating data includes CPU utilization and / or memory utilization. The third determining module is used to determine the second reference utilization rate information of the BMC system within the reference time period based on the second historical operation data. The second monitoring module is used to monitor the BMC system during the monitoring time period and obtain the current second utilization information of the BMC system. The second early warning module is used to determine whether the BMC system meets the early warning conditions based on the current second usage rate information and the second reference usage rate information, and to perform early warning processing when the early warning conditions are met.

[0058] In one embodiment of the present invention, the second reference usage information includes a second usage change curve, and the third determining module includes: The second filtering submodule is used to filter the second historical operation data to obtain the second target historical operation data of the BMC system within the reference time period; The third determining submodule is used to determine the second utilization rate change curve of the BMC system within the reference time period based on the historical operating data of the second target.

[0059] This invention discloses a video cover image generation device applied to a server. The server has a Baseboard Management Controller (BMC) system. The device includes: a first determining module for setting a monitoring time period and determining a reference time period corresponding to the monitoring time period from previous time periods; a first acquiring module for acquiring first historical running data corresponding to each process of the BMC system within the reference time period; the first historical running data includes CPU utilization and / or memory utilization; a second determining module for determining first reference utilization information of each process within the reference time period based on the first historical running data corresponding to each process; a first monitoring module for monitoring each process within the monitoring time period and acquiring the current first utilization information of each process; and a first early warning module for determining whether the BMC system meets early warning conditions based on the current first utilization information and the first reference utilization information of each process, and performing early warning processing when the early warning conditions are met. This allows for advance prediction of whether the BMC system will meet early warning conditions within the monitoring time period, and early warning processing when the conditions are met, ensuring the stable operation of the BMC system.

[0060] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0061] This invention also provides an electronic device, comprising: It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described process warning method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0062] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described process warning method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0063] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0064] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products 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.

[0065] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0066] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0067] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0068] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0069] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0070] The present invention has provided a detailed description of a process early warning method, apparatus, electronic device, and computer-readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A process early warning method, characterized in that, Applied to a server having a Baseboard Management Controller (BMC) system, the method includes: Set the monitoring time period and determine the corresponding reference time period from the prior time periods; Obtain first historical running data corresponding to each process of the BMC system within the reference time period; the first historical running data includes CPU utilization and / or memory utilization. Based on the first historical running data of each process within the reference time period, determine the first reference utilization rate information of each process within the reference time period. During the monitoring period, monitor each process and obtain the first utilization information of each process at present; Based on the first utilization rate information of each process and the first reference utilization rate information of each process, determine whether the BMC system meets the warning conditions, and perform warning processing when the warning conditions are met. The first reference utilization information includes a first utilization change curve. The step of determining whether the BMC system meets the early warning conditions based on the current first utilization information of each process and the first reference utilization information of each process includes: Based on the first utilization rate change curve of each process within the reference time period, the slope of the first curve corresponding to each process and multiple preset time points within the reference time period is calculated. Based on the current time point, a target preset time point corresponding to the current time point is determined from a plurality of preset time points, and based on the target time point and the slope of the first curve corresponding to the target time point, the slope of the first target curve corresponding to each of the current processes is determined; Based on the first utilization information of each process and the slope of the corresponding first target curve, it is determined whether the BMC system meets the early warning conditions.

2. The method according to claim 1, characterized in that, Determining the reference time period corresponding to the monitoring time period from prior time periods includes: Obtain the time attributes of the monitored time period; the time attributes include holidays, weekdays, and event days. Based on the time attribute, the reference time period corresponding to the monitoring time period is selected from the prior time periods.

3. The method according to claim 1, characterized in that, The step of determining the first reference utilization information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period includes: The first historical running data corresponding to each process within the reference time period is filtered to obtain the first target historical running data corresponding to each process within the reference time period. Based on the historical operating data of the first target, determine the first utilization rate change curve of each process within the reference time period.

4. The method according to claim 1, characterized in that, The step of determining whether the BMC system meets the early warning conditions based on the first utilization information of each process and the corresponding slope of the first target curve includes: Based on the current time point, the end time point of the monitoring period, the first utilization rate information of each process, the slope of the first target curve corresponding to each process, and the slope function relationship, the maximum utilization rate of each process within the monitoring period is calculated. If the maximum utilization rate of each process during the monitoring period is greater than the first preset utilization rate, then the BMC system meets the early warning conditions.

5. The method according to claim 1, characterized in that, After setting the monitoring time period and determining the corresponding reference time period from the prior time periods, the method further includes: Obtain the second historical operating data of the BMC system within the reference time period; the second historical operating data includes CPU utilization and / or memory utilization. Based on the second historical operating data, determine the second reference utilization rate information of the BMC system within the reference time period; Monitor the BMC system during the monitoring period and obtain the current second utilization information of the BMC system; Based on the current second usage rate information and the second reference usage rate information, determine whether the BMC system meets the early warning conditions, and perform early warning processing when the early warning conditions are met.

6. The method according to claim 5, characterized in that, The second reference utilization information includes a second utilization rate change curve. Determining the second reference utilization information of the BMC system within the reference time period based on the second historical operating data includes: The second historical operation data is filtered to obtain the second target historical operation data of the BMC system within the reference time period; The second utilization rate change curve of the BMC system within the reference time period is determined based on the historical operating data of the second target.

7. A process early warning device, characterized in that, Applied to a server, the server having a Baseboard Management Controller (BMC) system, the device includes: The first determining module is used to set the monitoring time period and determine the reference time period corresponding to the monitoring time period from the prior time periods; The first acquisition module is used to acquire the first historical running data corresponding to each process of the BMC system within the reference time period; The second determining module is used to determine the first reference utilization information of each process within the reference time period based on the first historical running data corresponding to each process within the reference time period; the first reference utilization information includes CPU utilization and / or memory utilization. The first monitoring module is used to monitor each process during the monitoring time period and obtain the first utilization information of each process at present. The first early warning module is used to determine whether the BMC system meets the early warning conditions based on the first utilization rate information of each process and the first reference utilization rate information of each process, and to perform early warning processing when the early warning conditions are met. Wherein, the first reference utilization rate information includes a first utilization rate change curve, and the first early warning module includes: The first calculation submodule is used to calculate the slope of the first curve corresponding to multiple preset time points for each process within the reference time period based on the first utilization rate change curve of each process within the reference time period. The second determining submodule is used to determine a target preset time point corresponding to the current time point from a plurality of preset time points based on the current time point, and to determine the slope of the first target curve corresponding to each of the current processes based on the slope of the first curve corresponding to the target time point and the target time point. The first judgment submodule is used to determine whether the BMC system meets the early warning conditions based on the first utilization information of each process and the slope of the corresponding first target curve.

8. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the process warning method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the process warning method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Server downtime supervision method and system, terminal and storage medium

    CN110851320A

  • Monitoring method and device based on CPU dynamic threshold value, equipment and storage medium

    CN113448805A