Method and device for storing performance data on network management server
By configuring the acquisition cycle and difference threshold for each performance indicator, performance data is stored only when the difference threshold exceeds, the problem of increased data storage cost and operating pressure of the network management server is solved, and the reduction of data storage amount and improvement of system performance is achieved.
Patent Information
- Application Number
- CN202411604294.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-28
Smart Images

Figure CN119537139A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network management technology, and in particular to a method and device for storing performance data on a network management server. Background Art
[0002] The network management system monitors, collects, compiles statistics and analyzes equipment performance indicators, allowing users to see the equipment's operating status and trends at a glance. Performance indicators include equipment temperature, voltage, current, CPU utilization, interface transceiver rate, bandwidth utilization, etc.
[0003] In recent years, as users have increased their requirements for the availability and stability of network equipment, users not only need to pay attention to the current operating status of the equipment, but also need to understand the operating trends of the equipment so that they can expand capacity in time before performance bottlenecks occur to avoid affecting the business. In addition, users have collected more types of performance indicators to gain a more comprehensive understanding of the operating status of equipment. At the same time, in order to ensure the accuracy and timeliness of performance values, the collection cycle has been shortened from 15 minutes to 5 minutes or even shorter.
[0004] As network management servers manage an increasing number of devices, the types of performance indicators collected increase, and the collection cycle shortens, more and more data needs to be collected and stored, which greatly increases the storage cost of the performance collection data corresponding to the collected performance indicators and the operating pressure of the network management server. Summary of the invention
[0005] In view of this, the present application provides a method and device for storing performance data on a network management server, which can reduce data storage costs and system operation pressure.
[0006] To solve the above technical problems, the technical solution of this application is implemented as follows: In one embodiment, a method for storing performance data on a network management server is provided, wherein a collection period and a difference threshold are configured for each performance indicator; for each performance indicator, the method comprises: Collecting performance data corresponding to the performance indicator based on the collection period; In response to the performance data being collected, calculating an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; If it is determined that the absolute value of the difference in the calculated performance data is not greater than the difference threshold, waiting for data collection in the next collection cycle; If it is determined that the absolute value of the difference of the calculated performance data is greater than the difference threshold, the currently collected performance data and data collection time are stored, and data collection in the next collection cycle is waited for.
[0007] in, The collection period configured for each performance indicator is the same or different; The difference threshold configured for each performance indicator is the same or different; and the difference threshold configured is in a numerical mode or a percentage mode.
[0008] Wherein, the method further comprises: For each of the performance indicators, respectively configure an effective range; After the performance data is collected in response, and before the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator is calculated, the method further comprises: Comparing the collected performance data with the effective range corresponding to the performance indicator; If it is determined that the collected performance data is within the corresponding effective range, then executing the step of calculating the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; If it is determined that the collected performance data is not within the corresponding effective range, the currently collected performance data and data collection time are stored, and data collection in the next collection cycle is waited for.
[0009] The effective range configured for each of the performance indicators is the same or different; The effective range configured for each performance indicator is one effective interval or multiple effective intervals; if there are multiple effective intervals, the relationship between the multiple effective intervals is logical OR, and there is no intersection in range between the multiple effective intervals.
[0010] Wherein, the method further comprises: Setting a collection heartbeat for each of the performance indicators; After determining that the absolute value of the difference of the calculated performance data is not greater than the difference threshold, before waiting for data collection in the next collection cycle, the method further includes: Calculate the absolute value of the difference between the data collection time of the currently collected performance data and the data collection time corresponding to the latest performance data corresponding to the stored performance indicator; Determine whether the absolute value of the calculated data collection time difference is less than the collection heartbeat, if so, wait for data collection in the next collection cycle; otherwise, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
[0011] The collection heartbeat set for each performance indicator may be the same or different.
[0012] in, The performance indicators for collecting performance data are any one or any combination of the following: Temperature, voltage, current, CPU utilization, interface transmit and receive rates, and bandwidth utilization.
[0013] In another embodiment, a performance data storage device on a network management server is provided, the device comprising: A configuration unit, for configuring a collection period and a difference threshold for each performance indicator; for each performance indicator; A collection unit, configured to collect performance data corresponding to the performance indicator based on the collection period; a calculation unit, configured to calculate, in response to the performance data being collected, an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; A processing unit is used to wait for data collection in the next collection cycle if it is determined that the absolute value of the difference in the calculated performance data is not greater than the difference threshold; if it is determined that the absolute value of the difference in the calculated performance data is greater than the difference threshold, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
[0014] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a performance data storage method on a network management server when executing the program.
[0015] In another embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, a performance data storage method is implemented on a network management server.
[0016] As can be seen from the above technical solution, in the above embodiment, by configuring the data collection cycle and difference threshold for each performance indicator, when the collection cycle is up, the data collected for a performance indicator and the latest performance data corresponding to the stored performance indicator are stored only when the absolute value of the difference is not less than the set corresponding difference threshold; otherwise, the data is not stored, which greatly reduces the storage amount of the performance data. The implementation of this solution can reduce the data storage cost and system operation pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 This is a flow chart of a method for storing performance data on a network management server in an embodiment of the present application; Figure 2 This is a flow chart of another method for storing performance data on a network management server in an embodiment of the present application; Figure 3 This is a schematic diagram of the structure of a performance data storage device on a network management server in an embodiment of the present application; Figure 4 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe the order or precedence of the objects. It should be understood that the data used in this way can be interchanged where appropriate, so that the implementation of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0021] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0022] In recent years, as users have increased their requirements for the availability and stability of network equipment, users not only need to pay attention to the current operating status of the equipment, but also need to understand the operating trends of the equipment so that they can expand capacity in time before performance bottlenecks occur to avoid affecting the business. In addition, users have collected more types of performance indicators to gain a more comprehensive understanding of the operating status of equipment. At the same time, in order to ensure the accuracy and timeliness of performance values, the collection cycle has been shortened from 15 minutes to 5 minutes or even shorter.
[0023] Taking bandwidth utilization as an example, users can monitor the load status of the device by collecting the bandwidth utilization index of the device every 5 minutes and recording the collection results and the corresponding data collection time. This helps users determine whether the device needs to be expanded at the moment and whether there will be a need for expansion in the future by analyzing the changing trend of historical collection results.
[0024] As network management servers manage an increasing number of devices, the types of performance indicators collected increase, and the collection cycle shortens, more and more data needs to be collected and stored, which greatly increases the storage cost of the performance collection data corresponding to the collected performance indicators and the operating pressure of the network management server.
[0025] Based on the above problems, a performance data storage method on a network management server is provided in an embodiment of the present application. In the embodiment of the present application, a data collection period and a difference threshold are configured for each performance indicator. When the collection period is reached, the data is stored only when the absolute value of the difference between the performance data collected for a performance indicator and the latest performance data corresponding to the stored performance indicator is not less than the set corresponding difference threshold; otherwise, the data is not stored, which greatly reduces the storage amount of the performance data. The implementation of this solution can reduce the data storage cost and system operation pressure.
[0026] Before implementing performance data storage on the network management server in the embodiment of the present application, the following configuration needs to be performed: The performance indicators of the collected performance data in the embodiment of the present application may be any one or any combination of the following: Temperature, voltage, current, CPU utilization, interface transceiver rate, and bandwidth utilization, but not limited to these.
[0027] Configure the following parameters for each performance indicator: Collection cycle, difference threshold, effective range and collection heartbeat; The collection period configured for each performance indicator is the same or different; The difference threshold configured for each performance indicator is the same or different, and the difference threshold configured is a numeric mode or a percentage mode.
[0028] Among them, in the numerical mode: after setting the difference threshold S, the value of the performance data corresponding to the performance indicator collected in the current period is C, the value of the performance data stored for the performance indicator is P, and the absolute value of C-P is greater than S, then the performance data of the performance indicator currently collected is stored; otherwise, it is not stored.
[0029] Percentage mode: After setting the difference threshold S, if the value of the performance data corresponding to the performance indicator collected in the current period is C, the value of the performance data stored for the performance indicator is P, and the absolute value of C-P is greater than P×S%, then the performance data of the performance indicator currently collected is stored; otherwise, it is not stored.
[0030] By controlling the storage of the collected performance data through the difference threshold, the storage cost can be reduced without affecting the subsequent use of the performance data by the user.
[0031] The effective range configured for each performance indicator is the same or different; the effective range configured for each performance indicator is one effective interval or multiple effective intervals; if there are multiple effective intervals, the relationship between the multiple effective intervals is logical OR, and there is no intersection in range between the multiple effective intervals.
[0032] For example, two effective intervals are set to 'greater than or equal to X' and 'greater than or equal to M and less than or equal to N', where N is less than X. If the performance data M collected for a performance indicator is greater than or equal to X, or greater than or equal to M and less than or equal to N, a difference threshold judgment process is required. Otherwise, no difference threshold judgment is required, and the currently collected performance data and the corresponding data collection time are directly stored.
[0033] By setting the effective range, users can set difference thresholds for performance indicators only in intervals with low attention.
[0034] The collection heartbeat set for each performance indicator can be the same or different.
[0035] The collection heartbeat is set to prevent data distortion caused by too little data stored in the database due to the performance data collected for a performance indicator for a long time being within the difference threshold. For example, after a set of data is recorded at 8 o'clock, the data within 3 hours is within the difference threshold. At this time, the data recorded after 8 o'clock in the database is still only a set of records at 8 o'clock. It will be impossible to determine the operation status during the period from 8 o'clock to 11 o'clock, whether there is no collection or the data is collected but within the difference threshold.
[0036] If the performance indicators for which performance data needs to be collected are temperature, CPU utilization, and broadband utilization, then the parameters set for temperature are: collection cycle 1, difference threshold 1, effective range 1, and collection heartbeat 1; the parameters set for CPU utilization are: collection cycle 2, difference threshold 2, effective range 2, and collection heartbeat 2; the parameters set for broadband utilization are: collection cycle 3, difference threshold 3, effective range 3, and collection heartbeat 3, then collection cycle 1, collection cycle 2, and collection cycle 3 can be the same or different, difference threshold 1, difference threshold 2, and difference threshold 3 can be the same or different; effective range 1, effective range 2, and effective range 3 can be the same or different; collection heartbeat 1, collection heartbeat 2, and collection heartbeat 3 can be the same or different; the differences here include complete differences and partial differences.
[0037] The following is a detailed description of the performance data storage process on the network management server implemented in the embodiment of the present application in conjunction with the accompanying drawings.
[0038] See also Figure 1 , Figure 1 This is a flow chart of a method for storing performance data on a network management server in an embodiment of the present application. The specific steps are: Step 101: Collect performance data corresponding to the performance indicator based on a collection period.
[0039] For each performance indicator, when the collection period of the performance indicator expires, performance data collection for the performance indicator begins.
[0040] Step 102, in response to the performance data being collected, calculate the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator.
[0041] Step 103: If it is determined that the absolute value of the calculated performance data difference is not greater than the difference threshold, then wait for data collection in the next collection cycle, and end this process.
[0042] Step 104: If it is determined that the absolute value of the calculated performance data difference is greater than the difference threshold, the currently collected performance data and data collection time are stored, and data collection in the next collection cycle is waited for.
[0043] In the embodiment of the present application, the data collection cycle and difference threshold are configured for each performance indicator. When the collection cycle is up, the data collected for a performance indicator is stored only when the absolute value of the difference between the performance data collected for a performance indicator and the latest performance data corresponding to the stored performance indicator is not less than the set corresponding difference threshold; otherwise, the data is not stored, which greatly reduces the storage amount of the performance data. The implementation of this solution can reduce the data storage cost and system operation pressure.
[0044] See also Figure 2 , Figure 2 This is a flow chart of another method for storing performance data on a network management server in an embodiment of the present application. The specific steps are: Step 201: Collect performance data corresponding to the performance indicator based on a collection period.
[0045] For each performance indicator, when the collection period of the performance indicator expires, performance data collection for the performance indicator begins.
[0046] Step 202: In response to the performance data being collected, the collected performance data is compared with the effective range corresponding to the performance indicator.
[0047] Step 203: If it is determined that the collected performance data is not within the corresponding effective range, execute step 209.
[0048] The interval outside the effective range is the interval that requires high attention. Therefore, the performance data outside the effective range needs to be stored directly.
[0049] Therefore, the effective range in the embodiment of the present application is a low-attention interval, and the range outside the effective range is a high-attention interval, not the validity or invalidity of the numerical value.
[0050] Step 204: If it is determined that the collected performance data is within the corresponding effective range, the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator is calculated.
[0051] The difference threshold is judged only when it is determined that the collected performance data is within the corresponding effective range. In this way, the difference threshold can be set for the performance indicator only in the interval with low attention.
[0052] Step 205 : If it is determined that the absolute value of the calculated difference in performance data is greater than the difference threshold, step 209 is executed.
[0053] When the absolute value of the difference is greater than the difference threshold, the newly collected performance data is directly stored, which can greatly reduce the cost of storing data.
[0054] Step 206, if it is determined that the absolute value of the calculated performance data difference is not greater than the difference threshold, calculate the absolute value of the difference between the data collection time of the currently collected performance data and the data collection time corresponding to the latest performance data corresponding to the stored performance indicator.
[0055] Step 207, determining whether the absolute value of the calculated data acquisition time difference is less than the acquisition heartbeat, if yes, executing step 208; otherwise, executing step 209; Performance data that is less than the collection heartbeat may not be stored to reduce the storage volume. Performance data that is not less than the collection heartbeat may be stored to prevent data distortion caused by too little data being stored in the database due to the performance data collected for a performance indicator being within the difference threshold for a long time.
[0056] Step 208, waiting for data collection in the next collection cycle. End this process; Step 209, storing the currently collected performance data and data collection time, and waiting for data collection in the next collection cycle.
[0057] In the embodiment of the present application, taking the collected performance data as a numerical value as an example, the two data can be directly subtracted. If the performance data of some performance indicators are not numerical values, the numerical representation can be obtained through analysis and calculation, and then the performance data can be added or subtracted.
[0058] In the embodiment of the present application, by configuring the data collection cycle, effective range, difference threshold and collection heartbeat for each performance indicator, when the collection cycle is up, when the performance data is collected for a performance indicator, when the performance data does not belong to the corresponding effective range, it needs to be stored, so that the performance data that needs high attention can be stored; when the performance data belongs to the corresponding effective range, and the absolute value of the difference with the stored performance data is greater than the preset threshold, it needs to be stored, so that the performance data with a relatively large jump can be stored; and the data with little change does not need to be stored, reducing the amount of stored performance data; when the performance data belongs to the corresponding effective range, the absolute value of the difference with the stored performance data is not greater than the preset threshold, and the absolute value of the difference between the current data collection time and the latest stored data collection time is not less than the collection heartbeat, it needs to be stored; this can prevent the performance data collected for a performance indicator for a long time from being within the difference threshold, resulting in data distortion caused by too little data being saved in the database; the performance data collected in other cases does not need to be stored. Such an implementation scheme reduces the storage cost of performance indicator data, and the reduction in storage volume also improves the response speed of the system and reduces the operating pressure of the system.
[0059] Based on the same inventive concept, the embodiment of the present application also provides a performance data storage device on a network management server. Figure 3 , Figure 3 This is a schematic diagram of the structure of a performance data storage device on a network management server in an embodiment of the present application. The device includes: A configuration unit 301 is used to configure a collection period and a difference threshold for each performance indicator; for each performance indicator; A collection unit 302, configured to collect performance data corresponding to the performance indicator based on a collection period; A calculation unit 303, configured to calculate, in response to the performance data being collected, an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; Processing unit 304 is used to wait for data collection in the next collection cycle if it is determined that the absolute value of the difference in the calculated performance data is not greater than the difference threshold; if it is determined that the absolute value of the difference in the calculated performance data is greater than the difference threshold, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
[0060] In another embodiment, The collection period configured for each performance indicator is the same or different; The difference threshold configured for each performance indicator is the same or different; and the difference threshold configured is a numeric mode or a percentage mode.
[0061] In another embodiment, The configuration unit 301 is further used to configure the effective range for each performance indicator; The calculation unit 303 is further used to compare the collected performance data with the effective range corresponding to the performance indicator in response to the collected performance data; if it is determined that the collected performance data is within the corresponding effective range, the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator is calculated; if it is determined that the collected performance data is not within the corresponding effective range, the processing unit 304 is triggered to store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
[0062] In another embodiment, The effective range configured for each performance indicator is the same or different; The effective range configured for each performance indicator is one effective interval or multiple effective intervals. If there are multiple effective intervals, the relationship between the multiple effective intervals is logical OR, and there is no intersection in the range between the multiple effective intervals.
[0063] In another embodiment, The configuration unit 301 is further used to set a collection heartbeat for each performance indicator; The calculation unit 303 is further configured to calculate the absolute value of the difference between the data collection time of the currently collected performance data and the data collection time corresponding to the latest performance data corresponding to the stored performance indicator if it is determined that the absolute value of the difference of the calculated performance data is not greater than the difference threshold; The processing unit 304 is further used to determine whether the absolute value of the calculated data collection time difference is less than the collection heartbeat. If so, wait for data collection in the next collection cycle; otherwise, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
[0064] In another embodiment, the collection heartbeat set for each performance indicator is the same or different.
[0065] In another embodiment, the performance indicator of the collected performance data is any one or any combination of the following: Temperature, voltage, current, CPU utilization, interface transmit and receive rates, and bandwidth utilization.
[0066] In another embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a performance data storage method on a network management server when executing the program.
[0067] In another embodiment, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, a performance data storage method is implemented on a network management server.
[0068] Figure 4 Schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, the electronic device may include: a processor (Processor) 410, a communication interface (Communications Interface) 420, a memory (Memory) 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the following method: Configure the collection period and difference threshold for each performance indicator; Collect performance data corresponding to performance indicators based on the collection cycle; In response to the performance data being collected, calculating an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; If it is determined that the absolute value of the difference of the calculated performance data is not greater than the difference threshold, then wait for data collection in the next collection cycle; If it is determined that the absolute value of the calculated difference in the performance data is greater than the difference threshold, the currently collected performance data and the data collection time are stored, and the data collection of the next collection cycle is waited for.
[0069] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0070] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0072] The flow chart and block diagram in the accompanying drawings of the present application show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in the order of the standards in different figures. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0073] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims disclosed in this application may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in this application. In particular, without departing from the spirit and teachings of this application, the features described in the various embodiments and / or claims of this application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in this application.
[0074] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.
Claims
1. A method for storing performance data on a network management server, characterized in that: Configure the collection period and difference threshold for each performance indicator; For each performance indicator, the method includes: Collecting performance data corresponding to the performance indicator based on the collection period; In response to the performance data being collected, calculating an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; If it is determined that the absolute value of the difference in the calculated performance data is not greater than the difference threshold, waiting for data collection in the next collection cycle; If it is determined that the absolute value of the difference of the calculated performance data is greater than the difference threshold, the currently collected performance data and data collection time are stored, and data collection in the next collection cycle is waited for.
2. The method according to claim 1, characterized in that: The collection period configured for each performance indicator is the same or different; The difference threshold configured for each performance indicator is the same or different; and the difference threshold configured is in a numerical mode or a percentage mode.
3. The method according to claim 1, characterized in that The method further comprises: For each of the performance indicators, respectively configure an effective range; After the performance data is collected in response, and before the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator is calculated, the method further comprises: Comparing the collected performance data with the effective range corresponding to the performance indicator; If it is determined that the collected performance data is within the corresponding effective range, then executing the step of calculating the absolute value of the difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; If it is determined that the collected performance data is not within the corresponding effective range, the currently collected performance data and data collection time are stored, and data collection in the next collection cycle is waited for.
4. The method according to claim 3, characterized in that The effective range configured for each of the performance indicators is the same or different; The effective range configured for each of the performance indicators is one effective interval or multiple effective intervals; If there are multiple valid intervals, the relationship between the multiple valid intervals is a logical OR, and there is no intersection in range between the multiple valid intervals.
5. The method according to claim 1, characterized in that: The method further comprises: Setting a collection heartbeat for each of the performance indicators; After determining that the absolute value of the difference of the calculated performance data is not greater than the difference threshold, before waiting for data collection in the next collection cycle, the method further includes: Calculate the absolute value of the difference between the data collection time of the currently collected performance data and the data collection time corresponding to the latest performance data corresponding to the stored performance indicator; Determine whether the absolute value of the calculated data collection time difference is less than the collection heartbeat, if so, wait for data collection in the next collection cycle; otherwise, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
6. The method according to claim 5, characterized in that The collection heartbeat set for each of the performance indicators is the same or different.
7. The method according to any one of claims 1 to 6, characterized in that: The performance indicators for collecting performance data are any one or any combination of the following: Temperature, voltage, current, CPU utilization, interface transmit and receive rates, and bandwidth utilization.
8. A performance data storage device on a network management server, characterized in that: The device comprises: A configuration unit, for configuring a collection period and a difference threshold for each performance indicator; for each performance indicator; A collection unit, configured to collect performance data corresponding to the performance indicator based on the collection period; a calculation unit, configured to calculate, in response to the performance data being collected, an absolute value of a difference between the currently collected performance data and the latest performance data corresponding to the stored performance indicator; A processing unit is used to wait for data collection in the next collection cycle if it is determined that the absolute value of the difference in the calculated performance data is not greater than the difference threshold; if it is determined that the absolute value of the difference in the calculated performance data is greater than the difference threshold, store the currently collected performance data and data collection time, and wait for data collection in the next collection cycle.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.