CN115774646A - Process early warning method and device, electronic equipment and storage medium - Google Patents

Process early warning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115774646A
CN115774646A CN202211372385.5A CN202211372385A CN115774646A CN 115774646 A CN115774646 A CN 115774646A CN 202211372385 A CN202211372385 A CN 202211372385A CN 115774646 A CN115774646 A CN 115774646A
Authority
CN
China
Prior art keywords
time period
utilization rate
early warning
monitoring
bmc system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211372385.5A
Other languages
Chinese (zh)
Inventor
李佳耕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211372385.5A priority Critical patent/CN115774646A/en
Publication of CN115774646A publication Critical patent/CN115774646A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a process early warning method, a device, equipment and a storage medium, wherein the method is applied to a server, and the server is provided with a Baseboard Management Controller (BMC) system, and the method comprises the following steps: the method comprises the steps of respectively determining first reference utilization rate information of each process in a reference time period based on first historical operating data corresponding to each process of the BMC system in the reference time period, monitoring each process in the monitoring time period and obtaining the first utilization rate information of each current process, judging whether the BMC system meets an early warning condition or not according to the first utilization rate information of each current process and the first reference utilization rate information of each process, and conducting early warning processing when the BMC system meets the early warning condition. Therefore, whether the BMC system meets the early warning condition in the monitoring time period can be predicted in advance through the first utilization rate information of each current process and the first reference utilization rate information of each process, early warning processing is carried out when the early warning condition is met, and the running stability of the BMC system is guaranteed.

Description

Process early warning method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a process warning method, a process warning apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of internet big data, the demand of the market for a server is increasing, and the requirement for the stability of the server is also increasing, and it is more important that a BMC (Baseboard Management Controller) system is used as a BMC system for monitoring and managing the stable state of the server system, so how to ensure the stability of the operation of the BMC system is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed to provide a process early warning method, a process early warning apparatus, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above-mentioned problems.
In order to solve the above problem, an embodiment of the present invention discloses a process early warning method, which is applied to a server, where the server has a BMC system, and the method includes:
setting a monitoring time period, and determining a reference time period corresponding to the monitoring time period from a previous time period;
acquiring first historical operating data corresponding to each process of the BMC system in the reference time period;
respectively determining first reference utilization rate information of each process in the reference time period according to first historical operating data corresponding to each process in the reference time period; the first historical operation data comprises a CPU utilization rate and/or a memory utilization rate;
monitoring each process in the monitoring time period and acquiring first utilization rate information of each current process;
and judging whether the BMC system meets an early warning condition according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and carrying out early warning processing when the early warning condition is met.
Optionally, the determining that the monitoring time period corresponds to the reference time period from the previous time period includes:
acquiring the time attribute of the monitoring time period; the time attributes comprise holidays, workdays and activity days;
and screening out a reference time period corresponding to the monitoring time period from the previous time periods according to the time attribute.
Optionally, the determining, by the first reference utilization information, first reference utilization information of each process in the reference time period according to first historical operating data corresponding to each process in the reference time period includes:
filtering first historical operating data corresponding to each process in the reference time period to obtain first target historical operating data corresponding to each process in the reference time period;
and respectively determining a first usage rate change curve of each process in the reference time period according to the first target historical operation data.
Optionally, the determining, according to the current first usage rate information of each process and the first reference usage rate information of each process, whether the BMC system meets an early warning condition includes:
calculating a first curve slope corresponding to each process in the reference time period and a plurality of preset time points on the basis of a first usage rate change curve of each process in the reference time period;
determining a target preset time point corresponding to the current time point from a plurality of preset time points according to the current time point, and determining a first target curve slope corresponding to each current process according to the first curve slope corresponding to the target time point and the target time point;
and judging whether the BMC system meets an early warning condition or not according to the first utilization rate information of each current process and the corresponding first target curve slope.
Optionally, the determining whether the BMC system meets an early warning condition according to the current first utilization information of each process and the corresponding first target curve slope includes:
calculating the maximum utilization rate corresponding to each process in the monitoring time period according to the current time point, the ending time point of the monitoring time period, the first utilization rate information of each current process, the first target curve slope corresponding to each current process and a slope function relation;
and if the maximum utilization rate corresponding to each process in the monitoring time period is greater than a first preset utilization rate, judging whether the BMC system meets an early warning condition.
Optionally, after setting the monitoring time period and determining that the monitoring time period corresponds to the reference time period from a previous time period, the method further includes:
acquiring second historical operating data of the BMC system in the reference time period; the second historical operation data comprises a CPU utilization rate and/or a memory utilization rate;
calculating second reference utilization rate information of the BMC system in the reference time period according to the second historical operating data;
monitoring the BMC system in the monitoring time period and acquiring second utilization rate information of the current BMC system;
and judging whether the BMC system meets an early warning condition or not according to the current second utilization rate information and the second reference utilization rate information, and performing early warning processing when the early warning condition is met.
Optionally, the calculating, according to the second historical operating data, second reference usage information of the BMC system in the reference time period includes:
filtering the second historical operating data to obtain second target historical operating data of the BMC system in the reference time period;
and calculating a second usage rate change curve of the BMC system in the reference time period according to the second target historical operation data.
The embodiment of the invention discloses a process early warning device, which is applied to a server, wherein the server is provided with a Baseboard Management Controller (BMC) system, and the device comprises:
the device comprises a first determining module, a second determining module and a monitoring module, wherein the first determining module is used for setting a monitoring time period and determining a reference time period corresponding to the monitoring time period from a previous time period;
the first acquisition module is used for acquiring first historical operating data corresponding to each process of the BMC system in the reference time period; the first historical operation data comprises CPU utilization rate and/or memory utilization rate;
the second determining module is used for respectively determining first reference utilization rate information of each process in the reference time period according to the first historical operating data corresponding to each process in the reference time period;
the first monitoring module is used for monitoring each process in the monitoring time period and acquiring first utilization rate information of each current process;
and the first early warning module is used for judging whether the BMC system meets an early warning condition according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and carrying out early warning processing when the BMC system meets the early warning condition.
Optionally, the first determining module includes:
the acquisition submodule is used for acquiring the time attribute of the monitoring time period; the time attributes comprise holidays, workdays and activity days;
and the screening submodule is used for screening out the reference time period corresponding to the monitoring time period from the previous time period according to the time attribute.
Optionally, the first reference usage information includes a first usage profile, and the second determining module includes:
the first filtering submodule is used for filtering first historical operating data corresponding to each process in the reference time period to obtain first target historical operating data corresponding to each process in the reference time period;
and the first determining submodule is used for respectively determining a first usage rate change curve of each process in the reference time period according to the first target historical operating data.
Optionally, the first warning module includes:
the first calculation submodule is used for calculating a first curve slope of each process in the reference time period corresponding to a plurality of preset time points on the basis of a first usage rate change curve of each process in the reference time period;
the second determining submodule is used for determining a target preset time point corresponding to the current time point from the preset time points according to the current time point and determining a first target curve slope corresponding to each current process according to the first curve slope corresponding to the target time point and the target time point;
and the first judgment sub-module is used for judging whether the BMC system meets an early warning condition or not according to the first utilization rate information of each current process and the corresponding first target curve slope.
Optionally, the first warning module includes:
the second calculation submodule is used for calculating the maximum utilization rate corresponding to each process in the monitoring time period according to the current time point, the ending time point of the monitoring time period, the first utilization rate information of each current process, the slope of the first target curve corresponding to each current process and the slope function relationship;
and the second judgment submodule is used for enabling the BMC system to meet an early warning condition if the maximum utilization rate corresponding to each process in the monitoring time period is greater than a first preset utilization rate.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring second historical operating data of the BMC system in the reference time period; the second historical operating data comprises CPU utilization rate and/or memory utilization rate;
a third determining module, configured to determine, according to the second historical operating data, second reference usage rate information of the BMC system in the reference time period;
the second monitoring module is used for monitoring the BMC system in the monitoring time period and acquiring second utilization rate information of the current BMC system;
and the second early warning module is used for judging whether the BMC system meets an early warning condition according to the current second utilization rate information and the second reference utilization rate information and carrying out early warning processing when the BMC system meets the early warning condition.
Optionally, the second reference usage information includes a second usage curve, and the third determining module includes:
the second filtering submodule is used for filtering the second historical operating data to obtain second target historical operating data of the BMC system in the reference time period;
and the third determining submodule is used for determining a second utilization rate change curve of the BMC system in the reference time period according to the second target historical operation data.
The invention also discloses an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the process early warning method when executing the computer program.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the above process early warning method.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a monitoring time period is set, a reference time period corresponding to the monitoring time period is determined from a previous time period, first reference utilization rate information of each process in the reference time period is respectively determined based on first historical operating data corresponding to each process of the BMC system in the reference time period, each process is monitored in the monitoring time period, the first utilization rate information of each current process is obtained, whether the BMC system meets an early warning condition or not is judged according to the first utilization rate information of each current process and the first reference utilization rate information of each process, and early warning processing is carried out when the early warning condition is met. Therefore, whether the BMC system meets the early warning condition in the monitoring time period can be predicted in advance through the first utilization rate information of each current process and the first reference utilization rate information of each process, early warning processing is carried out when the early warning condition is met, and the running stability of the BMC system is guaranteed.
Drawings
Fig. 1 is a flowchart illustrating steps of a process early warning method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another method for process early warning according to an embodiment of the present invention;
fig. 3 is a block diagram of a process warning device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As BMC systems become more important, how to ensure the stability of BMC system operation is a technical problem that needs to be solved by those skilled in the art. In order to solve the technical problems, the invention provides a process early warning method, which has the core concept that first reference utilization rate information of each process in a reference time period is calculated through acquired historical operating data corresponding to each process of a BMC system in the reference time period, then whether the BMC system meets an early warning condition is judged according to the first reference utilization rate information and the current utilization rate of each process, and early warning processing is carried out when the early warning condition is met.
Referring to fig. 1, a flowchart of steps of a process early warning method provided in an embodiment of the present invention is shown, where the method is applied to a server, where the server has a BMC system, and a real-time method specifically includes the following steps:
step 101, setting a monitoring time period and determining a reference time period corresponding to the monitoring time period from a previous time period.
The server in the embodiment of the present invention may have a BMC system, and may monitor the operation data of each process in the BMC system when the BMC system operates, or may directly monitor all the operation data of the BMC system, and may store the monitored operation data record in the BMC memory, and in this application, the BMC system may be monitored by a top command or a ps command, or may be monitored by checking the process information in a proc file in the BMC system, and the specific monitoring method is not specifically limited in this application.
When the BMC system is monitored and early-warned, the monitoring time period can be set firstly, and the reference time period corresponding to the monitoring time period is determined from the previous time period. The time attributes may include holidays, weekdays, and activity days. For example: setting a monitoring time period from 12 points to 20 points, setting a previous time period as 5 days, acquiring a time attribute of the monitoring time period as a working day, screening out 3 days from the 5 days before the monitoring time period as the working day according to the time attribute of the working day, and determining the time period from 12 points to 20 points in the working day of the 3 days as a reference time period. If the time attribute of the monitoring time period is an activity day, an activity day is screened out from the previous time period according to the time attribute of the activity day, and the time period from 12 points to 20 points in the activity day is determined as a reference time period.
102, acquiring first historical operating data corresponding to each process of the BMC system in the reference time period; the first reference usage information includes a CPU usage and/or a memory usage.
In the embodiment of the present invention, after determining that the monitoring time period corresponds to the reference time period, first historical operating data corresponding to each process of the BMC system in the reference time period is obtained, where each process of the BMC system may include: the first historical operating data may include a CPU utilization rate and/or a memory utilization rate, and in an example, the first historical operating data corresponding to each process of the BMC system in the reference time period may be obtained from operating data recorded and stored in the BMC memory in advance.
Step 103, respectively calculating first reference utilization rate information of each process in the reference time period according to the first historical operating data corresponding to each process in the reference time period.
In the embodiment of the present invention, after the first historical operating data corresponding to each process in the reference time period is acquired, the first reference utilization rate information of each process in the reference time period may be respectively calculated according to the first historical operating data corresponding to each process in the reference time period, where the first reference utilization rate information may include a first utilization rate change curve. In an example, the first historical data corresponding to each process in the reference time period may be filtered to obtain first target historical operating data corresponding to each process in the reference time period, and when the first historical operating data is filtered, data with abnormal data in the first historical operating data may be removed, for example: if the first historical operating data may include operating data with suddenly too high or too low usage rate, and then normal operation is resumed, the suddenly too high or too low historical operating data may be removed, and the remaining historical operating data may be determined as the first target historical operating data. And respectively determining a first usage rate change curve of each process in a reference time period according to the first historical operating data. In the application, the CPU utilization rate and/or the memory utilization rate corresponding to each process in the reference time period may be fitted to obtain a first utilization rate change curve of the CPU and/or the memory corresponding to each process in the reference time period. This application carries out filtering process to first historical operating data, can make the more accurate of the first rate of utilization change curve that determines to make this application when carrying out early warning processing based on first rate of utilization change curve, can be more accurate carry out early warning processing.
And 104, monitoring each process in the monitoring time period and acquiring first utilization rate information of each current process.
According to the embodiment of the invention, each process can be monitored in the monitoring time period, and the first utilization rate information of each current process can be acquired.
And 105, judging whether the BMC system meets an early warning condition or not according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and performing early warning when the BMC system meets the early warning condition.
In the embodiment of the invention, whether the BMC system meets the early warning condition currently can be judged according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and if the BMC system meets the early warning condition, the early warning processing is carried out. When early warning processing is carried out in the application, alarm recording can be carried out, and operation and maintenance personnel are informed to make prevention work on the BMC system in advance.
In one example, whether the BMC system meets the warning condition is determined according to the following specific process: the method comprises the steps of calculating first curve slopes corresponding to a plurality of preset time points of each process in a reference time period based on a first usage rate change curve of each process in the reference time period, determining a target preset time point corresponding to the current time point from the preset time points according to the current time point, determining a first target curve slope corresponding to each current process according to the first usage rate information of each current process and the corresponding first target curve slope, and judging whether a BMC system meets an early warning condition or not according to the target time point and the first curve slope corresponding to the target time point, wherein 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 is, the more frequent the calculation of the corresponding first curve slope is indicated, and the early warning can be more accurately carried out when the early warning is carried out based on the first curve slope. For example: the current time point is 15 hours 03 minutes 30 seconds, the BMC system has processes a, B, and C in a reference time period, first usage rate change curves corresponding to the processes a, B, and C are A1, B1, and C1, respectively, and the preset time point calculates the slope of the first usage rate change curve according to one cycle per second, so that the first usage rate change curves A1, B1, and C1 corresponding to the processes a, B, and C1 in the reference time period are A2, B2, and C2, respectively, the time point of the reference time period 03 minutes 30 seconds at 15 hours 03 minutes can be calculated as a target preset time point of the current time point 03 minutes 30 seconds at 15 hours 03 minutes 30 seconds, then the first curve protocols A2, B2, and C2 corresponding to the processes at 15 minutes 30 seconds in the reference time period can be determined as the first target slopes of the current processes a, B, and C, respectively, and then the first usage rate information of the current processes a, B, and C and the first curve protocols A2, B, C2, and C2, respectively meet the early warning conditions for processing, and if the process a, the early warning conditions are met, and the early warning information is output, and the early warning conditions are output. Therefore, the change trend of the utilization rate of each process in the monitoring time period can be predicted through the slope of the first target curve, and the early warning effect is achieved.
In an example, whether the BMC system meets the early warning condition is determined according to the first utilization information of each current process and the corresponding first target curve slope, and the determination may be performed according to the following specific process: calculating the maximum utilization rate corresponding to each process in the monitoring time period according to the current time point, the ending time point of the monitoring time period, the first utilization rate information of each current process, the first target curve slope corresponding to each current process and the slope function relationship, and if the maximum utilization rate corresponding to each process in the monitoring time period is greater than the first preset utilization rate, the BMC system meets the early warning condition. For example: the slope function relationship is y = kx + B, wherein y is the utilization rate corresponding to each process at the ending time point in the monitoring time period, k is the first target curve slope corresponding to each current process, x is the difference value between the ending time point and the current time point in the monitoring time period, B is the first utilization rate information of each process at the current time point, the first preset utilization rate is 80%, the first target curve slopes corresponding to the current processes a, B and C are respectively 5, 10 and 15, when the current time point is 15 and the ending time point is 20, the first utilization rate information corresponding to the current processes a, B and C is 10%, 11 and 12%, the utilization rates corresponding to the processes a, B and C at the ending time point can be calculated to be 35%, 61% and 87%, when the slope is a positive number, the maximum utilization rate corresponding to each process is the utilization rate at the ending time point, therefore, the maximum utilization rates corresponding to the processes a, B and C are respectively 35%, 61% and 87%, when the slope is a positive number, the maximum utilization rate of each process C in the processes a, B and C is greater than the first preset utilization rate, the BMC is well prepared, and the BMC early warning system can be notified, and early-warning of the BMC is performed, thereby the early warning system can be performed. According to the method and the device, the maximum utilization rate of each process in the monitoring time can be predicted according to the first utilization rate information of each current process and the corresponding slope of the first target curve, and therefore early warning can be performed according to the predicted maximum utilization rate.
According to the embodiment of the invention, whether the BMC system meets the early warning condition in the monitoring time can be predicted in advance according to the first historical operating data corresponding to each process of the BMC system and the first utilization rate information of each current process, and early warning processing is carried out when the early warning condition is met, so that the running stability of the BMC system is ensured.
Referring to fig. 2, a flowchart of steps of another process early warning method provided in an embodiment of the present invention is shown, where the method is applied to a server, where the server has a BMC system, and the real-time method specifically includes the following steps:
step 201, setting a monitoring time period, and determining a reference time period corresponding to the monitoring time period from a previous time period.
Step 201 is the same as step 101, and is not described herein again.
Step 202, acquiring second historical operating data of the BMC system in the reference time period; the second historical operating data comprises CPU utilization rate and/or memory utilization rate.
In the embodiment of the invention, after the monitoring time period is determined to correspond to the reference time period, second historical operating data of the BMC system in the reference time period is obtained, wherein the second historical operating data of the BMC system can be historical operating data of all processes of the BMC system or other historical operating data of unexpected processes in the BMC. The second historical operating data may include a CPU usage rate and/or a memory usage rate, and in an example, the second historical operating data of the BMC system in the reference time period may be obtained from operating data stored in the BMC memory in advance.
Step 203, determining second reference utilization rate information of the BMC system in the reference time period according to the second historical operating data.
In the embodiment of the present invention, after the second historical operating data of the BMC system in the reference time period is acquired, second reference utilization rate information of the BMC system in the reference time period may be respectively calculated according to the second historical operating data of the BMC system in the reference time period, where the second reference utilization rate information may include a second utilization rate change curve. In an example, the second historical data of the BMC system in the reference time period may be filtered to obtain second target historical operating data of the BMC system in the reference time period, and when the second historical operating data is filtered, data with abnormal data in the second historical operating data may be removed, and then a second usage rate change curve of the BMC system in the reference time period may be determined according to the second historical operating data. According to the method and the device, the CPU utilization rate and/or the memory utilization rate of the BMC system in the reference time period can be fitted to obtain a first utilization rate change curve of the CPU and/or the memory of the BMC system in the reference time period. The application carries out filtering processing to the second historical operation data, and the second usage rate change curve that can make the determination is more accurate to make this application when carrying out early warning processing based on the second usage rate change curve, can more accurate carry out early warning processing.
And 204, monitoring the BMC system in the monitoring time period and acquiring second utilization rate information of the current BMC system.
In the embodiment of the invention, the BMC system can be monitored in the monitoring time period, and the second utilization rate information of the current BMC system can be acquired.
Step 205, judging whether the BMC system meets an early warning condition according to the current second utilization rate information and the second reference utilization rate information, and performing early warning processing when the early warning condition is met.
In the embodiment of the invention, whether the BMC system meets the early warning condition currently can be judged according to the second utilization rate information of the current BMC system and the second reference utilization rate information of each process, and if the BMC system meets the early warning condition, early warning processing is carried out. When early warning processing is carried out in the application, alarm records can be carried out, and operation and maintenance personnel are informed to make prevention work on the BMC system in advance.
In one example, whether the BMC system meets the warning condition is determined according to the following specific process: the method comprises the steps of calculating second curve slopes corresponding to a plurality of preset time points of the BMC system in a reference time period based on a second utilization rate change curve of the BMC system in the reference time period, determining a target preset time point corresponding to the current time point from the preset time points according to the current time point, determining a second target curve slope corresponding to the current BMC system according to the second curve slope corresponding to the target time point and the target time point, and judging whether the BMC system meets an early warning condition or not according to second utilization rate information of the current BMC system and the corresponding second target curve slope. According to the method and the device, the change trend of the utilization rate of each process in the monitoring time period can be predicted through the slope of the second target curve, so that the early warning effect is achieved.
In an example, whether the BMC system meets the warning condition is determined according to the second utilization rate information of the current BMC system and the corresponding second target curve slope, and the determination may be performed according to the following specific process: and calculating the maximum utilization rate of the BMC system in the monitoring time period according to the current time point, the ending time point of the monitoring time period, the second utilization rate information of the current BMC system, the slope of a second target curve corresponding to the current BMC system and the slope function relation, and if the maximum utilization rate of the BMC system in the monitoring time period is larger than a second preset utilization rate, judging whether the BMC system meets an early warning condition or not. According to the method and the device, the maximum utilization rate of the BMC system in the monitoring time can be predicted according to the first utilization rate information of each current process and the corresponding first target curve slope, and therefore early warning can be performed according to the predicted maximum utilization rate.
According to the embodiment of the invention, whether the BMC system meets the early warning condition in the monitoring time can be predicted in advance according to the second historical operating data of the BMC system and the second utilization rate information of the current BMC system, and early warning processing is carried out when the early warning condition is met, so that the running stability of the BMC system is ensured.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those of skill in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the embodiments of the invention.
Referring to fig. 3, a block diagram of a process early warning apparatus provided in an embodiment of the present invention is shown, where the apparatus is applied to a server, where the server has a BMC system, and the apparatus specifically includes the following modules:
a first determining module 301, configured to set a monitoring time period, and determine, from a previous time period, that the monitoring time period corresponds to a reference time period;
a first obtaining module 302, configured to obtain first historical operating data corresponding to each process of the BMC system in the reference time period; the first historical operation comprises a CPU utilization rate and/or a memory utilization rate;
a second determining module 303, configured to determine first reference utilization rate information of each process in the reference time period according to first historical operating data corresponding to each process in the reference time period, respectively;
a first monitoring module 304, configured to monitor each process in the monitoring time period and obtain first utilization information of each current process;
a first early warning module 305, configured to determine whether the BMC system meets an early warning condition according to the current first usage rate information of each process and the first reference usage rate information of each process, and perform early warning processing when the early warning condition is met.
In an embodiment of the present invention, the first determining module 301 includes:
the acquisition submodule is used for acquiring the time attribute of the monitoring time period; the time attributes comprise holidays, workdays and activity days;
and the screening submodule is used for screening out the reference time period corresponding to the monitoring time period from the previous time period according to the time attribute.
In an embodiment of the present invention, the first reference usage information includes a first usage variation curve, and the second determining module 303 includes:
the first filtering submodule is used for filtering the first historical operating data corresponding to each process in the reference time period to obtain first target historical operating data corresponding to each process in the reference time period;
and the first determining submodule is used for respectively determining a first usage rate change curve of each process in the reference time period according to the first target historical operating data.
In an embodiment of the present invention, the first warning module 305 includes:
the first calculation submodule is used for calculating a first curve slope of each process in the reference time period corresponding to a plurality of preset time points on the basis of a first usage rate change curve of each process in the reference time period;
the second determining submodule is used for determining a target preset time point corresponding to the current time point from the preset time points according to the current time point and determining first target curve slopes corresponding to the current processes according to the first curve slopes corresponding to the target time point and the target time point;
and the first judgment submodule is used for judging whether the BMC system meets an early warning condition or not according to the first utilization rate information of each current process and the corresponding first target curve slope.
In one embodiment of the present invention, the first warning module 305 includes:
a second calculating submodule, configured to calculate a maximum usage rate corresponding to each process in the monitoring period according to the current time point, an end time point of the monitoring period, first usage rate information of each current process, the slope of the first target curve corresponding to each current process, and a slope function relationship;
and the second judgment submodule is used for judging whether the BMC system meets the early warning condition or not if the maximum utilization rate corresponding to each process in the monitoring time period is greater than the first preset utilization rate.
In one embodiment of the invention, the apparatus further comprises:
the second acquisition module is used for acquiring second historical operating data of the BMC system in the reference time period; the second historical operation data comprises a CPU utilization rate and/or a memory utilization rate;
a third determining module, configured to determine, according to the second historical operating data, second reference usage rate information of the BMC system in the reference time period;
the second monitoring module is used for monitoring the BMC system in the monitoring time period and acquiring second utilization rate information of the current BMC system;
and the second early warning module is used for judging whether the BMC system meets an early warning condition according to the current second utilization rate information and the second reference utilization rate information and carrying out early warning processing when the BMC system meets the early warning condition.
In an embodiment of the invention, the second reference usage information includes a second usage profile, and the third determining module includes:
the second filtering submodule is used for filtering the second historical operating data to obtain second target historical operating data of the BMC system in the reference time period;
and the third determining submodule is used for determining a second utilization rate change curve of the BMC system in the reference time period according to the second target historical operation data.
The invention discloses a generating device of a video cover image, which is applied to a server, wherein the server is provided with a Baseboard Management Controller (BMC) system, and the device comprises: the first determining module is used for setting a monitoring time period and determining a reference time period corresponding to the monitoring time period from a previous time period; the system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring first historical operating data corresponding to each process of the BMC system in a reference time period; the first historical operation data comprises CPU utilization rate and/or memory utilization rate; the second determining module is used for respectively determining first reference utilization rate information of each process in the reference time period according to the first historical operating data corresponding to each process in the reference time period; the first monitoring module is used for monitoring each process in a monitoring time period and acquiring first utilization rate information of each current process; and the first early warning module is used for judging whether the BMC system meets the early warning condition or not according to the first utilization rate information of each current process and the first reference utilization rate information of each process, and carrying out early warning processing when the BMC system meets the early warning condition. Therefore, whether the BMC system meets the early warning condition in the monitoring time or not is predicted in advance, early warning processing is carried out when the early warning condition is met, and the running stability of the BMC system is guaranteed.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
the process early warning method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein when the computer program is executed by the processor, each process of the process early warning method embodiment is realized, the same technical effect can be achieved, and the process early warning method is not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above-mentioned embodiment of the process early warning method, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
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 flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The process early warning method, the process early warning device, the electronic device and the computer-readable storage medium provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A process early warning method is applied to a server, wherein the server is provided with a Baseboard Management Controller (BMC) system, and the method comprises the following steps:
setting a monitoring time period, and determining a reference time period corresponding to the monitoring time period from a previous time period;
acquiring first historical operating data corresponding to each process of the BMC system in the reference time period; the first historical operation data comprises a CPU utilization rate and/or a memory utilization rate;
respectively determining first reference utilization rate information of each process in the reference time period according to first historical operating data corresponding to each process in the reference time period;
monitoring each process in the monitoring time period and acquiring first utilization rate information of each current process;
and judging whether the BMC system meets an early warning condition according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and carrying out early warning processing when the early warning condition is met.
2. The method of claim 1, wherein said determining that the monitoring time period corresponds to a reference time period from a previous time period comprises:
acquiring the time attribute of the monitoring time period; the time attributes comprise holidays, workdays and activity days;
and screening out a reference time period corresponding to the monitoring time period from the previous time periods according to the time attribute.
3. The method according to claim 1, wherein the first reference usage information includes a first usage variation curve, and the determining the first reference usage information of each process in the reference time period according to the first historical operating data corresponding to each process in the reference time period respectively includes:
filtering the first historical operating data corresponding to each process in the reference time period to obtain first target historical operating data corresponding to each process in the reference time period;
and respectively determining a first usage rate change curve of each process in the reference time period according to the first target historical operation data.
4. The method of claim 3, wherein the determining whether the BMC system meets an early warning condition according to the current first usage information of each process and the first reference usage information of each process comprises:
calculating a first curve slope corresponding to each process in the reference time period and a plurality of preset time points on the basis of a first usage rate change curve of each process in the reference time period;
determining a target preset time point corresponding to the current time point from the preset time points according to the current time point, and determining first target curve slopes corresponding to the current processes according to the first curve slopes corresponding to the target time point and the target time point;
and judging whether the BMC system meets an early warning condition or not according to the first utilization rate information of each current process and the corresponding first target curve slope.
5. The method of claim 4, wherein the determining whether the BMC system meets an early warning condition according to the current first utilization information of each process and the corresponding first target curve slope comprises:
calculating the maximum utilization rate corresponding to each process in the monitoring time period according to the current time point, the ending time point of the monitoring time period, the current first utilization rate information of each process, the first target curve slope corresponding to each current process and the slope function relationship;
and if the maximum utilization rate corresponding to each process in the monitoring time period is greater than a first preset utilization rate, the BMC system meets an early warning condition.
6. The method of claim 1, wherein after setting the monitoring period and determining from a previous period that the monitoring period corresponds to the reference period, further comprising:
acquiring second historical operating data of the BMC system in the reference time period; the second historical operating data comprises CPU utilization rate and/or memory utilization rate;
determining second reference utilization rate information of the BMC system in the reference time period according to the second historical operating data;
monitoring the BMC system in the monitoring time period and acquiring second utilization rate information of the current BMC system;
and judging whether the BMC system meets an early warning condition or not according to the current second utilization rate information and the second reference utilization rate information, and carrying out early warning processing when the BMC system meets the early warning condition.
7. The method of claim 6, wherein the second reference usage information comprises a second usage profile, and wherein determining the second reference usage information for the BMC system for the reference time period based on the second historical operating data comprises:
filtering the second historical operating data to obtain second target historical operating data of the BMC system in the reference time period;
and determining a second usage rate change curve of the BMC system in the reference time period according to the second target historical operation data.
8. The process early warning device is applied to a server, wherein the server is provided with a Baseboard Management Controller (BMC) system, and the device comprises the following components:
the device comprises a first determining module, a second determining module and a monitoring module, wherein the first determining module is used for setting a monitoring time period and determining a reference time period corresponding to the monitoring time period from a previous time period;
the first acquisition module is used for acquiring first historical operating data corresponding to each process of the BMC system in the reference time period;
the second determining module is used for respectively determining first reference utilization rate information of each process in the reference time period according to the first historical operating data corresponding to each process in the reference time period; the first reference utilization rate information comprises a CPU utilization rate and/or a memory utilization rate;
the first monitoring module is used for monitoring each process in the monitoring time period and acquiring first utilization rate information of each current process;
and the first early warning module is used for judging whether the BMC system meets an early warning condition according to the current first utilization rate information of each process and the first reference utilization rate information of each process, and carrying out early warning processing when the early warning condition is met.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the process pre-warning method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the process warning method according to any one of claims 1 to 7.
CN202211372385.5A 2022-11-03 2022-11-03 Process early warning method and device, electronic equipment and storage medium Pending CN115774646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211372385.5A CN115774646A (en) 2022-11-03 2022-11-03 Process early warning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211372385.5A CN115774646A (en) 2022-11-03 2022-11-03 Process early warning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115774646A true CN115774646A (en) 2023-03-10

Family

ID=85388704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211372385.5A Pending CN115774646A (en) 2022-11-03 2022-11-03 Process early warning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115774646A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095305A (en) * 2023-04-12 2023-05-09 长鑫存储技术有限公司 Method, device and medium for monitoring image acquisition system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095305A (en) * 2023-04-12 2023-05-09 长鑫存储技术有限公司 Method, device and medium for monitoring image acquisition system
CN116095305B (en) * 2023-04-12 2023-08-25 长鑫存储技术有限公司 Method, device and medium for monitoring image acquisition system

Similar Documents

Publication Publication Date Title
CN111045894B (en) Database abnormality detection method, database abnormality detection device, computer device and storage medium
CN109347653B (en) Index abnormity discovery method and device
CN108984376B (en) System anomaly detection method, device and equipment
EP3451093A1 (en) Work assistance device, work assistance method, and work assistance program
CN115774646A (en) Process early warning method and device, electronic equipment and storage medium
US20120191442A1 (en) Operations management apparatus, operations management method and program
CN106503841B (en) method and device for determining index threshold
CN114546765A (en) Cluster monitoring method, system, device and medium
CN111858704A (en) Data monitoring method and device, electronic equipment and storage medium
CN114140034B (en) Quality monitoring method based on working conditions and related device
CN115328974A (en) Data real-time detection method, device, equipment and readable storage medium
CN105183627A (en) Server performance prediction method and system
CN111176226A (en) Automatic analysis method for alarm threshold of equipment characteristic parameter based on operation condition
CN110635947A (en) Abnormal access monitoring method and device
CN111258854B (en) Model training method, alarm method based on prediction model and related device
US20030056156A1 (en) Method and apparatus for monitoring the activity of a system
CN113835626B (en) Method and device for determining usable time length of disk
CN113810743B (en) Live broadcasting room flow monitoring method and device
CN112115025B (en) Energy consumption determining method and device for distributed equipment
CN110286637B (en) Information acquisition method, device and system
CN112398706B (en) Data evaluation standard determining method and device, storage medium and electronic equipment
CN111327443B (en) Fault root index determination method and device
JP2022032684A (en) Facility maintenance support system and facility maintenance support method
JP2005071136A (en) Delivery time management support system, its program, recording medium recording its program and delivery time management method for product
CN110955196A (en) Processing method and system for production process index data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination