CN111355624B - Self-adaptive equipment performance acquisition method and device - Google Patents

Self-adaptive equipment performance acquisition method and device Download PDF

Info

Publication number
CN111355624B
CN111355624B CN201811581721.0A CN201811581721A CN111355624B CN 111355624 B CN111355624 B CN 111355624B CN 201811581721 A CN201811581721 A CN 201811581721A CN 111355624 B CN111355624 B CN 111355624B
Authority
CN
China
Prior art keywords
acquisition
performance
time consumption
interval
current
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.)
Active
Application number
CN201811581721.0A
Other languages
Chinese (zh)
Other versions
CN111355624A (en
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201811581721.0A priority Critical patent/CN111355624B/en
Publication of CN111355624A publication Critical patent/CN111355624A/en
Application granted granted Critical
Publication of CN111355624B publication Critical patent/CN111355624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a self-adaptive equipment performance acquisition method and a device, which comprises the steps of firstly carrying out secondary performance acquisition by taking acquisition time corresponding to primary performance acquisition as an acquisition interval, recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time of two times; and updating the current acquisition interval according to the acquisition time consumption in the subsequent acquisition. The invention automatically adjusts the acquisition interval of the equipment to enable the equipment to work in an optimal state, and the acquisition interval can be automatically adapted according to the situation of the local point network/equipment, thereby avoiding the work of manual configuration and avoiding the need of a user to try again and again.

Description

Self-adaptive equipment performance acquisition method and device
Technical Field
The invention belongs to the technical field of equipment maintenance, and particularly relates to a self-adaptive equipment performance acquisition method and device.
Background
With the development of society, the scale of the network is larger and larger, and the management and maintenance of the network are more and more emphasized, wherein the monitoring of the state of the device in the network is a very important item. By collecting parameters such as the running state of a CPU (central processing unit)/a memory/a bandwidth/a key process of the network equipment, a user can visually see the running state of the network equipment, and can timely check and process abnormal conditions.
In the performance collection of the equipment, the collection interval and the abnormal standard are core problems, and whether the user can quickly and accurately find the abnormal state is determined. The current collection interval is mainly realized by a manual configuration mode, for example, the collection interval defaults to 5 minutes (every five minutes, data are collected on the device once, the collected data are performance data of the last five minutes, and one minute is used as a scale, that is, 5 data are to be collected), if the 5 minutes are found to be too short in the use process, all the device information cannot be collected within 5 minutes, then collection tasks are piled up, and at this time, a user is required to manually prolong the collection interval. In addition, the abnormality threshold is also a specific value set manually, and for example, if the CPU usage exceeds 50%, it is considered abnormal, and the like.
According to the device performance acquisition method, a user cannot know a proper acquisition interval, and can obtain a proper value only through manual adjustment and one attempt for a long time. And the collected equipment information has great relation with the network condition and the equipment performance of the scene, and even if the collection interval is proper during the setting, the collection interval which can be set after a period of time is not suitable. In addition, in an actual scene, the running information of the equipment is related to the user operation frequency, the service operation is frequent in the daytime, the equipment load is high, the operation is less at night, and the load is relatively low. Setting a uniform acquisition interval necessarily presents an inaccurate problem
Disclosure of Invention
The invention aims to provide a self-adaptive equipment performance acquisition method and a self-adaptive equipment performance acquisition device, which are used for solving the problems that in the prior art, an appropriate acquisition interval is difficult to find through manual setting of the acquisition interval, and the set acquisition interval is easy to be inaccurate in actual operation.
In order to achieve the purpose, the technical scheme of the invention is as follows:
an adaptive device performance acquisition method, comprising:
receiving a task of acquiring the performance of equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time corresponding to the primary performance acquisition as an acquisition interval, and recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition;
calculating the current acquisition interval according to the recorded time consumption of the two-time acquisition;
starting performance acquisition according to the current acquisition interval, and recording the acquisition time;
comparing the acquisition time consumption with the current acquisition interval, if the difference between the continuous N acquisition time consumption and the current acquisition interval exceeds a first time threshold, recalculating the current acquisition interval according to the current acquisition time consumption and the last acquisition time consumption, and performing performance acquisition again at the recalculated current acquisition interval; otherwise, keeping the current acquisition interval unchanged, and continuing performance acquisition.
Further, the calculating a current acquisition interval according to the recorded two acquisition time consumption includes:
calculating the network time consumption X acquired by single equipment and the time consumption coefficient a acquired by the single equipment according to the acquisition time consumption corresponding to the first performance acquisition and the second performance acquisition;
presetting the current acquisition interval to be consistent with the acquisition time consumption, and calculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
Further, the recalculating the current acquisition interval according to the current acquisition time and the last acquisition time includes:
according to the current acquisition time consumption and the last acquisition time consumption, recalculating the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, presetting that the current acquisition interval is consistent with the acquisition time consumption, and recalculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
Further, after receiving the task of acquiring the device performance, the adaptive device performance acquisition method further includes:
checking whether the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment exist, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and starting performance acquisition.
Or checking whether the current acquisition interval exists or not, if so, starting acquisition according to the current acquisition interval, if not, carrying out primary performance acquisition according to a preset initial acquisition interval, carrying out secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, and recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition.
Further, the adaptive device performance acquisition method further includes:
and if the calculation is wrong or the calculated current acquisition interval exceeds a preset range, performing primary performance acquisition again according to the preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as the acquisition interval, recording the acquisition time consumption of the primary performance acquisition and the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time consumption of two times.
The invention also provides a self-adaptive device performance acquisition device, which comprises:
the task receiving module is used for receiving a task of acquiring the performance of the equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time corresponding to the primary performance acquisition as an acquisition interval, recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time of two times;
the performance acquisition module is used for starting performance acquisition according to the current acquisition interval and recording the time consumed by acquisition;
the updating module is used for comparing the acquisition time consumption with the current acquisition interval, if the difference between the continuous N acquisition time consumption and the current acquisition interval exceeds a first time threshold, recalculating the current acquisition interval according to the current acquisition time consumption and the last acquisition time consumption, and performing performance acquisition again at the recalculated current acquisition interval; otherwise, keeping the current acquisition interval unchanged, and returning to the performance acquisition module to continue performance acquisition.
Further, the task receiving module calculates a current collection interval according to the recorded consumed time of two times of collection, and executes the following operations:
calculating the network time consumption X acquired by single equipment and the time consumption coefficient a acquired by the single equipment according to the acquisition time consumption corresponding to the first performance acquisition and the second performance acquisition;
presetting the current acquisition interval to be consistent with the acquisition time consumption, and calculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
Further, the update module recalculates the current collection interval according to the current collection time and the last collection time, and executes the following operations:
according to the current acquisition time consumption and the last acquisition time consumption, recalculating the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, presetting that the current acquisition interval is consistent with the acquisition time consumption, and recalculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
Further, after receiving the task of acquiring the device performance, the task receiving module further performs the following operations:
checking whether the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment exist or not, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and entering a performance acquisition module to start performance acquisition;
or checking whether a current acquisition interval exists or not, if so, starting acquisition according to the current acquisition interval, if not, carrying out primary performance acquisition according to a preset initial acquisition interval, carrying out secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition, and entering a performance acquisition module to start performance acquisition.
Further, the update module further performs the following operations:
and if the calculation is wrong or the calculated current acquisition interval exceeds the preset range, returning to the task receiving module again to start calculating the current acquisition interval and start performance acquisition.
According to the self-adaptive equipment performance acquisition method and device, historical data is used as a blueprint, a proper acquisition interval is automatically calculated, a performance acquisition task is issued, the performance data of the equipment is acquired as quickly as possible, and the acquisition interval of the equipment is automatically adjusted to enable the equipment to work in an optimal state; meanwhile, a time alarm threshold value is set, so that the acquisition interval can be automatically adapted according to the situation of the local point network/equipment and is always in a relatively proper range, a user does not need to try again, the manual configuration work is omitted, and the accuracy is improved.
Drawings
Fig. 1 is a flow chart of a method for acquiring adaptive device performance according to the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the drawings and examples, which should not be construed as limiting the present invention.
In the device performance collection, there are many factors that affect the time consumption of the collection, including but not limited to the number of devices to be collected, the time required for collecting a single device, the size of the interval of data to be collected, the time consumption of network transmission, the type of device, and so on.
For the same device type, the total Time consumption Time2 for one-Time device performance acquisition is calculated as follows:
Time2=n*X+n*a*Time1 (1)
the Time2 is the acquisition Time, X is the network Time acquired by a single device, n is the number of devices to be acquired, a is the Time consumption coefficient acquired by a single device, and is the Time consumed by acquiring data in a unit Time (for example, one minute) of a single device, and the Time1 is the acquisition interval.
It is easy to understand that the value of n is determined in the practical application scenario and represents the number of the acquisition devices required by the user. The value of X is related to the network condition of the use scene, and the value is generally stable and does not fluctuate greatly. The value of a is related to the processing performance of the equipment, and the value is stable for the same equipment. In addition, in an actual network application environment, even if different devices exist in a network, the value of X and the value of a are relatively stable in combination, and both values are suitable for calculation by using formula 1.
In the best case, the acquisition interval and the acquisition time should be the same, for example, the acquisition interval is 5 minutes, and then the time required to acquire the device performance data of the last 5 minutes is 5 minutes, so that the user can see the acquisition result as soon as possible. Bringing into the above equation requires that Time1 be nearly the same as Time 2.
In formula 1, the device performance of the devices is assumed to be acquired one by one, and if parallel acquisition is considered, that is, a plurality of devices are acquired simultaneously, formula 1 above will be changed. In the following examples, formula 1 is described as an example.
Based on the above description, an embodiment of the present invention is shown in fig. 1, and an adaptive device performance acquisition method includes:
and S1, receiving the task of acquiring the performance of the equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, and recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition.
The present embodiment is suitable for performing performance acquisition on devices in a network, and therefore "performance acquisition" in the present embodiment is also simply expressed as "acquisition", which is not described in detail below.
In this embodiment, after receiving the performance task of the acquisition device, the acquisition device may perform the first acquisition according to a preset initial acquisition interval, assuming that the total number n of the acquired devices is 1000, the preset initial acquisition interval is 5 minutes, recording the acquisition time of the first acquisition, assuming that the first acquisition time is 10 minutes, and obtaining the following equation:
10=1000*X+1000*a*5 (2)。
i.e. 5 minutes of data are collected, which actually takes 10 minutes.
Then, taking the acquisition time of the first acquisition as an acquisition interval to perform second acquisition, and assuming that the acquisition time of the second acquisition is 14 minutes, obtaining the following equation:
14=1000*X+1000*a*10 (3)。
i.e. 10 minutes of data are collected, which actually takes 14 minutes.
And step S2, calculating the network time consumption X acquired by a single device and the time consumption coefficient a acquired by the single device according to the acquisition time consumption of the first and second performance acquisition.
According to the above formula 2 and formula 3, X is 0.0006 and a is 0.00008.
And step S3, presetting the current acquisition interval to be consistent with the acquisition time consumption according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, and calculating the current acquisition interval.
The calculation formula is as follows:
Time5=1000*0.0006+1000*0.0008*Time5
in the formula, the acquisition Time consumption is consistent with the acquisition interval, which is Time5, and the calculated Time5 is 3, that is, the current acquisition interval is 3 minutes.
It should be noted that, since the acquisition interval and the acquisition time consumption should be consistent in the optimal case, the calculation formula herein assumes that the acquisition interval and the acquisition time consumption are consistent, and the acquisition is most efficient in such a case.
And step S4, starting performance acquisition according to the current acquisition interval and recording the time consumption of acquisition.
After the current acquisition interval is calculated, the next acquisition is started at the acquisition interval, and the time consumed by the acquisition is recorded.
And step S5, comparing the acquisition consumed time with the current time interval, if the difference between the acquisition consumed time of N times and the current acquisition interval exceeds a first time threshold, entering step S6, otherwise, entering step S7, wherein N is more than or equal to 2.
Since the network in the field may fluctuate and the device load may be different, which may cause fluctuations in the values of X and a, the present embodiment needs to update X, a to adapt to the current network conditions.
That is, the present embodiment records the acquisition time consumption at each acquisition, and if the difference between the acquisition time consumption of N consecutive times and the expected time consumption exceeds the first time threshold, it is determined that the values of X and a need to be updated. Here N is preset to be 2 or more to avoid occasional noise effects. The first time threshold may be set according to actual conditions, for example, 1 minute, or half minute, and is not described herein again.
Step S6, according to the current collection time consumption and the last collection time consumption, recalculating the network time consumption X collected by a single device and the time consumption coefficient a collected by a single device, recalculating the current collection interval according to the calculated network time consumption X collected by a single device and the time consumption coefficient a collected by a single device, and returning to step S4.
And the same as the method in the step S3, if the current acquisition interval is consistent with the acquisition time consumption, recalculating the acquisition interval to obtain the updated current acquisition interval, and returning to the step S4 to continue the acquisition.
And step S7, keeping the current acquisition interval unchanged, and returning to step S4.
If the acquisition time consumption of each acquisition is almost the same as the expected acquisition time consumption, wherein the expected acquisition time consumption is consistent with the current acquisition interval, the acquisition is relatively efficient, and the equipment performance acquisition is continuously carried out by taking the current acquisition interval as the acquisition interval.
In another embodiment of the invention, the situation that the network of the equipment is disconnected in the field is considered, and the time consumption of acquisition is greatly influenced in the case of the network disconnection. Therefore, before acquiring the performance of the device each time, the embodiment confirms whether the network is normal or not in a ping mode, and if the network is not through, the acquisition is not performed.
That is, in step S4, the present application starts to collect data according to the current collection interval, records the time consumed by collection, and further includes:
and detecting whether the network of the equipment to be acquired is connected or not, if the network is not connected, stopping acquisition and sending an alarm.
In the embodiment, whether the network of the device to be acquired is communicated is detected firstly, the ping mode can be adopted for detection, if the network is not communicated, the alarm is sent out, the acquisition is not carried out any more, and the acquisition is started after the network is communicated.
In another embodiment of the present invention, the adaptive device performance acquiring method further includes:
checking whether the network time consumption X of single equipment acquisition and the time consumption coefficient a of the single equipment acquisition exist, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and entering the step S4 to start acquisition.
In this embodiment, when the device performance acquisition has been performed in the previous network and the network is not changed, the current acquisition interval may be directly calculated according to the network time consumption X acquired by a single device and the time consumption coefficient a acquired by a single device, which are obtained by calculation in the previous acquisition, and the acquisition is started.
In another embodiment of the present invention, the adaptive device performance acquiring method further includes:
it is checked whether there is already a current acquisition interval, and if so, it proceeds to step S4 to start acquisition, and if not, it starts from step S1.
In this embodiment, when the device performance acquisition has been performed in the previous network and the network is not changed, the acquisition can be started directly according to the current acquisition interval calculated in the previous acquisition.
In another embodiment of the present invention, the adaptive device performance acquiring method further includes:
checking whether the current acquisition interval is available, if so, entering step S4 to start acquisition, and if not, checking whether the network time consumption X of single equipment acquisition and the time consumption coefficient a of single equipment acquisition are available;
if the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment already exist, presetting that the current acquisition interval is consistent with the acquisition time consumption, calculating the current acquisition interval, and entering the step S4 to start acquisition; otherwise, it starts with step S1.
In this embodiment, when the device performance acquisition has been performed in the previous network and the network is not changed, it is checked whether the current acquisition interval is available, and then it is checked whether the network time consumption X for single device acquisition and the time consumption coefficient a for single device acquisition are available, and the acquisition is performed according to the processing methods of the above two embodiments, which is not described herein again.
In another embodiment of the present invention, the adaptive device performance acquiring method further includes:
in step S3 or step S6, if the calculation is erroneous or the calculated current acquisition interval exceeds the preset range, the process returns to step S1 to start again.
In order to keep the system stable and avoid that the acquisition time is over the expected time due to noise or network, so that the acquisition interval cannot be calculated correctly, or the calculated acquisition interval exceeds a preset range (alarm threshold), the method returns to step S1 to restart the calculation and acquisition or raise an alarm. In this case, the administrator can check the condition of the network, and start the method of the present invention again to perform smooth collection while ensuring that the network is normal.
The acquisition interval can be automatically adapted according to the situation of the local point network/equipment, so that the manual configuration work is avoided, and a user does not need to try again and again. By taking historical data as a blueprint, the proper acquisition interval is automatically calculated, and an acquisition task is issued, so that the performance data of the equipment can be acquired as fast as possible. And automatically adjusting the acquisition interval of the device to an optimal state. Meanwhile, an alarm threshold value is automatically set, so that the acquisition interval is in a relatively proper range, and the accuracy is improved.
Corresponding to the method, the device for acquiring the performance of the self-adaptive equipment comprises the following steps:
the task receiving module is used for receiving a task of acquiring the performance of the equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time corresponding to the primary performance acquisition as an acquisition interval, recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time of two times;
the performance acquisition module is used for starting performance acquisition according to the current acquisition interval and recording the time consumed by acquisition;
the updating module is used for comparing the acquisition time consumption with the current acquisition interval, if the difference between the continuous N acquisition time consumption and the current acquisition interval exceeds a first time threshold, recalculating the current acquisition interval according to the current acquisition time consumption and the last acquisition time consumption, and performing performance acquisition again at the recalculated current acquisition interval; otherwise, keeping the current acquisition interval unchanged, and returning to the performance acquisition module to continue performance acquisition.
Corresponding to the above method, in an embodiment of the present invention, the task receiving module calculates a current collection interval according to two recorded collection time consumptions, and executes the following operations:
calculating the network time consumption X acquired by single equipment and the time consumption coefficient a acquired by the single equipment according to the acquisition time consumption corresponding to the first performance acquisition and the second performance acquisition;
presetting the current acquisition interval to be consistent with the acquisition time consumption, and calculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
In another embodiment of the present invention, the update module recalculates the current collection interval according to the current collection time and the last collection time, and performs the following operations:
according to the current acquisition time consumption and the last acquisition time consumption, recalculating the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, presetting that the current acquisition interval is consistent with the acquisition time consumption, and recalculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
In another embodiment of the present invention, after accepting the task of acquiring the device performance, the task receiving module further performs the following operations:
checking whether the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment exist or not, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and entering a performance acquisition module to start performance acquisition;
or checking whether a current acquisition interval exists or not, if so, starting acquisition according to the current acquisition interval, if not, carrying out primary performance acquisition according to a preset initial acquisition interval, carrying out secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition, and entering a performance acquisition module to start performance acquisition.
In another embodiment of the present invention, the update module further performs the following operations:
and if the calculation is wrong or the calculated current acquisition interval exceeds the preset range, returning to the task receiving module again to start calculating the current acquisition interval and start performance acquisition.
The above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and those skilled in the art can make various corresponding changes and modifications according to the present invention without departing from the spirit and the essence of the present invention, but these corresponding changes and modifications should fall within the protection scope of the appended claims.

Claims (10)

1. An adaptive device performance acquisition method, comprising:
receiving a task of acquiring the performance of equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time corresponding to the primary performance acquisition as an acquisition interval, and recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition;
calculating the current acquisition interval according to the recorded time consumption of the two-time acquisition;
starting performance acquisition according to the current acquisition interval, and recording the acquisition time;
comparing the acquisition time consumption with the current acquisition interval, if the difference between the continuous N acquisition time consumption and the current acquisition interval exceeds a first time threshold, recalculating the current acquisition interval according to the current acquisition time consumption and the last acquisition time consumption, and performing performance acquisition again at the recalculated current acquisition interval; otherwise, keeping the current acquisition interval unchanged, and continuing performance acquisition.
2. The adaptive device performance acquisition method of claim 1, wherein the calculating a current acquisition interval from the recorded two acquisition elapsed times comprises:
calculating the network time consumption X acquired by single equipment and the time consumption coefficient a acquired by the single equipment according to the acquisition time consumption corresponding to the first performance acquisition and the second performance acquisition;
presetting the current acquisition interval to be consistent with the acquisition time consumption, and calculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
3. The adaptive device performance acquisition method of claim 1, wherein the recalculating the current acquisition interval according to the current acquisition elapsed time and the last acquisition elapsed time comprises:
according to the current acquisition time consumption and the last acquisition time consumption, recalculating the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, presetting that the current acquisition interval is consistent with the acquisition time consumption, and recalculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
4. The adaptive device performance collection method of claim 2, wherein after accepting the task of collecting device performance, the adaptive device performance collection method further comprises:
checking whether the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment exist or not, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and starting performance acquisition;
or checking whether the current acquisition interval exists or not, if so, starting acquisition according to the current acquisition interval, if not, carrying out primary performance acquisition according to a preset initial acquisition interval, carrying out secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, and recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition.
5. The adaptive device performance collection method of claim 1, further comprising:
and if the calculation is wrong or the calculated current acquisition interval exceeds a preset range, performing primary performance acquisition again according to the preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as the acquisition interval, recording the acquisition time consumption of the primary performance acquisition and the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time consumption of two times.
6. An adaptive device performance acquisition apparatus, comprising:
the task receiving module is used for receiving a task of acquiring the performance of the equipment, performing primary performance acquisition according to a preset initial acquisition interval, performing secondary performance acquisition by taking acquisition time corresponding to the primary performance acquisition as an acquisition interval, recording the acquisition time of the primary performance acquisition and the acquisition time of the secondary performance acquisition, and calculating the current acquisition interval according to the recorded acquisition time of two times;
the performance acquisition module is used for starting performance acquisition according to the current acquisition interval and recording the time consumed by acquisition;
the updating module is used for comparing the acquisition time consumption with the current acquisition interval, if the difference between the continuous N acquisition time consumption and the current acquisition interval exceeds a first time threshold, recalculating the current acquisition interval according to the current acquisition time consumption and the last acquisition time consumption, and performing performance acquisition again at the recalculated current acquisition interval; otherwise, keeping the current acquisition interval unchanged, and returning to the performance acquisition module to continue performance acquisition.
7. The adaptive device performance acquisition apparatus according to claim 6, wherein the task receiving module calculates a current acquisition interval according to the recorded two acquisition time consumptions, and performs the following operations:
calculating the network time consumption X acquired by single equipment and the time consumption coefficient a acquired by the single equipment according to the acquisition time consumption corresponding to the first performance acquisition and the second performance acquisition;
presetting the current acquisition interval to be consistent with the acquisition time consumption, and calculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
8. The adaptive device performance collecting apparatus according to claim 6, wherein the updating module recalculates the current collecting interval according to the current collecting time and the last collecting time, and performs the following operations:
according to the current acquisition time consumption and the last acquisition time consumption, recalculating the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment, presetting that the current acquisition interval is consistent with the acquisition time consumption, and recalculating the current acquisition interval according to the calculated network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment.
9. The adaptive device performance collecting apparatus according to claim 7, wherein the task receiving module further performs the following operations after accepting the task of collecting device performance:
checking whether the network time consumption X acquired by the single equipment and the time consumption coefficient a acquired by the single equipment exist or not, if so, presetting the current acquisition interval to be consistent with the acquisition time consumption, calculating the current acquisition interval, and entering a performance acquisition module to start performance acquisition;
or checking whether a current acquisition interval exists or not, if so, starting acquisition according to the current acquisition interval, if not, carrying out primary performance acquisition according to a preset initial acquisition interval, carrying out secondary performance acquisition by taking acquisition time consumption corresponding to the primary performance acquisition as an acquisition interval, recording acquisition time consumption of the primary performance acquisition and the secondary performance acquisition, and entering a performance acquisition module to start performance acquisition.
10. The adaptive device performance acquisition apparatus of claim 6, wherein the update module further performs the following operations:
and if the calculation is wrong or the calculated current acquisition interval exceeds the preset range, returning to the task receiving module again to start calculating the current acquisition interval and start performance acquisition.
CN201811581721.0A 2018-12-24 2018-12-24 Self-adaptive equipment performance acquisition method and device Active CN111355624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811581721.0A CN111355624B (en) 2018-12-24 2018-12-24 Self-adaptive equipment performance acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811581721.0A CN111355624B (en) 2018-12-24 2018-12-24 Self-adaptive equipment performance acquisition method and device

Publications (2)

Publication Number Publication Date
CN111355624A CN111355624A (en) 2020-06-30
CN111355624B true CN111355624B (en) 2021-08-31

Family

ID=71193768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811581721.0A Active CN111355624B (en) 2018-12-24 2018-12-24 Self-adaptive equipment performance acquisition method and device

Country Status (1)

Country Link
CN (1) CN111355624B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102645564A (en) * 2012-04-14 2012-08-22 广西电网公司电力科学研究院 Automatic adjusting method for output stable time of multifunctional output source
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
CN105653426A (en) * 2015-12-30 2016-06-08 联想(北京)有限公司 Information processing method and corresponding device
CN108809760A (en) * 2018-06-07 2018-11-13 郑州云海信息技术有限公司 The control method and device in sampling period in sampled-data system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278381A1 (en) * 2004-05-26 2005-12-15 Yixin Diao Method and apparatus for online sample interval determination

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102645564A (en) * 2012-04-14 2012-08-22 广西电网公司电力科学研究院 Automatic adjusting method for output stable time of multifunctional output source
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
CN105653426A (en) * 2015-12-30 2016-06-08 联想(北京)有限公司 Information processing method and corresponding device
CN108809760A (en) * 2018-06-07 2018-11-13 郑州云海信息技术有限公司 The control method and device in sampling period in sampled-data system

Also Published As

Publication number Publication date
CN111355624A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN110441584B (en) Equipment running state monitoring method, device, storage medium and system
CN109733238B (en) Fault detection method, device, storage medium and processor
CN113835336B (en) Multi-dimensional self-adaptive metering device patrol and timing method for supporting electric power spot market
CN108180935B (en) Fault detection method and device of sensor
JP6754693B2 (en) How to match data and event gaps sent and received on networks using different communication technologies
WO2016136391A1 (en) Fault point locating device and method, electric power system monitoring system, and facility planning support system
CN111355624B (en) Self-adaptive equipment performance acquisition method and device
CN117579377A (en) Network data security intelligent supervision system based on cloud platform
CN113761027A (en) Calibration method and device for vehicle-mounted equipment to calibrate flameout state based on GPS (global positioning system) data and computer-readable storage medium
JP6381498B2 (en) Weighing meter state change detection device and program
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
CN111998963B (en) Alarm threshold value adjusting method and device applied to temperature detection equipment
US10965403B2 (en) Gap data collection for low energy devices
JP5976971B1 (en) Watch device and watch method
CN104346252A (en) Filtering method of monitoring chip for abnormal sensing data
CN113934458A (en) Time sequence index out-of-order detection method, device and medium
CN111220919B (en) Battery electric quantity detection method and device and vehicle
CN111309568A (en) Method and system for alarming aging of battery on server
CN115348486A (en) Wireless data management method and system applied to petrochemical industry system
CN116526415B (en) Power equipment protection device and control method thereof
CN113312758B (en) Health state evaluation method and device for wind generating set
CN109388217A (en) Determine that hard disk does not power on the method, apparatus and system of duration
CN111189502B (en) Water consumption monitoring device and water consumption monitoring method
CN108681822B (en) Reliability evaluation method and device for wide area protection starting and fault area positioning
CN118111055A (en) Method and device for monitoring air conditioner, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant