WO2019109352A1 - Method and device for sampling performance data of apparatus - Google Patents

Method and device for sampling performance data of apparatus Download PDF

Info

Publication number
WO2019109352A1
WO2019109352A1 PCT/CN2017/115294 CN2017115294W WO2019109352A1 WO 2019109352 A1 WO2019109352 A1 WO 2019109352A1 CN 2017115294 W CN2017115294 W CN 2017115294W WO 2019109352 A1 WO2019109352 A1 WO 2019109352A1
Authority
WO
WIPO (PCT)
Prior art keywords
performance data
period
interval
time
value
Prior art date
Application number
PCT/CN2017/115294
Other languages
French (fr)
Chinese (zh)
Inventor
刘金虎
陈安伟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780002849.4A priority Critical patent/CN110140326A/en
Priority to PCT/CN2017/115294 priority patent/WO2019109352A1/en
Publication of WO2019109352A1 publication Critical patent/WO2019109352A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Definitions

  • the present application relates to the field of data processing, and more particularly to a method and apparatus for sampling performance data of a device.
  • performance data of a device is typically sampled using a fixed sampling interval. If the sampling interval is set large, the sampled performance data may not accurately reflect the performance of the device over time. If the sampling interval is set small, the sampled performance data can accurately reflect the performance of the device over time, but the sampled performance data has a large amount of data and occupies more storage resources.
  • the present application provides a method and apparatus for sampling performance data of a device, reducing the amount of performance data obtained by sampling the performance data of the device, and accurately reflecting the performance of the device according to the performance data obtained after sampling. Changes over time.
  • a first aspect provides a method for sampling performance data of a device, including: determining a first time interval and a second time interval in a first preset time period, wherein the device is in the first time interval The degree of change in the value of the performance data is less than the degree of change in the value of the performance data of the device in the second time interval; in the first time interval, the first time is at the first sampling interval The performance data of the device in the interval is sampled; in the second time interval, the performance data of the device in the second time interval is sampled at a second sampling interval, wherein the first sampling interval is greater than The second sampling interval is described.
  • the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small.
  • the performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced.
  • the amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
  • the value of the performance data of the device may reflect the value of a certain type of performance parameter of the device.
  • the performance data of the device is data that changes with time in time
  • the method further includes: performing performance data of the device according to the second preset time period. Determining the period according to a trend of the value, and determining the first time interval and the second time interval in the first preset time period, including: determining the first time interval and the second time in the period The interval, the first preset time period is the period.
  • the period of the change of the value of the performance data of the device with time is the first preset time period, and the arrangement of the first time interval and the second time interval in the period is determined, so as to be in the time period after the period
  • the performance data of the device is sampled according to the arrangement of the first time interval and the second time interval in the cycle. It is avoided that the arrangement of the first time interval and the second time interval is determined in each period of the change of the value of the performance data of the device with time, which is advantageous for reducing the complexity of sampling the performance data of the device.
  • the determining the first time interval and the second time interval in the period includes: dividing the period into multiple time intervals, and determining the multiple The standard deviation of the performance data of the device in each time interval of each time interval; from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals, the time interval in which the standard deviation is smaller than the standard deviation threshold is selected as The first time interval; a time interval in which a standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval from a standard deviation set consisting of standard deviations corresponding to the plurality of time intervals.
  • the first time interval may be one or more time intervals within the period.
  • the first time interval and the second time interval are determined by the relationship between the standard deviation of the value of the performance data in the time interval and the standard deviation threshold, which is beneficial to reduce the division of the period into the first time interval and the first time interval.
  • the complexity of the two time intervals are determined by the relationship between the standard deviation of the value of the performance data in the time interval and the standard deviation threshold, which is beneficial to reduce the division of the period into the first time interval and the first time interval.
  • the determining the first time interval and the second time interval in the period includes: dividing the period into multiple time intervals, and determining the multiple a standard deviation of the performance data of the device in each time interval of each time interval; determining a time interval satisfying the selection rule of the initial interval as an initial interval based on the standard deviation corresponding to the plurality of time intervals respectively;
  • the initial interval determines the first time interval
  • the performance data in the first time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, where the target sampling point is located in the a sampling point adjacent to the end point of the initial interval, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfying
  • the performance data in the first time interval includes performance data in the initial interval, and performance data of the device corresponding to the target sampling point, where the target sampling point is outside the initial interval, and a sampling point adjacent to an end point of the initial interval, that is, an extension of an end point of the initial interval such that the first time interval contains as much performance data as possible, that is, a time period of the finally determined first time interval As large as possible, it is beneficial to further reduce the amount of data of the sampled data after sampling the performance data of the device.
  • the selection rule of the initial interval may include any one of the following: the standard deviation of the value of the performance data of the corresponding device in the multiple time intervals, where the minimum standard deviation corresponds to the initial interval; Among the standard deviations of the values of the performance data of the corresponding devices in the time interval, the time interval corresponding to the standard deviation smaller than the standard deviation threshold is the initial interval.
  • the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the first sampling interval in the first time interval, and And or in the second time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
  • an inverse relationship between a magnitude of a change in the value of the performance data of the device and a length of the first sampling interval in the first time interval And an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the second sampling interval in the second time interval
  • P represents the length of the first sampling interval or the second sampling interval
  • k is a preset number greater than 1
  • represents the device in the first time interval or the second time interval
  • the standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
  • the time interval used for sampling the performance data of the device in the time interval is determined based on an inverse relationship between the degree of change of the value of the performance data of the device in the time interval and the length of the sampling interval.
  • the value of the performance data of the reaction device that is more accurate for sampling data is more accurate with time.
  • the determining the period according to a trend of a value of performance data of the device in a second preset time period including: acquiring the a trend of changing the value of the performance data of the device over time in a preset time period, and dividing the second preset time period into N sub-time segments, where N is a positive integer; and the N sub-periods
  • N is a positive integer
  • the change trend of the value of the performance data of the device in the i-th sub-period is the reference, and the change trend of the value of the device performance data in the j-th sub-period within the N sub-periods is determined.
  • the degree of similarity between the trends of the performance data of the device in the i-th sub-period, j ⁇ [1, N], i ⁇ [1, N], j ⁇ i, and j and i is a positive integer; between the change trend of the value of the performance data of the device in the i-th sub-period and the change trend of the value of the performance data of the device in the j-th sub-period
  • selecting the performance of the device in the i-th sub-period Determining a target time period in which the change trend of the value is the same; determining a length of time between the first sampling point in the i-th sub-period and the second sampling point in the target time period, the first sampling point The position in the i-th sub-period is the same as the position of the second sampling point in the target time period; selecting any sampling point in the second preset time period as the start of the period The time is determined by the length of time between the first sampling point
  • the change trend of the value of the performance data of the device in the i-th sub-period and the performance data of the device in the j-th sub-period The degree of similarity between the trends of the values is
  • Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period
  • t iy represents the yth in the i-th sub-period
  • the value of the performance data of the device, t jy represents the value of the performance data of the yth device in the jth sub-time period
  • Means the mean value of the performance data of the device in the i-th sub-period Indicates the mean value of the performance data of the device in the jth sub-period.
  • the method further includes: determining a third time interval in the first preset time period, and performance data of the device in the third time interval The mean value is higher than the performance data threshold; in the third time interval, the performance data in the third time interval is sampled at a third sampling interval, the third sampling interval being smaller than the first sampling interval.
  • the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, The occupancy rate of storage resources in the device.
  • sampling the performance data of the device in the third time interval by using the third sampling interval is beneficial to increasing the basis for subsequent analysis of the performance of the device.
  • an apparatus for sampling performance data of a device comprising various modules for performing the above method.
  • an apparatus for sampling performance data of a device having the functionality to implement the design of the above method.
  • These functions can be implemented in hardware or in software by executing the corresponding software.
  • the hardware or software includes one or more units corresponding to the functions described above.
  • an apparatus for sampling performance data of a device including a processor and a memory
  • the memory is for storing a computer program for calling and running the computer program from memory such that the apparatus performs the method of the above aspects.
  • a computer program product comprising: computer program code, causing a computer to perform the method of the above aspects when the computer program code is run on a computer.
  • a computer readable medium storing program code for causing a computer to perform the method of the above aspects when the computer program code is run on a computer.
  • a chip system comprising a processor, the means for sampling the performance data implementing the functions involved in the above aspects, for example, generating, receiving, transmitting, or processing the above method Data and/or information involved.
  • the chip system further comprises a memory for storing necessary program instructions and data of the terminal device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • FIG. 1 is a schematic block diagram of a monitoring scenario to which the embodiment of the present application is applied.
  • FIG. 2 is a schematic flowchart of a method for sampling performance data of a device according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram showing a distribution of a plurality of sub-periods in the second preset time period in the embodiment of the present application.
  • FIG. 4 is a schematic diagram showing a distribution of a plurality of sub-periods in a second preset time period according to another embodiment of the present application.
  • FIG. 5 is a schematic diagram showing the distribution of a plurality of time intervals in a period in the embodiment of the present application.
  • FIG. 6 is a schematic diagram showing the distribution of a plurality of time intervals in a cycle according to another embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for expanding an initial interval according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram showing the position of the initial interval in the cycle in the embodiment of the present application.
  • FIG. 9 is a schematic block diagram of an apparatus for sampling performance data of a device according to an embodiment of the present application.
  • FIG. 10 is a schematic block diagram of an apparatus for sampling performance data of a device according to another embodiment of the present application.
  • FIG. 1 For the sake of easy understanding, a monitoring scenario that can be applied in the embodiment of the present application is briefly introduced in conjunction with FIG. 1 . It should be noted that the embodiment of the present application is only described by using the monitoring scenario shown in FIG. 1 as an example.
  • the embodiment of the present application can also be applied to other systems with monitoring requirements, such as storage devices in a storage system and The server accessing the storage device is monitored, or the terminal in the network communication system and the server serving the terminal are monitored, and the server serving the terminal may be a storage server.
  • the storage device in the storage system can also be a storage server, which can be a computer, a computer, or other computing device that can be used for storage.
  • FIG. 1 is a schematic block diagram of a monitoring scenario to which the embodiment of the present application is applied.
  • the devices included in the monitoring scenario shown in FIG. 1 include a terminal 110, a storage system 120, and a monitor 130.
  • the terminal 110 allows the user to access the storage space of the storage server through the client set on the terminal.
  • terminals may include, but are not limited to, a computing device, a mobile station (MS), a mobile terminal (Mobile Terminal), a mobile phone (Mobile Telephone), a user equipment (User Equipment, UE), a handset (handset), and Portable equipment, etc.
  • MS mobile station
  • Mobile Terminal mobile terminal
  • Mobile Telephone Mobile Telephone
  • UE user equipment
  • Handset Handset
  • Portable equipment Portable equipment
  • the storage system 120 provides storage services and access services for the terminal.
  • the control node is configured to control the storage node, such as monitoring the capacity of the storage node or responsible for load balancing of the storage node; the storage node is configured to provide storage space, for example, for storage terminal uploading. Data to the storage system.
  • the monitor 130 is configured to sample performance data of the storage system and/or the terminal, monitor performance changes of the storage system and/or the terminal over time, and upload the sampled performance data (also referred to as sampling data) to Storage server.
  • the foregoing monitor may be a third-party monitor independent of the storage system and the terminal, and the monitor may also be located in the storage system, and the monitor may also be located in the terminal.
  • the specific implementation form of the monitor is not limited in this embodiment of the present application.
  • the monitor samples the performance data of the device by using a fixed sampling interval in the process of sampling the performance data in the cloud storage device. If the sampling interval is set large, the accuracy of the device performance reflected by the sampling data obtained after sampling is low, and it is not consistent with the fact that it cannot be determined that the performance of the device reflected by the sampling data changes with time. If the sampling interval is set small, the accuracy of the device performance reflected by the sampling data obtained after sampling is high, which is favorable to reflect that the performance of the device changes with time, which is consistent with the fact, but uses smaller sampling. Interval sampling the performance data of the device will increase the amount of data of the sampled data.
  • sampling data Before analyzing the sampled data, it is necessary to provide sufficient storage space to store a large amount of sampled data and consume storage space.
  • a storage server or other analysis device connected to the monitor if the amount of data of the sampled data is large, more transmission resources are consumed when transmitting the sampled data.
  • the above method of sampling the performance data of the device using a fixed sampling interval cannot simultaneously satisfy the requirement of reducing the storage space of the sampled data, and the requirement of accurately reflecting the performance of the device over time.
  • the embodiment of the present application provides a method for sampling performance data of the device, and determining the first preset time period. a time interval and a second time interval, wherein a change degree of the value of the performance data of the device in the first time interval is smaller than a change degree of the value of the performance data of the device in the second time interval Capturing performance data of the device in the first time interval at the first sampling interval in the first time interval; and in the second time interval, in the second time interval The performance data of the device in the interval is sampled, wherein the first sampling interval is greater than the second sampling interval.
  • the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small.
  • the performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced.
  • the amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
  • FIG. 2 is a schematic flowchart of a method for sampling performance data of a device according to an embodiment of the present application. It should be understood that the method illustrated in FIG. 2 may be performed by the monitor 130 of FIG. 1, and the method illustrated in FIG. 2 may include steps 210 through 250.
  • the above device may be a monitored object, such as a terminal and/or a storage system in the monitoring scenario shown in FIG. 1.
  • the value of the performance data of the above device may reflect the value of a certain type of performance parameter of the device.
  • the performance data of the device may be the occupancy rate of the computing resource of the device, for example, the occupancy rate of the processor of the storage server in the storage system, or the occupancy rate of the terminal processor; the performance data of the device may also be the storage of the device.
  • the occupancy rate of the resource for example, the storage space of the storage server in the storage system; the performance data of the device may also be the occupancy rate of the transmission resource of the device, for example, the storage server in the storage system responds to the read request sent by the terminal.
  • the transmission resource occupied by the terminal when transmitting data to the terminal may be a read bandwidth, a write bandwidth, or the like, or a bandwidth occupied by the storage server in the storage system to transmit data to the terminal.
  • the above period may be obtained by calculation based on the variation of the value of the historical performance data of the device with time.
  • the above cycle may also be preset, for example, the above period may be set to one day (24 hours) or one month.
  • the above period may also be determined based on the variation of the value of the historical performance data of the device with time.
  • the method for determining the period based on the change rule of the historical performance data of the device with time is mainly described below, wherein the specific implementation manner of determining the period can be implemented by the following steps 211-213, and determining the performance data of the period in each sampling.
  • the value of the point can be implemented by step 214.
  • specific implementations refer to the following description.
  • the performance data of the device in the second preset time period may be understood as historical performance data indicating the performance of the device in the second preset time period. That is, before performing step 211, the method further includes: acquiring performance data of the device in the second preset time period. For example, get performance data from the previous month or the previous year or the first 24 hours.
  • FIG. 3 is a schematic diagram showing the distribution of multiple sub-time periods in the second preset time period in the embodiment of the present application.
  • the device performance data sampled n times On the time axis shown in FIG. 3, comprising a second predetermined period of time the device performance data sampled n times, n sampling points obtained t 1, t 2, ... t n corresponding to each device
  • the value of the performance data x 1 , x 2 , ..., x n , n is a positive integer.
  • the second preset time period is divided into m end-to-end sub-time segments T 1 , T 2 , . . . , T m , m are positive integers.
  • Each sub-period includes L sample points, that is, the value of the performance data of the device included in the sub-period T 1 is ⁇ x 1 , x 2 , . . . , x L ⁇ , and is included in the sub-period T 2
  • the value of the performance data of the device is ⁇ x L , x L+1 ,..., x 2L-1 ⁇
  • the performance data of the device included in the sub-period T 3 is ⁇ x 2L-1 , x 2L ,...,x 3L-2 ⁇
  • the performance data of the device included in the sub-period T m is ⁇ x (m-1)(L-1)+1 ,...,x n ⁇ .
  • the number of performance data included in the second preset time period may not be completely divided by multiple sub-time segments of equal length, that is, the performance data in the second preset time period is followed.
  • the number of remaining performance data may be less than L.
  • the remaining performance data may be divided into the last sub-time period, and the last one in the second preset time period. The number of performance data contained in the sub-period is less than L.
  • FIG. 4 another implementation manner of dividing the second preset time period into multiple sub-time segments may be implemented based on FIG. 4, that is, dividing the second preset time period into multiple sub-times by sliding the first sliding window segment.
  • the second preset is compared by sliding the first sliding window based on FIG. 4 .
  • the method in which the time segment is divided into multiple sub-time segments is relatively simple, and is advantageous for reducing the complexity of dividing the second preset time segment into multiple sub-time segments. Referring to FIG. 4, FIG.
  • FIG. 4 is another schematic diagram showing distribution of multiple sub-time periods of the embodiment of the present application in a second preset time period.
  • the performance data of the device is sampled n times in the second preset time period, and the obtained n sample points t 1 , t 2 , . . . , t n respectively correspond to
  • the value of the performance data of the device x 1 , x 2 , ..., x n , n is a positive integer.
  • the first sliding window with the preset time width L is set, and the first preset step size is used in the second preset time period, starting from the starting time of the second preset time period, and the second preset time is The direction of the end time of the segment (for example, the direction from left to right in FIG.
  • the performance data sequence of the device is valued, and L adjacent performance data can be obtained, where L is a positive integer.
  • the first preset step size which may be the length of time between two adjacent performance data in the above performance data sequence, that is, the sampling interval used when intensively sampling the performance data of the device.
  • the value of the performance data of the device included in the sub-period T 2 is ⁇ x 2 , x 3 ,..., x L+1 ⁇
  • the performance data of the device included in the sub-period T 3 is ⁇ x 3 , x 4 ,..., x L+2 ⁇
  • sub The performance data of the device included in the time period T n-L+1 is taken as ⁇ x n-L+1 , x n-L+2 , . . . , x n ⁇ .
  • FIG. 4 merely exemplarily lists the first sliding step is a time length between two sampling points, and the first sliding window is slid in the direction of increasing time, and the generated sub-period
  • the specific value of the first preset step and the sliding direction of the first sliding window are not specifically limited.
  • the first preset step may also be a sampling point corresponding to t 1 .
  • the sliding direction of the first sliding window may also be the direction from the end time of the second preset time period to the starting point of the second preset time period (the right-to-left direction in FIG. 4).
  • the first preset step size may be a sampling interval in which the performance data of the n devices is sampled in the process of acquiring performance data of the n devices. That is to say, when the performance data of the history of the device is acquired at each sampling point, an integer multiple of the sampling interval used may be used as the first preset step size.
  • the first preset step size may be a sampling interval of 1 time, or a sampling interval of 2 times, which is not limited by the embodiment of the present application.
  • the foregoing second preset time period may be one day, or one month, or one year, and the specific length of the second preset time period is not limited in the embodiment of the present application.
  • the longer the time length set by the second preset time period the more the data amount of the historical performance data of the device used for determining the period is, the more advantageous it is to determine the above period.
  • the second preset time period is too short, for example, when a complete period is not included, the determination period may be failed. Therefore, the second preset time period is longer. Can improve the success rate of the determination cycle.
  • the method for determining that the second preset time period is divided into multiple sub-time segments is determined by using the first sliding window, and the method for dividing the second preset time period into multiple sub-time segments in FIG. 3
  • the smaller granularity of the partitioning is beneficial to improve the accuracy of the subsequently determined period.
  • the two sub-periods determined above may be the two sub-periods with the closest distance, or two sub-periods with relatively close distances.
  • the trend of the value of the performance data of the device in the second preset time period is obtained, and the second preset time period is divided into N sub-time segments, where N is a positive integer; Determining a change trend of the value of the performance data of the device in the i-th sub-period of the N sub-periods as a reference, and determining the device performance data in the j-th sub-period within the N sub-periods
  • the degree of similarity between the change trend of the value and the change trend of the value of the performance data of the device in the i-th sub-period, j ⁇ [1, N], i ⁇ [1, N], j ⁇ i, and j and i are positive integers; a variation trend of the value of the performance data of the device from the i-th sub-period and a value of the performance data of the device in the j-th sub-period a degree of similarity between the change trends, selecting a target time period that
  • a change trend of the value of the performance data of the device in the i-th sub-period and a change trend of the value of the performance data of the device in the j-th sub-period The degree of similarity between s ij , where Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period
  • the value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period
  • Means the mean value of the performance data of the device in the i-th sub-period Indicates the mean value of the performance data of the device in the jth sub-period.
  • the degree of similarity between the change of s ij values of performance data trend values represent the performance data of the i-th period and the j-th equipment devices period, but also Pearson correlation coefficients referred to, in the range of s ij [-1,1], wherein the larger the value of s ij, s ij i.e. the value close to 1, indicates the i-th period of performance data device the more similar trend value change trend of performance data and the value j-th time period device; the smaller the value of s ij, s ij i.e. the value close to -1, denotes the i th period
  • the change trend of the value of the performance data of the internal device is not the same as the change trend of the value of the performance data of the device in the jth time period.
  • the change trend of the value of the performance data of the device in the i-th time period and the value of the performance data of the device in the j-th time period may be considered.
  • the trend of change is the same.
  • the value range of s ij is not performed.
  • the value range of s ij is approximately 1, indicating that the change trend of the value of the performance data of the device in the i-th time period is the same as the change trend of the value of the performance data of the device in the j-th time period. The stricter the conditions, the more accurate basis for the subsequent determination cycle.
  • determining the two sub-time periods from the plurality of time periods may also be determined by the maximum value of the value of s ij . That is to say, when the value of s ij is a maximum value, the change trend of the value of the performance data of the device in the i-th time period and the change trend of the value of the performance data of the device in the j-th time period can be considered. the same.
  • the change trend of the value of the performance data of the device in the sub-sequence X 1 can be used as a reference, and the trend of the value of the performance data of the device in the other sub-sequences of the plurality of sub-sequences is compared one by one to determine the plurality of sub-sequences.
  • a subsequence in which the value of the performance data of the device in the subsequence X 1 is the same.
  • the degree of similarity between the s value trend value change trend of performance data sequence X in the device 1 with other sequences in the plurality of sub-sequences device 1j performance data may be determined by the Pearson correlation coefficient , which is And among them, Means the mean of the i-th sub-sequence X i ; Represents the mean of the first subsequence X 1 .
  • the larger the value of s 1j is, the degree of similarity between the change trend of the value of the performance data of the device in the sub-sequence X 1 and the change trend of the value of the performance data of the device in the other sub-sequences of the plurality of sub-sequences
  • the higher the value in X 1 therefore, the degree of similarity between the change trend of the value of the performance data of the device in the sub-sequence X 1 and the change in the value of the performance data of the j-th sub-sequence X j device in the other sub-sequences value the same trend of a plurality of s 1j, select the maximum value of s 1j of two sequences as the change of the value of the performance data of the same device performance data of two sub-sequences, two sequences device
  • the corresponding sub-periods are the two sub-periods that are finally determined.
  • the two sub-time periods in which the value of the performance data of the device is the same may be the sub-time period corresponding to the similarity degree s ij when the maximum value occurs twice.
  • the devices in the first sub-period and the second sub-period when comparing the trend of the performance data of the device in the first sub-period with the trend of the performance data of the device in the second sub-period, the devices in the first sub-period and the second sub-period The degree of similarity of the performance data shows the first maximum value.
  • the first sub- The second maximum value occurs when the time period is similar to the performance data of the device in the third sub-time period. In this case, the change trend of the performance data of the device in the second sub-time period and the third sub-time period can be considered to be the same.
  • the first sliding window repeatedly divides the second preset time period, and determines a plurality of reference periods based on the plurality of sub-time segments divided by the plurality of first sliding windows, and finally may select the reference period with the highest frequency among the plurality of reference periods As the above period, or the reference period in which the longest time among the plurality of reference periods is selected is taken as the above period.
  • a length of time between a first sampling point in any time period and a second sampling point in another time period is the period length, and the first sampling point is in any one of the time periods
  • the position in the middle is the same as the position at which the second sampling point is in the other time period.
  • the performance data between the first sampling point of any one of the time periods and the first sampling point of the any one of the time periods and the second one of the other time periods is a piece of performance data satisfying the length of the period .
  • the first sampling point may be a starting moment of any one of the time periods, and the second sampling point is a starting moment of the another time period.
  • the first sampling point may be an ending time of any one of the time periods, and the second sampling point is an ending time of the another time period.
  • determining the performance data of the device in each period of the sampling point can be determined by the following two methods.
  • Method 1 Taking any sampling point in the second preset time period as the starting time of the period, determining the value of the performance data of the device corresponding to the consecutive sampling points in the period length.
  • any sampling point is selected as the starting time of the cycle. It is beneficial to ensure the continuity of the first time interval in one cycle, and avoid selecting the first time of the cycle when the start time of the cycle is selected in a time period in which the change of the value of the performance data of the device is small.
  • the interval is divided into two time intervals.
  • the actual value of the performance data of the device in each cycle is determined, and the average value of the actual value of the performance data of the device corresponding to each sampling point in the same position in multiple cycles is calculated, and each sample is calculated.
  • the average value of the performance data of the device corresponding to the point is taken as the value of the performance data of the device corresponding to each sampling point in the above cycle.
  • the average value of the true values of each sampling point in two periods is taken as the value of each sampling point in the period of the performance data of the above device.
  • the average value of the performance data of the device in the period determined based on the periods T 1 and T 2 is
  • any two pieces of performance data in the multi-segment performance data in the foregoing manner 2 do not overlap at all, that is, the length of the interval between the first performance data in any two pieces of performance data may be the length of the period. Integer multiple.
  • any two pieces of performance data in the multi-segment performance data in the foregoing mode 2 may partially overlap, that is, the length of time between the first performance data in any two of the foregoing performance data may be less than or equal to the length of the period.
  • the value of the performance data of the device corresponding to each sampling point in the period is determined according to the method 2 in step 214, it is advantageous to improve the accuracy of determining the first time interval and the second time interval, thereby avoiding a single The performance data of the individual anomalies of the device appear in the cycle, and the division of the first time interval and the second time interval is inaccurate.
  • the first time interval and the second time interval in the cycle may be determined through step 220.
  • the second preset time period in the following may be a period, for example, the foregoing steps may be 230 determined period. If the value of the foregoing performance data changes non-periodically with time, the first time interval and the second time interval in the second preset time period (arbitrary time period) may be determined by step 220 without performing the above step 210.
  • the degree of change of the value of the performance data of the device may be represented by a variance or a standard deviation of the value of the performance data of the device. That is, the degree of change in the value of the performance data of the device in the first time interval can be expressed by the variance or standard deviation of the value of the performance data of the device in the first time interval. The degree of change in the value of the performance data of the device in the second time interval can be expressed by the variance or standard deviation of the value of the performance data of the device in the second time interval.
  • the degree of change of the value of the performance data of the device in the first time interval is smaller than the change degree of the value of the performance data of the device in the second time interval, which may be understood as being the first
  • the severity of the change in the value of the performance data of the device in the time interval is less than the severity of the change in the value of the performance data of the device in the second time interval, for example, the value of the performance data of the device in the first time interval.
  • the variance of the device is less than the variance of the value of the performance data of the device in the second time interval, or the standard deviation of the value of the performance data of the device in the first time interval is less than the value of the performance data of the device in the second time interval Standard deviation.
  • the device performance data may be intensively sampled in the first preset time period to obtain the value of the device performance data, and then based on the device performance data.
  • the degree of change of the value determines the first time interval and the second time interval within the first preset time period. If the change of the performance data of the device is greater than the preset change threshold, the time is the first time interval. If the value of the performance data of the device is less than or equal to the pre-determination
  • the threshold of change is set, and the period of time is the second time interval.
  • the first sampling of the performance data of the device in a dense sampling manner is beneficial to improving the accuracy of the performance of the first sampling data reaction device over time.
  • the lengths of the first time interval and the second time interval may be the same or different.
  • the first time interval and the second time interval are located in the cycle.
  • the period may be divided into a plurality of time intervals, and there are many specific manners, which are not limited in this embodiment of the present application. Two of them are highlighted below in conjunction with FIGS. 5 to 6.
  • the first implementation manner of dividing the period into a plurality of time intervals is to divide the period into a plurality of consecutive time intervals, and the lengths of the plurality of time intervals may be the same or different.
  • FIG. 5 is a schematic diagram showing the distribution of a plurality of time intervals in a period in the embodiment of the present application.
  • the performance data of the device is sampled n times in one cycle, and the obtained n sampling points t 1 , t 2 , ... t n respectively correspond to the device
  • the value of the performance data is x 1 , x 2 ,..., x n , and n is a positive integer.
  • the period is equally divided into m end-to-end time intervals X 1 , X 2 , ..., X m , m being positive integers.
  • Each time interval contains K sampling points, and K is a positive integer, that is, the performance data of the device included in the time interval X 1 is ⁇ x 1 , x 2 , . . . , x K ⁇ , time interval X
  • the performance data of the device included in 2 is ⁇ x K , x K+1 ,..., x 2k-1 ⁇
  • the performance data of the device included in the time interval X m is ⁇ x (m -1) K-(m-2) ,..., x n ⁇ .
  • FIG. 5 only shows a case where the performance time data of all n devices is included in the m time intervals when one cycle is equally divided into m time intervals.
  • m time intervals contain only performance data of na devices, and a is a positive integer smaller than K.
  • the performance data of the device may be divided into the m+1th time interval, and the time length of the m+1th time interval is smaller than the mth time interval.
  • the second implementation manner of dividing the period into a plurality of time intervals is to divide the period into a plurality of time intervals having the same time length, and the sampling points included in the adjacent two time intervals in the plurality of time intervals are the same. .
  • the period corresponding to a piece of performance data that satisfies the period length may be divided into multiple by sliding the second sliding window by the second preset step.
  • Time interval For example, FIG. 6 shows a schematic diagram of a distribution of a plurality of time intervals in a cycle of another embodiment of the present application.
  • the value of the performance data of the n devices in one cycle is included, that is, the n sampling points t 1 , t 2 , ... t n respectively correspond to the performance data of the device.
  • the values are x 1 , x 2 ,..., x n , and n is a positive integer.
  • a second sliding window having a preset time width of L, in a second preset step on the time axis, starting from the beginning of the cycle and in the direction of the end of the cycle (left to right in FIG. 6) Sliding to generate a plurality of time intervals X 1 , X 2 , . . . , X n-K+1 , where time width K is a positive integer.
  • the performance data of the device included in the time interval X 1 is taken as ⁇ x 1 , x 2 , . . .
  • the value of the performance data of the device included in the time interval X 2 is ⁇ x 2 , x 3 ,...,x K+1 ⁇
  • the performance data of the device included in the time interval X n-K+1 is ⁇ x n-K+1 , x n-K+2 ,..., x n ⁇ .
  • the second preset step size may be a sampling interval of 1 time, or a sampling interval of 2 times, which is not limited by the embodiment of the present application.
  • FIG. 6 merely exemplarily lists the second sliding window increasing along the time when the second preset step is the length of time between one sampling point (ie, one sampling interval).
  • the sliding direction of the direction, the generated time interval, the sliding direction of the time window is not specifically limited in the embodiment of the present application.
  • the sliding direction of the second sliding window may be the starting point of the cycle as the starting point, and the first preset is The direction of the start time of the time zone (the direction from the right to the left in Fig. 6) slides.
  • the number of sampling points included in the first time interval determined according to the time interval is also There will be less.
  • the performance data of the device is sampled by using the first sampling interval in the first time interval, and the reduced amount of data after sampling is limited, and the sampling method using the embodiment of the present application is also increased.
  • the complexity of sampling device performance data is not worth the cost. Therefore, by setting the minimum time length of the time interval to define the minimum value of the number of sampling points included in the time interval, it is advantageous to ensure the data amount of the performance data reduced using the sampling scheme of the embodiment of the present application.
  • the length of the minimum time interval may be determined based on the length of the period. For example, if the period is 24 hours, the length of the minimum time interval may be set to 15 minutes. If the period is 48 hours, the length of the minimum time interval may be set. It is 30 minutes.
  • the length of the minimum time interval may also be determined based on a sampling interval used when sampling device performance data. For example, if the sampling interval is 5 seconds, the length of the minimum time interval may be set to 10 minutes, if the sampling interval is 30. In seconds, the length of the above minimum time interval can be set to 30 minutes. It is also possible to comprehensively consider the above period and the above sampling interval to determine the length of the minimum time interval.
  • the specific determination manner of the length of the minimum time interval is not limited in the embodiment of the present application.
  • the length of the minimum time interval described above may be determined based on the length of the above-described period, and specifically may be determined by setting a minimum time length of the time interval and a ratio between the periods.
  • the length of the minimum time interval described above may also be determined based on a sampling interval used when sampling device performance data, and specifically may be determined by setting a minimum time length of the time interval and a ratio between sampling intervals.
  • the method of determining the first time interval is described in detail below.
  • the time interval selected by the first time interval selection rule may be the first time interval
  • the initial interval is selected according to the first time interval selection rule, and the extended time interval is determined by expanding the initial interval. For the first time interval.
  • the determining manner of the first time interval is as follows: the selecting rule of the first time interval comprises: selecting a preset number of time intervals from the plurality of time intervals as the first time interval, wherein the preset number of time intervals preferentially selects the plurality of time intervals The time interval in which the standard deviation of the performance data of the device is small.
  • the preset number of values has a plurality of selection manners. For example, when the preset number of values is 1, the time interval corresponding to the preset standard time interval is the minimum standard deviation of the performance data of the devices in the multiple time intervals. . When the preset number of values is 2, the preset number of time intervals is two time intervals in which the standard deviation of the values of the performance data of the devices in the plurality of time intervals is the smallest.
  • the first time interval is determined by the second time interval.
  • the selection rule of the first time interval includes selecting a time interval in which the standard deviation is smaller than the standard deviation threshold as the first time interval from the standard deviation set composed of the standard deviations corresponding to the plurality of time intervals.
  • the time interval in which the above standard deviation is smaller than the standard deviation threshold may include one or more time intervals.
  • the standard deviation threshold may be determined according to the accuracy of the degree of change of the value of the performance data of the device to be sampled, and the accuracy of the change of the value of the performance data of the sampled device. The requirement is higher, and the value of the standard deviation threshold may be set lower, so that the value of the performance data of the device is less changed in the first selected time interval; if the performance data of the sampled device is The accuracy of the change of the value is low, and the value of the standard deviation threshold may be set higher, so that the value of the performance data of the device may be slightly changed in the first selected time interval. . That is to say, the above standard deviation threshold can indicate the degree of change in the value of the performance data of the largest device that the maintenance personnel can accept.
  • the remaining time interval of the period may be used as the second time interval.
  • the standard deviation corresponding to each second time interval is greater than the standard deviation corresponding to all the first time intervals respectively.
  • the standard deviation of the values of the performance data in the multiple time intervals is greater than the standard deviation threshold, the degree of change of the value of the performance data of the device is large, and the response of the method in the embodiment of the present application is used.
  • the value of the performance data of the device may not be accurate enough.
  • the performance data of the device may be sampled by using intensive sampling in the prior art.
  • the initial interval may be selected according to the first time interval selection rule, and the extended time interval is determined as the first time interval by expanding the initial interval.
  • the time interval that satisfies the selection rule of the initial interval is determined as an initial interval based on the standard deviation corresponding to the plurality of time intervals respectively; and the first time interval is determined according to the initial interval, where the first time interval is
  • the performance data includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, the target sampling point being a sample located outside the initial interval and adjacent to an endpoint of the initial interval Point, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy
  • the selection rule of the initial interval may be the same as the selection rule of the first time interval in the above, that is, the initial interval may be determined in the same manner as the first time interval in the above, for the sake of brevity. No longer.
  • FIG. 7 is a schematic flowchart of a method for expanding an initial interval according to an embodiment of the present application. After the initial interval is determined, the initial interval is expanded by the method shown in FIG. 7, and the extended interval is obtained as the first time interval. For details, refer to the description of steps 710 to 740 in the method shown in FIG. 7.
  • the mean value m 0 and the standard deviation d 0 of the values of the performance data of the device in the initial interval may be calculated using an Expectation Maximization (EM) algorithm.
  • EM Expectation Maximization
  • step 720 it is first determined that the target sampling point is determined, and then based on the initial interval expansion rule, it is determined whether the performance data of the device corresponding to the target sampling point can be expanded to the initial interval.
  • FIG. 8 is a schematic diagram showing the position of the initial interval in the cycle in the embodiment of the present application.
  • the value of the performance data of the n devices within a cycle i.e., n sampling points t 1, t 2, ... t n respectively correspond to the value of the performance data of the device
  • x 1 , x 2 ,..., x n , n be a positive integer.
  • the initial starting time interval determined in the time period starting period, and the initial interval comprises L sampling points t 1, t 2, ... t L corresponding to each performance data device
  • the values are x 1 , x 2 ,..., x L .
  • the initial interval includes L sample points t 1 , t 2 , . . . , t L , that is, the initial interval includes the start time t 1 of the cycle, and therefore, When the initial interval located at position 1 is expanded, the selection of the target sampling point may be selected from the left to the right along the time axis.
  • the target sampling point may be select t L + 1, if the value of t L + 1 corresponding to the performance data of the device satisfying the preset rule may be extended to the initial interval, extended acquisition interval includes t L + 1, continuing in accordance with the above
  • the method determines whether t L+2 belongs to the initial interval, and when the value of the performance data of the device corresponding to t L+2 satisfies the above preset rule, the previous extended interval is expanded, and the extended interval includes not only the previous extension.
  • the added t L+1 also includes the t L+2 added by the current extension, and so on, until the value of the performance data of the device corresponding to the sampling point of the initial interval to be expanded does not satisfy the above preset condition, or until the period is to be End time Should be extended to the initial sample point interval, stopping the expansion of said initial section, to form an extended interval.
  • the selection of the target sampling point may be selected from the right to the left along the time axis.
  • the target sampling point may select t n '- 1, when the performance data value t n'-1 corresponding to the above-described device satisfies preset rule may be extended t n'-1 to the initial interval, t n'-2 continues to judge according to the methods described above Whether it belongs to the initial interval, and when the value of the performance data of the device corresponding to t n ' -2 satisfies the above preset rule, t n ' -2 may be extended to the initial interval, and so on, until the sampling of the initial interval to be extended The value of the performance data of the device corresponding to the point does not satisfy the above preset condition, or until the sampling point corresponding to the end time of the period is extended to the initial interval, and the expansion of the initial interval is stopped to form an extended interval.
  • the initial interval includes sampling points t l′ , . . . , t l , that is, the initial interval is located at the middle of the period, that is, the start time of the period is not included. Nor does it include the end of the cycle.
  • the selection of the target sampling point may be selected from the right to the left direction along the time axis according to the initial interval at position 1 (for example, the target sampling point may be t l+ 1 ), it can also be selected from the right to left direction along the time axis according to the initial interval at position 3 (for example, the target sampling point can be t l'-1 ), and the specific judgment manner is located at the position corresponding to the initial interval above.
  • the judgment mode is the same as that of the position 3, and is not described here for brevity.
  • the time sequence between the selection manners of the target sampling points in the two directions is not limited.
  • the selection of the target sampling point may be first selected from the right to the left along the time axis, and then selected from the right to the left along the time axis; or the selection of the target sampling point may be from the left along the time axis. Select in the right direction and then from left to right along the time axis.
  • the foregoing initial interval expansion rule is used to determine the value of the performance data of the device corresponding to the target sampling point, and the degree of change of the value of the performance data of the device in the initial interval.
  • the initial interval expansion rule may be The difference between the value of the performance data of the device corresponding to the target sampling point and the mean value of the performance data in the initial interval is less than a threshold; or the initial interval expansion may also be the value of the performance data of the device corresponding to the target sampling point.
  • the difference between the maximum values of the performance data in the initial interval is smaller than the difference between the maximum value and the minimum value of the performance data in the initial interval.
  • the specific content of the initial interval expansion is not limited in the embodiment of the present application.
  • the initial interval expansion described above may be determined based on a small probability event rule. That is, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy
  • the target sampling point is relative to the end point of the initial interval, and as the initial interval is continuously expanded, the endpoint of the initial interval also changes, and further, the target sampling point changes with the endpoint of the initial interval. Variety.
  • step 730 is performed; if the performance data of the device corresponding to the target sampling point cannot be extended to the initial interval, step 740 is performed.
  • the endpoint of the extended interval changes to the target sampling point.
  • the current time interval may be an unexpanded extended interval, that is, an initial interval; the current initial interval may also be an extended interval.
  • the performance data in the first time interval includes performance data in the initial interval, and performance data of the device corresponding to the target sampling point, where the target sampling point is outside the initial interval, and a sampling point adjacent to an end point of the initial interval, that is, an extension of an end point of the initial interval such that the first time interval contains as much performance data as possible, that is, a time period of the finally determined first time interval As large as possible, it is beneficial to further reduce the amount of data of the sampled data after sampling the performance data of the device.
  • the first preset time period or the remaining time interval in the period may be used as the second time interval.
  • any two of the plurality of first time intervals in the period do not overlap each other.
  • the first sampling interval and the second sampling interval may be preset, or may be determined based on the magnitude of the change of the value of the performance data in the first time interval or the second time interval. Make a limit.
  • the following section focuses on how to determine the first time interval and the second time interval within a period.
  • the length of the first sampling interval is inversely proportional to the magnitude of the change in the value of the performance data of the device in the first time interval, and/or the length of the second sampling interval is different from the first
  • the magnitude of the change in the value of the performance data of the device in the two time interval is inversely proportional.
  • the first sampling interval and the second sampling interval may be preset, and it may be understood that the first sampling interval and the second sampling interval need not be changed according to the value of the performance data in the first time interval or the second time interval.
  • the size is calculated. For example, after determining that the certain time period is the first time interval, the performance data of the device in the first time interval is directly sampled by using the preset first sampling interval; after determining that the certain time period is the second time interval, directly The performance data of the device in the second time interval is sampled using a preset second sampling interval.
  • the first sampling interval and the second sampling interval may be determined based on the magnitude of the change of the value of the performance data in the first time interval or the second time interval, and may be understood as required by the first sampling interval and the second sampling interval. The calculation is performed according to the magnitude of the change in the value of the performance data in the first time interval or the second time interval.
  • an inverse relationship between the length of the first sampling interval and the magnitude of the change in the value of the performance data of the device in the first time interval, and/or the length of the second sampling interval The inverse relationship between the magnitudes of changes in the values of the performance data of the device in the second time interval respectively satisfies
  • P represents the length of the first sampling interval or the second sampling interval
  • k is a preset number greater than 1
  • represents the device in the first time interval or the second time interval
  • the standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
  • the first time interval and the second time interval may be any time interval within the period, that is, the degree of change of the value of the performance data of the device in any time interval within the period, and The inverse relationship between the lengths of the sampling intervals corresponding to the time interval can be satisfied.
  • the time used for sampling the performance data of the device in the time interval may be determined. interval.
  • the sampling data obtained by the sampling interval determined by such a method is advantageous for more accurately reflecting the change of the value of the performance data of the device with time.
  • the performance data of the device in the first time interval is sampled at a first sampling interval in a first time interval.
  • the performance data of the device in the second time interval is sampled at a second sampling interval in a second time interval, wherein the first sampling interval is greater than the second sampling interval.
  • the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small.
  • the performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced.
  • the amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
  • the method further includes: determining whether the method for sampling the performance data of the device needs to be re-executed by verifying the accuracy of the first time interval.
  • the performance data of the device in the current first time interval is monitored in real time as the time interval to be verified.
  • the performance data obtained by real-time sampling the performance data of the device, the mean value m 0 ' and the standard deviation d 0 ' of the performance data of the device are determined, and based on the small probability time.
  • the degree of change of the performance data of the device in the current first time interval is small, and the judgment is small.
  • the currently used sampling method for the performance data of the device does not need to be updated. If the value of the performance data of the device corresponding to each sampling point in the first time interval to be verified does not satisfy the above formula, the device in the current first time interval The value of the performance data varies greatly, and it is no longer suitable to use the first sampling interval for sampling.
  • the cycle of the performance data of the device may be re-determined, or the distribution pattern of the first time interval and the second time interval in the cycle may be re-determined, or each of the periodic periods may be re-determined.
  • the sampling interval used when sampling performance data in the time interval.
  • the embodiment of the present application may also omit the verification of the accuracy of the first time interval, but periodically re-execute steps 210 to 250 to implement a cycle of re-determining the performance data of the device, or re-determine the period.
  • the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, and a storage resource in the device.
  • the method further includes: determining a third time interval in the first preset time period, wherein an average value of the performance data of the device is higher than a performance data threshold in the third time interval; During the time interval, the performance data in the third time interval is sampled at a third sampling interval, the third sampling interval being smaller than the first sampling interval.
  • the average value of the performance data of the device in the third time interval is higher than the performance data threshold, which may indicate that the performance data of the current device is at a peak period, and during the peak period, the probability of abnormal operation of the device is higher.
  • the performance data in the third time interval is used regardless of the degree of change in the value of the performance data in the third time interval. Sampling is performed, and the third sampling interval is equal to or greater than the second sampling interval, so that more performance data of the device is collected in the third time interval.
  • FIG. 9 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application.
  • the apparatus 900 for transmitting data shown in FIG. 9 includes a first determining unit 910 and a sampling unit 920.
  • the first determining unit 910 is configured to determine a first time interval and a second time interval in the first preset time period, where the value of the performance data of the device is less than Determining the degree of change in the value of the performance data of the device in the second time interval;
  • the sampling unit 920 is configured to sample performance data of the device in the first time interval at the first sampling interval in the first time interval;
  • the sampling unit 920 is further configured to sample, in the second time interval, performance data of the device in the second time interval at a second sampling interval, where the first sampling interval is greater than The second sampling interval is described.
  • the performance data of the device is data that changes with time in time
  • the first determining unit is further configured to: according to the performance data of the device in the second preset time period. Determining the period of the value as a function of time; and determining a first time interval and a second time interval within the period, the period being the first predetermined time period.
  • the first determining unit is further configured to: divide the period into multiple time intervals, and determine the device in each time interval of the multiple time intervals. a standard deviation of the performance data; a time interval in which the standard deviation is smaller than the standard deviation threshold is selected as the first time interval from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals; In the standard deviation set composed of the standard deviations corresponding to the intervals, a time interval in which the standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval.
  • the first determining unit is further configured to: divide the period into multiple time intervals, and determine the device in each time interval of the multiple time intervals. a standard deviation of the performance data; determining, according to the standard deviation corresponding to the plurality of time intervals, a time interval that satisfies the selection rule of the initial interval as an initial interval; determining the first time interval according to the initial interval, the first The performance data in a time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, the target sampling point being outside the initial interval and ending with the initial interval Adjacent sampling points, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy
  • the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the first sampling interval, and/or
  • the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
  • the device further includes: an acquiring unit, configured to acquire a trend of the value of the performance data of the device in the second preset time period, and the The second preset time period is divided into N sub-time segments, where N is a positive integer; the second determining unit is further configured to use the value of the performance data of the device in the i-th sub-period within the N sub-periods
  • the change trend is a reference, determining a change trend of the value of the device performance data in the jth sub-period in the N sub-periods and a value of the performance data of the device in the i-th sub-period
  • the degree of similarity between the trends of change, j ⁇ [1, N], i ⁇ [1, N], j ⁇ i, and j and i are positive integers; a selection unit for the i-th sub-period Selecting the i-th sub-period in the degree of similarity between the change trend of the value of the
  • a change trend of the value of the performance data of the device in the i-th sub-period and a change trend of the value of the performance data of the device in the j-th sub-period The degree of similarity between s ij and where Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period
  • the value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period
  • Means the mean value of the performance data of the device in the i-th sub-period Indicates the mean value of the performance data of the device in the jth sub-period.
  • the first determining unit is further configured to determine a third time interval in the first preset time period, where performance data of the device is in the third time interval.
  • the mean is higher than the performance data threshold;
  • the sampling unit is further configured to sample performance data in the third time interval at a third sampling interval in a third time interval, where the third sampling interval is smaller than the first sampling interval.
  • the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, and a storage resource in the device. Occupancy rate.
  • the foregoing apparatus 900 for sampling performance data of the device may be the apparatus 1000 for sampling performance data of the device, where the first determining unit 910 and the sampling unit 920 may be processors in the device 1000.
  • the device 1000 can further include an input/output interface 1030 and a memory 1010, as shown in FIG.
  • FIG. 10 is a schematic block diagram of an apparatus for sampling performance data of a device according to another embodiment of the present application.
  • the apparatus 1000 for sampling performance data of a device shown in FIG. 10 may include a memory 1010, a processor 1020, and an input/output interface 1030.
  • the memory 1010, the processor 1020, and the input/output interface 1030 are previously connected by an internal connection path for storing program instructions, and the processor 1020 is configured to execute program instructions stored by the memory 1020 to control input/output.
  • the interface 1030 receives input data and information, and outputs data such as an operation result.
  • the processor 1020 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 1010 can include read only memory and random access memory and provides instructions and data to the processor 1020.
  • a portion of processor 1020 may also include a non-volatile random access memory.
  • the processor 1020 can also store information of the device type.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1020 or an instruction in a form of software.
  • the method for sampling the performance data of the device disclosed in the embodiment of the present application may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 1010, and the processor 1020 reads the information in the memory 1010 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), and dedicated integration.
  • DSPs digital signal processors
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • B can be determined from A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be applied to the embodiment of the present application.
  • the implementation process constitutes any limitation.
  • the disclosed apparatus, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another device, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium, which can be any available media that can be read by a computer or a data storage device such as a server, data center, or the like that includes one or more available media integrations. .
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a Digital Video Disc (DVD)), or a semiconductor medium (eg, a Solid State Disk (SSD)). )Wait.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a Digital Video Disc (DVD)
  • DVD Digital Video Disc
  • SSD Solid State Disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present application provides a method and a device for sampling performance data of an apparatus. The method comprises: determining a first time range and a second time range in a first preset time period, a degree of change in values of performance data of the apparatus in the first time range being smaller than a degree of change in values of performance data of the apparatus in the second time range; sampling the performance data of the apparatus in the first time range at a first sampling interval in the first time range; and sampling the performance data of the apparatus in the second time range at a second sampling interval in the second time range, the first sampling interval being greater than the second sampling interval. In embodiments of the present application, a sampling interval used for sampling performance data of an apparatus is selected on the basis of a degree of change in values of performance data of the apparatus, thereby facilitating a reduction in a data amount of performance data obtained by sampling the performance data of the apparatus, while also reflecting changes of the performance of the reaction apparatus over time more accurately.

Description

对设备的性能数据进行采样的方法和装置Method and apparatus for sampling performance data of a device 技术领域Technical field
本申请涉及数据处理领域,尤其更具体地涉及对设备的性能数据进行采样的方法和装置。The present application relates to the field of data processing, and more particularly to a method and apparatus for sampling performance data of a device.
背景技术Background technique
通过采集设备的性能数据对设备性能进行监控,以发现设备的业务趋势和异常,可以提升设备的服务质量,有效预防设备故障的发生,是设备性能分析和运维的最基础的环节。只有准确的数据采集才能有效保障对设备性能进行监控的质量。By monitoring the performance of the device, you can monitor the device performance and discover the service trends and abnormalities of the device. This improves the service quality of the device and effectively prevents device faults. It is the most basic part of device performance analysis and operation and maintenance. Only accurate data collection can effectively guarantee the quality of monitoring equipment performance.
现有技术中,通常使用固定的采样间隔对设备的性能数据进行采样。若采样间隔设置较大,采样后的性能数据可能无法准确反映出设备的性能随时间的变化情况。若采样间隔设置较小,采样后的性能数据可以准确反映出设备的性能随时间的变化情况,但是采样后的性能数据的数据量较大,占用的存储资源多。In the prior art, performance data of a device is typically sampled using a fixed sampling interval. If the sampling interval is set large, the sampled performance data may not accurately reflect the performance of the device over time. If the sampling interval is set small, the sampled performance data can accurately reflect the performance of the device over time, but the sampled performance data has a large amount of data and occupies more storage resources.
发明内容Summary of the invention
本申请提供一种对设备的性能数据进行采样的方法和装置,减少对设备的性能数据进行采样后得到的性能数据的数据量,同时可以根据采样后得到的性能数据准确的反应出设备的性能随时间的变化情况。The present application provides a method and apparatus for sampling performance data of a device, reducing the amount of performance data obtained by sampling the performance data of the device, and accurately reflecting the performance of the device according to the performance data obtained after sampling. Changes over time.
第一方面,提供一种对设备的性能数据进行采样的方法,包括:确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度;在所述第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样;在所述第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。A first aspect provides a method for sampling performance data of a device, including: determining a first time interval and a second time interval in a first preset time period, wherein the device is in the first time interval The degree of change in the value of the performance data is less than the degree of change in the value of the performance data of the device in the second time interval; in the first time interval, the first time is at the first sampling interval The performance data of the device in the interval is sampled; in the second time interval, the performance data of the device in the second time interval is sampled at a second sampling interval, wherein the first sampling interval is greater than The second sampling interval is described.
本申请实施例中,基于设备的性能数据的取值的变化程度不同,选择不同的采样间隔对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较小的第一时间区间,使用第一采样间隔对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较大的第二时间区间,使用第二采样间隔对设备的性能数据进行采样,减少对设备的性能数据进行采样后得到的性能数据(即采样数据)的数据量,同时可以根据采样后得到的性能数据准确的反应出设备的性能随时间的变化情况。In the embodiment of the present application, the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small. The performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced. The amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
可选地,上述设备的性能数据的取值可以反映设备的某类性能参数的取值。Optionally, the value of the performance data of the device may reflect the value of a certain type of performance parameter of the device.
结合第一方面,在一种可能的实现方式中,所述设备的性能数据为以周期随时间变化的数据,所述方法还包括:根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期;所述确定第一预设时间段内的第一时间区间和第二时间区间,包括:确定所述周期内的第一时间区间和第二时间区间,所述第一预设时间段为所述周期。With reference to the first aspect, in a possible implementation manner, the performance data of the device is data that changes with time in time, and the method further includes: performing performance data of the device according to the second preset time period. Determining the period according to a trend of the value, and determining the first time interval and the second time interval in the first preset time period, including: determining the first time interval and the second time in the period The interval, the first preset time period is the period.
以设备的性能数据的取值随时间的变化的周期为第一预设时间段,确定第一时间区间和第二时间区间在周期内的排布情况,以便于在该周期之后的时间段内,按照第一时间区间和第二时间区间在周期内的排布情况,对设备的性能数据进行采样。避免在设备的性能数据的取值随时间的变化的每个周期内确定第一时间区间和第二时间区间的排布情况,有利于降低对设备的性能数据进行采样的复杂度。The period of the change of the value of the performance data of the device with time is the first preset time period, and the arrangement of the first time interval and the second time interval in the period is determined, so as to be in the time period after the period The performance data of the device is sampled according to the arrangement of the first time interval and the second time interval in the cycle. It is avoided that the arrangement of the first time interval and the second time interval is determined in each period of the change of the value of the performance data of the device with time, which is advantageous for reducing the complexity of sampling the performance data of the device.
结合第一方面,在一种可能的实现方式中,所述确定所述周期内的第一时间区间和第二时间区间,包括:将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差小于标准差阈值的时间区间作为所述第一时间区间;从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差大于或等于所述标准差阈值的时间区间作为所述第二时间区间。With reference to the first aspect, in a possible implementation manner, the determining the first time interval and the second time interval in the period includes: dividing the period into multiple time intervals, and determining the multiple The standard deviation of the performance data of the device in each time interval of each time interval; from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals, the time interval in which the standard deviation is smaller than the standard deviation threshold is selected as The first time interval; a time interval in which a standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval from a standard deviation set consisting of standard deviations corresponding to the plurality of time intervals.
可选地,上述第一时间区间可以是所述周期内的一个或多个时间区间。Optionally, the first time interval may be one or more time intervals within the period.
在本申请实施例中通过时间区间内性能数据的取值的标准差与标准差阈值之间的关系确定第一时间区间和第二时间区间,有利于降低对周期划分为第一时间区间和第二时间区间的复杂度。In the embodiment of the present application, the first time interval and the second time interval are determined by the relationship between the standard deviation of the value of the performance data in the time interval and the standard deviation threshold, which is beneficial to reduce the division of the period into the first time interval and the first time interval. The complexity of the two time intervals.
结合第一方面,在一种可能的实现方式中,所述确定所述周期内的第一时间区间和第二时间区间,包括:将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;基于所述多个时间区间分别对应的标准差,确定满足初始区间的选取规则的时间区间作为初始区间;根据所述初始区间确定所述第一时间区间,所述第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,所述目标采样点对应的性能数据的取值与所述初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示所述目标采样点对应的所述设备的性能数据的取值,m 0表示所述初始区间中性能数据的取值的均值;d 0表示所述初始区间内性能数据的取值的标准差。 With reference to the first aspect, in a possible implementation manner, the determining the first time interval and the second time interval in the period includes: dividing the period into multiple time intervals, and determining the multiple a standard deviation of the performance data of the device in each time interval of each time interval; determining a time interval satisfying the selection rule of the initial interval as an initial interval based on the standard deviation corresponding to the plurality of time intervals respectively; The initial interval determines the first time interval, and the performance data in the first time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, where the target sampling point is located in the a sampling point adjacent to the end point of the initial interval, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfying |e 1 -m 0 | <3d 0 , where e 1 represents the value of the performance data of the device corresponding to the target sampling point, and m 0 represents the mean value of the performance data in the initial interval. ;d 0 represents the standard deviation of the values of the performance data in the initial interval.
本申请实施例中,第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,也就是说,对初始区间的端点进行扩展使得第一时间区间尽可能地包含多个性能数据,即使得最终确定的第一时间区间的时间段尽可能的大,有利于进一步地减少对设备的性能数据进行采样后采样数据的数据量。In the embodiment of the present application, the performance data in the first time interval includes performance data in the initial interval, and performance data of the device corresponding to the target sampling point, where the target sampling point is outside the initial interval, and a sampling point adjacent to an end point of the initial interval, that is, an extension of an end point of the initial interval such that the first time interval contains as much performance data as possible, that is, a time period of the finally determined first time interval As large as possible, it is beneficial to further reduce the amount of data of the sampled data after sampling the performance data of the device.
可选地,上述初始区间的选取规则可以包括下列任一种:多个时间区间内对应的设备的性能数据的取值的标准差中,最小的标准差对应的时间区间为初始区间;多个时间区间内对应的设备的性能数据的取值的标准差中,小于标准差阈值的标准差对应的时间区间为初始区间。Optionally, the selection rule of the initial interval may include any one of the following: the standard deviation of the value of the performance data of the corresponding device in the multiple time intervals, where the minimum standard deviation corresponds to the initial interval; Among the standard deviations of the values of the performance data of the corresponding devices in the time interval, the time interval corresponding to the standard deviation smaller than the standard deviation threshold is the initial interval.
结合第一方面,在一种可能的实现方式中,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度呈反比关系,和/或在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度呈反比关系。With reference to the first aspect, in a possible implementation manner, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the first sampling interval in the first time interval, and And or in the second time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
结合第一方面,在一种可能的实现方式中,在所述第一时间区间内,所述设备的性能 数据的取值变化程度的大小与所述第一采样间隔的长度之间的反比关系,以及在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度之间反比关系满足
Figure PCTCN2017115294-appb-000001
其中,P表示所述第一采样间隔或所述第二采样间隔的长度,k为预设的大于1的数,σ表示所述第一时间区间或所述第二时间区间内所述设备的性能数据的标准差,用于指示所述第一时间区间或所述第二时间区间内性能数据的取值的变化程度。
With reference to the first aspect, in a possible implementation manner, an inverse relationship between a magnitude of a change in the value of the performance data of the device and a length of the first sampling interval in the first time interval And an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the second sampling interval in the second time interval
Figure PCTCN2017115294-appb-000001
Wherein P represents the length of the first sampling interval or the second sampling interval, k is a preset number greater than 1, and σ represents the device in the first time interval or the second time interval The standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
本申请实施例中,基于时间区间内设备的性能数据的取值的变化程度与采样间隔的长度之间的反比关系,确定对时间区间内设备的性能数据进行采样时使用的时间间隔。有利于采样数据更加准确的反应设备的性能数据的取值随时间的变化。In the embodiment of the present application, the time interval used for sampling the performance data of the device in the time interval is determined based on an inverse relationship between the degree of change of the value of the performance data of the device in the time interval and the length of the sampling interval. The value of the performance data of the reaction device that is more accurate for sampling data is more accurate with time.
结合第一方面,在一种可能的实现方式中,所述根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期,包括:获取所述第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,并将所述第二预设时间段划分成N个子时间段,N为正整数;以所述N个子时间段内的第i个子时间段内所述设备的性能数据的取值的变化趋势为基准,确定所述N个子时间段内第j个子时间段内的所述设备性能数据的取值的变化趋势与所述第i个子时间段内的所述设备的性能数据的取值的变化趋势之间的相似程度,j∈[1,N],i∈[1,N],j≠i,且j和i为正整数;从所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度中,选择与所述第i个子时间段内所述设备的性能数据的取值的变化趋势相同的目标时间段;确定所述第i个子时间段中第一采样点与所述目标时间段中的第二采样点之间的时间长度,所述第一采样点在所述第i个子时间段中的位置与所述第二采样点在所述目标时间段中的位置相同;选取所述第二预设时间段内任一采样点为所述周期的起始时间,以所述第一采样点与所述第二采样点之间的时间长度为所述周期的长度,确定所述周期。With reference to the first aspect, in a possible implementation, the determining the period according to a trend of a value of performance data of the device in a second preset time period, including: acquiring the a trend of changing the value of the performance data of the device over time in a preset time period, and dividing the second preset time period into N sub-time segments, where N is a positive integer; and the N sub-periods The change trend of the value of the performance data of the device in the i-th sub-period is the reference, and the change trend of the value of the device performance data in the j-th sub-period within the N sub-periods is determined. The degree of similarity between the trends of the performance data of the device in the i-th sub-period, j ∈ [1, N], i ∈ [1, N], j ≠ i, and j and i is a positive integer; between the change trend of the value of the performance data of the device in the i-th sub-period and the change trend of the value of the performance data of the device in the j-th sub-period In the degree of similarity, selecting the performance of the device in the i-th sub-period Determining a target time period in which the change trend of the value is the same; determining a length of time between the first sampling point in the i-th sub-period and the second sampling point in the target time period, the first sampling point The position in the i-th sub-period is the same as the position of the second sampling point in the target time period; selecting any sampling point in the second preset time period as the start of the period The time is determined by the length of time between the first sampling point and the second sampling point being the length of the period.
结合第一方面,在一种可能的实现方式中,所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度为
Figure PCTCN2017115294-appb-000002
其中,Y表示所述第i个子时间段和所述第j个子时间段内包含的对所述设备的性能数据进行采样的采样点的数量,t iy表示第i个子时间段内第y个所述设备的性能数据的取值,t jy表示第j个子时间段内第y个所述设备的性能数据的取值,
Figure PCTCN2017115294-appb-000003
表示第i个子时间段内所述设备的性能数据的取值的均值,
Figure PCTCN2017115294-appb-000004
表示第j个子时间段内所述设备的性能数据的取值的均值。
With reference to the first aspect, in a possible implementation, the change trend of the value of the performance data of the device in the i-th sub-period and the performance data of the device in the j-th sub-period The degree of similarity between the trends of the values is
Figure PCTCN2017115294-appb-000002
Wherein, Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth in the i-th sub-period The value of the performance data of the device, t jy represents the value of the performance data of the yth device in the jth sub-time period,
Figure PCTCN2017115294-appb-000003
Means the mean value of the performance data of the device in the i-th sub-period,
Figure PCTCN2017115294-appb-000004
Indicates the mean value of the performance data of the device in the jth sub-period.
结合第一方面,在一种可能的实现方式中,所述方法还包括:确定所述第一预设时间段内的第三时间区间,在所述第三时间区间中所述设备的性能数据的均值高于性能数据阈值;在第三时间区间内,以第三采样间隔对所述第三时间区间中的性能数据进行采样,所述第三采样间隔小于所述第一采样间隔。With reference to the first aspect, in a possible implementation manner, the method further includes: determining a third time interval in the first preset time period, and performance data of the device in the third time interval The mean value is higher than the performance data threshold; in the third time interval, the performance data in the third time interval is sampled at a third sampling interval, the third sampling interval being smaller than the first sampling interval.
结合第一方面,在一种可能的实现方式中,所述设备的性能数据下列数据中的任一种:所述设备中计算资源的占用率,所述设备中传输资源的占用率,所述设备中存储资源的占用率。With reference to the first aspect, in a possible implementation manner, the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, The occupancy rate of storage resources in the device.
上述在第三时间区间中所述设备的性能数据的均值高于性能数据阈值,说明当前设备的性能数据处于高峰期,而在高峰期内,设备的运行发生异常情况的概率较大,因此,本申请实施例中,使用第三采样间隔对第三时间区间中设备的性能数据进行采样,有利于增加后续对设备的性能进行的分析的依据。The average value of the performance data of the device in the third time interval is higher than the performance data threshold, indicating that the performance data of the current device is at a peak period, and during the peak period, the probability of abnormal operation of the device is large, therefore, In the embodiment of the present application, sampling the performance data of the device in the third time interval by using the third sampling interval is beneficial to increasing the basis for subsequent analysis of the performance of the device.
第二方面,提供了一种对设备的性能数据进行采样的装置,所述装置包括用于执行上述方法的各个模块。In a second aspect, an apparatus for sampling performance data of a device is provided, the apparatus comprising various modules for performing the above method.
第三方面,提供了一种对设备的性能数据进行采样的装置,所述装置具有实现上述方法设计中的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的单元。In a third aspect, an apparatus for sampling performance data of a device is provided, the apparatus having the functionality to implement the design of the above method. These functions can be implemented in hardware or in software by executing the corresponding software. The hardware or software includes one or more units corresponding to the functions described above.
第四方面,提供了一种对设备的性能数据进行采样的装置,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得该装置执行上述方面中的方法。In a fourth aspect, an apparatus for sampling performance data of a device, including a processor and a memory, is provided. The memory is for storing a computer program for calling and running the computer program from memory such that the apparatus performs the method of the above aspects.
第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行上述各方面中的方法。In a fifth aspect, a computer program product is provided, the computer program product comprising: computer program code, causing a computer to perform the method of the above aspects when the computer program code is run on a computer.
第六方面,提供了一种计算机可读介质,所述计算机可读介质存储有程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行上述各方面中的方法。In a sixth aspect, a computer readable medium storing program code for causing a computer to perform the method of the above aspects when the computer program code is run on a computer.
第七方面,提供了一种芯片系统,该芯片系统包括处理器,用于对性能数据进行采样的装置实现上述方面中所涉及的功能,例如,生成,接收,发送,或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存终端设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。In a seventh aspect, a chip system is provided, the chip system comprising a processor, the means for sampling the performance data implementing the functions involved in the above aspects, for example, generating, receiving, transmitting, or processing the above method Data and/or information involved. In a possible design, the chip system further comprises a memory for storing necessary program instructions and data of the terminal device. The chip system can be composed of chips, and can also include chips and other discrete devices.
附图说明DRAWINGS
图1是本申请实施例适用的监控场景的示意性框图。FIG. 1 is a schematic block diagram of a monitoring scenario to which the embodiment of the present application is applied.
图2是本申请实施例的对设备的性能数据进行采样的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for sampling performance data of a device according to an embodiment of the present application.
图3示出了本申请实施例的多个子时间段在第二预设时间段内的分布的示意图。FIG. 3 is a schematic diagram showing a distribution of a plurality of sub-periods in the second preset time period in the embodiment of the present application.
图4本申请另一实施例的多个子时间段在第二预设时间段内的分布的示意图。FIG. 4 is a schematic diagram showing a distribution of a plurality of sub-periods in a second preset time period according to another embodiment of the present application.
图5示出了本申请实施例的多个时间区间在周期内的分布的示意图。FIG. 5 is a schematic diagram showing the distribution of a plurality of time intervals in a period in the embodiment of the present application.
图6示出了本申请另一实施例的多个时间区间在周期内的分布的示意图。FIG. 6 is a schematic diagram showing the distribution of a plurality of time intervals in a cycle according to another embodiment of the present application.
图7是本申请实施例的对初始区间进行扩展的方法的示意性流程图。FIG. 7 is a schematic flowchart of a method for expanding an initial interval according to an embodiment of the present application.
图8示出了本申请实施例中初始区间在周期内位置的示意图。FIG. 8 is a schematic diagram showing the position of the initial interval in the cycle in the embodiment of the present application.
图9是本申请实施例的对设备的性能数据进行采样的装置的示意性框图。FIG. 9 is a schematic block diagram of an apparatus for sampling performance data of a device according to an embodiment of the present application.
图10是本申请另一实施例的对设备的性能数据进行采样的装置的示意性框图。FIG. 10 is a schematic block diagram of an apparatus for sampling performance data of a device according to another embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
为了便于理解,结合图1简单介绍本申请实施例可以应用的监控场景。需要说明的是,本申请实施例仅以图1所示的监控场景为例进行介绍,本申请实施例还可以应用于其他有监控需求的系统中,例如对存储系统中的存储设备以及对需要访问该存储设备的服务器进行监控,或对网络通信系统中的终端和为终端提供服务的服务器进行监控等,为终端提供服务的服务器可以是存储服务器。存储系统中的存储设备也可以是存储服务器,存储服务器可以是计算机、电脑或其他可以用于存储的计算设备。For the sake of easy understanding, a monitoring scenario that can be applied in the embodiment of the present application is briefly introduced in conjunction with FIG. 1 . It should be noted that the embodiment of the present application is only described by using the monitoring scenario shown in FIG. 1 as an example. The embodiment of the present application can also be applied to other systems with monitoring requirements, such as storage devices in a storage system and The server accessing the storage device is monitored, or the terminal in the network communication system and the server serving the terminal are monitored, and the server serving the terminal may be a storage server. The storage device in the storage system can also be a storage server, which can be a computer, a computer, or other computing device that can be used for storage.
图1是本申请实施例适用的监控场景的示意性框图。图1所示的监控场景中包括的设备有终端110,存储系统120和监控器130。FIG. 1 is a schematic block diagram of a monitoring scenario to which the embodiment of the present application is applied. The devices included in the monitoring scenario shown in FIG. 1 include a terminal 110, a storage system 120, and a monitor 130.
终端110,用户可以通过终端上设置的客户端对存储服务器的存储空间进行访问。The terminal 110 allows the user to access the storage space of the storage server through the client set on the terminal.
应理解,上述终端可以包括但不限于计算设备、移动台(Mobile Station,MS)、移动终端(Mobile Terminal)、移动电话(Mobile Telephone)、用户设备(User Equipment,UE)、手机(handset)及便携设备(portable equipment)等。It should be understood that the foregoing terminals may include, but are not limited to, a computing device, a mobile station (MS), a mobile terminal (Mobile Terminal), a mobile phone (Mobile Telephone), a user equipment (User Equipment, UE), a handset (handset), and Portable equipment, etc.
存储系统120,为终端提供存储服务和访问服务。包括至少一个控制节点和多个存储节点,控制节点用于对存储节点进行控制,例如监控存储节点的容量或负责存储节点的负载均衡;存储节点用于提供存储空间,例如,用于存储终端上传至存储系统的数据。The storage system 120 provides storage services and access services for the terminal. The control node is configured to control the storage node, such as monitoring the capacity of the storage node or responsible for load balancing of the storage node; the storage node is configured to provide storage space, for example, for storage terminal uploading. Data to the storage system.
监控器130,用于对存储系统和/或终端的性能数据进行采样,监控存储系统和/或终端中的性能数据随时间的变化,并将采样后的性能数据(又称采样数据)上传至存储服务器。The monitor 130 is configured to sample performance data of the storage system and/or the terminal, monitor performance changes of the storage system and/or the terminal over time, and upload the sampled performance data (also referred to as sampling data) to Storage server.
需要说明的是,上述监控器可以是独立于存储系统和终端的第三方监控器,上述监控器还可以位于存储系统中,上述监控器还可以位于终端中。本申请实施例对监控器的具体实现形式不做限定。It should be noted that the foregoing monitor may be a third-party monitor independent of the storage system and the terminal, and the monitor may also be located in the storage system, and the monitor may also be located in the terminal. The specific implementation form of the monitor is not limited in this embodiment of the present application.
现有技术中,监控器在对云存储设备中的性能数据进行采样的过程中,通常使用固定的采样间隔对设备的性能数据进行采样。若采样间隔设置较大,进行采样后获得的采样数据反映的设备性能随时间变化的情况的准确度低,则不能确定采样数据反映出的设备性能随时间变化的情况是与事实相符合的。若采样间隔设置较小,进行采样后获得的采样数据反映的设备性能随时间变化的情况的准确度高,有利于反映出设备的性能随时间的变化情况与事实相符,但是使用较小的采样间隔对设备的性能数据进行采样,会增加采样数据的数据量,对采样数据进行分析前需要提供足够的存储空间存储大量的采样数据,消耗存储空间。另外,采用与监控器连接的存储服务器或其他分析设备对采样数据进行分析时,如果采样数据的数据量大,则传输采样数据时需要消耗更多的传输资源。In the prior art, the monitor samples the performance data of the device by using a fixed sampling interval in the process of sampling the performance data in the cloud storage device. If the sampling interval is set large, the accuracy of the device performance reflected by the sampling data obtained after sampling is low, and it is not consistent with the fact that it cannot be determined that the performance of the device reflected by the sampling data changes with time. If the sampling interval is set small, the accuracy of the device performance reflected by the sampling data obtained after sampling is high, which is favorable to reflect that the performance of the device changes with time, which is consistent with the fact, but uses smaller sampling. Interval sampling the performance data of the device will increase the amount of data of the sampled data. Before analyzing the sampled data, it is necessary to provide sufficient storage space to store a large amount of sampled data and consume storage space. In addition, when the sampling data is analyzed by a storage server or other analysis device connected to the monitor, if the amount of data of the sampled data is large, more transmission resources are consumed when transmitting the sampled data.
因此,上述使用固定的采样间隔对设备的性能数据进行采样的方式,不能同时满足减少采样数据的存储空间的要求,以及准确反应设备性能随时间变化的情况的要求。Therefore, the above method of sampling the performance data of the device using a fixed sampling interval cannot simultaneously satisfy the requirement of reducing the storage space of the sampled data, and the requirement of accurately reflecting the performance of the device over time.
为了准确反映云存储设备的性能随时间变化的情况,并且减少采样数据的数据量,本申请实施例提供了一种对设备的性能数据进行采样的方法,确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度;在所述第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样;在所述第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。In order to accurately reflect the performance of the cloud storage device over time, and reduce the data amount of the sampled data, the embodiment of the present application provides a method for sampling performance data of the device, and determining the first preset time period. a time interval and a second time interval, wherein a change degree of the value of the performance data of the device in the first time interval is smaller than a change degree of the value of the performance data of the device in the second time interval Capturing performance data of the device in the first time interval at the first sampling interval in the first time interval; and in the second time interval, in the second time interval The performance data of the device in the interval is sampled, wherein the first sampling interval is greater than the second sampling interval.
本申请实施例中,基于设备的性能数据的取值的变化程度不同,选择不同的采样间隔 对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较小的第一时间区间,使用第一采样间隔对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较大的第二时间区间,使用第二采样间隔对设备的性能数据进行采样,减少对设备的性能数据进行采样后得到的性能数据(即采样数据)的数据量,同时可以根据采样后得到的性能数据准确的反应出设备的性能随时间的变化情况。In the embodiment of the present application, the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small. The performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced. The amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
下文结合图2详细描述本申请实施的方法。The method of the present application is described in detail below in conjunction with FIG.
图2是本申请实施例的对设备的性能数据进行采样的方法的示意性流程图。应理解,图2所示的方法可以由图1中的监控器130执行,图2所示的方法可以包括步骤210至步骤250。FIG. 2 is a schematic flowchart of a method for sampling performance data of a device according to an embodiment of the present application. It should be understood that the method illustrated in FIG. 2 may be performed by the monitor 130 of FIG. 1, and the method illustrated in FIG. 2 may include steps 210 through 250.
210,确定周期,根据周期确定周期内各采样点设备的性能数据的取值。210: Determine a period, and determine, according to the period, a value of performance data of each sampling point device in the period.
具体地,上述设备可以是被监控的对象,例如图1所示的监控场景中的终端和/或存储系统。Specifically, the above device may be a monitored object, such as a terminal and/or a storage system in the monitoring scenario shown in FIG. 1.
上述设备的性能数据的取值可以反映设备的某类性能参数的取值。例如,上述设备的性能数据可以是设备的计算资源的占用率,例如,存储系统中存储服务器的处理器的占用率,或终端处理器的占用率;上述设备的性能数据还可以是设备的存储资源的占用率,例如,存储系统中的存储服务器的存储空间的占用率;上述设备的性能数据还可以是设备的传输资源的占用率,例如,存储系统中的存储服务器响应终端发送的读请求而向终端传输数据时所占用的传输资源,上述传输资源可以是读带宽、写带宽等,或存储系统中的存储服务器向终端传输数据所占用的带宽。The value of the performance data of the above device may reflect the value of a certain type of performance parameter of the device. For example, the performance data of the device may be the occupancy rate of the computing resource of the device, for example, the occupancy rate of the processor of the storage server in the storage system, or the occupancy rate of the terminal processor; the performance data of the device may also be the storage of the device. The occupancy rate of the resource, for example, the storage space of the storage server in the storage system; the performance data of the device may also be the occupancy rate of the transmission resource of the device, for example, the storage server in the storage system responds to the read request sent by the terminal. The transmission resource occupied by the terminal when transmitting data to the terminal may be a read bandwidth, a write bandwidth, or the like, or a bandwidth occupied by the storage server in the storage system to transmit data to the terminal.
应理解,上述周期可以是基于设备的历史性能数据的取值随时间的变化规律,通过计算得到的。上述周期还可以预设的,例如可以设置上述周期为一天(24小时)或者一个月。上述周期还可以是基于设备的历史性能数据的取值随时间的变化规律确定的。It should be understood that the above period may be obtained by calculation based on the variation of the value of the historical performance data of the device with time. The above cycle may also be preset, for example, the above period may be set to one day (24 hours) or one month. The above period may also be determined based on the variation of the value of the historical performance data of the device with time.
下文重点介绍基于设备的历史性能数据的取值随时间的变化规律确定周期的方法,其中,确定所述周期的具体实现方式可以由以下步骤211-213实现,以及确定周期内性能数据在各采样点的取值可以由步骤214实现。具体实现方式参见如下描述。The method for determining the period based on the change rule of the historical performance data of the device with time is mainly described below, wherein the specific implementation manner of determining the period can be implemented by the following steps 211-213, and determining the performance data of the period in each sampling. The value of the point can be implemented by step 214. For specific implementations, refer to the following description.
211,将第二预设时间段划分为多个子时间段,并获取多个子时间段中的每个子时间段内的设备的性能数据的取值随时间的变化趋势。211. Divide the second preset time period into multiple sub-time segments, and obtain a trend of the value of the performance data of the device in each of the plurality of sub-time segments over time.
具体地,上述第二预设时间段内设备的性能数据,可以理解为第二预设时间段内表示设备的性能的历史性能数据。即在执行步骤211之前,所述方法还包括,获取设备在第二预设时间段内的性能数据。例如获取前一个月或前一年或前24小时的性能数据。Specifically, the performance data of the device in the second preset time period may be understood as historical performance data indicating the performance of the device in the second preset time period. That is, before performing step 211, the method further includes: acquiring performance data of the device in the second preset time period. For example, get performance data from the previous month or the previous year or the first 24 hours.
应理解,上述将第二预设时间段划分为多个子时间段的方式有很多种,本申请实施例对此不做限定。It should be understood that there are many ways to divide the second preset time period into multiple sub-time periods, which is not limited by the embodiment of the present application.
例如,基于图3实现的将第二预设时间段划分为多个子时间段的一种实现方式为,将第二预设时间段划分为连续的多个子时间段。请参见图3,图3示出了本申请实施例的多个子时间段在第二预设时间段内的分布的一种示意图。在图3所示的时间轴上,包含了第二预设时间段内对设备的性能数据进行n次采样,得到的n个采样点t 1,t 2,...t n分别对应的设备的性能数据的取值x 1,x 2,...,x n,n为正整数。这n个采样点t 1,t 2,...t n分别对应的设备的性能数据的取值x 1,x 2,...,组成了设备的性能数据序列为X={x 1,x 2, ......,x n},其中,x n表示性能数据序列中第n个性能数据的取值。然后,将第二预设时间段划分为m个首尾相连的子时间段T 1,T 2,...,T m,m为正整数。每个子时间段包含L个采样点,即子时间段T 1中包含的设备的性能数据的取值为{x 1,x 2,...,x L},子时间段T 2中包含的设备的性能数据的取值为{x L,x L+1,...,x 2L-1},子时间段T 3中包含的设备的性能数据的取值为{x 2L-1,x 2L,...,x 3L-2},子时间段T m中包含的设备的性能数据的取值为{x (m-1)(L-1)+1,...,x n}。 For example, one implementation of dividing the second preset time period into multiple sub-time segments based on FIG. 3 is to divide the second preset time period into consecutive multiple sub-time segments. Please refer to FIG. 3. FIG. 3 is a schematic diagram showing the distribution of multiple sub-time periods in the second preset time period in the embodiment of the present application. On the time axis shown in FIG. 3, comprising a second predetermined period of time the device performance data sampled n times, n sampling points obtained t 1, t 2, ... t n corresponding to each device The value of the performance data x 1 , x 2 , ..., x n , n is a positive integer. The values of the performance data of the device corresponding to the n sampling points t 1 , t 2 , ... t n respectively are x 1 , x 2 , ..., and the performance data sequence of the device is X={x 1 . x 2 , ..., x n }, where x n represents the value of the nth performance data in the performance data sequence. Then, the second preset time period is divided into m end-to-end sub-time segments T 1 , T 2 , . . . , T m , m are positive integers. Each sub-period includes L sample points, that is, the value of the performance data of the device included in the sub-period T 1 is {x 1 , x 2 , . . . , x L }, and is included in the sub-period T 2 The value of the performance data of the device is {x L , x L+1 ,..., x 2L-1 }, and the performance data of the device included in the sub-period T 3 is {x 2L-1 , x 2L ,...,x 3L-2 }, the performance data of the device included in the sub-period T m is {x (m-1)(L-1)+1 ,...,x n } .
需要说明的是,上述第二预设时间段内包含的性能数据的数量可能不能被多个等长度的子时间段完全划分,也就是说,将上述第二预设时间段中的性能数据按照每个子时间段包含L个性能数据划分时,可能剩余的性能数据的数量小于L,此时,可以将上述剩余的性能数据划分为最后一个子时间段,上述第二预设时间段内最后一个子时间段内包含的性能数据的数量小于L个。It should be noted that the number of performance data included in the second preset time period may not be completely divided by multiple sub-time segments of equal length, that is, the performance data in the second preset time period is followed. When each sub-period includes L performance data partitions, the number of remaining performance data may be less than L. In this case, the remaining performance data may be divided into the last sub-time period, and the last one in the second preset time period. The number of performance data contained in the sub-period is less than L.
本申请实施例中,将第二预设时间段划分为多个子时间段的另一种实现方式可以基于图4实现,即通过滑动第一滑动窗口将第二预设时间段分为多个子时间段。需要说明的是,基于图3所示的将第二预设时间段划分为多个连续的子时间段的方式,相比于基于图4所示的通过滑动第一滑动窗口将第二预设时间段分为多个子时间段的方法而言,比较简单,有利于降低第二预设时间段分为多个子时间段的复杂度。请参见图4,图4示出了本申请实施例的多个子时间段在第二预设时间段内分布的另一种示意图。在图4所示的时间轴上,包含了第二预设时间段内对设备的性能数据进行n次采样,得到的n个采样点t 1,t 2,...,t n分别对应的设备的性能数据的取值x 1,x 2,...,x n,n为正整数。这n个采样点t 1,t 2,...t n分别对应的设备的性能数据的取值x 1,x 2,...,x n组成了设备的性能数据序列为X={x 1,x 2,......,x n},其中,x n表示性能数据序列中第n个性能数据的取值。然后,将预设时间宽度为L的第一滑动窗口,在第二预设时间段上以第一预设步长,从第二预设时间段的起始时刻开始,向第二预设时间段的结束时刻的方向(例如图4中从左向右的方向)滑动,以生成时间宽度为L的多个子时间段T 1,T 2,......,T n-L+1。每一次通过预设时间宽度为L的第一滑动窗口以第一预设步长滑动后对设备的性能数据序列进行取值,则可以获得L个相邻的性能数据,L为正整数。第一预设步长的选择有多种实现方式,可以为上述性能数据序列中两个相邻的性能数据之间的时间长度,即为对设备的性能数据进行密集采样时使用的采样间隔。如此,依次生成的(n-L+1)个子序列分别为:X 1={x 1,x 2,...,x L},X 2={x 2,x 3,...,x L+1},......,X n-L+1={x n-L+1,x n-L+2,...,x n}。即,子时间段T 1中包含的设备的性能数据的取值为{x 1,x 2,...,x L},子时间段T 2中包含的设备的性能数据的取值为{x 2,x 3,...,x L+1},子时间段T 3中包含的设备的性能数据的取值为{x 3,x 4,...,x L+2},子时间段T n-L+1中包含的设备的性能数据的取值为{x n-L+1,x n-L+2,...,x n}。 In the embodiment of the present application, another implementation manner of dividing the second preset time period into multiple sub-time segments may be implemented based on FIG. 4, that is, dividing the second preset time period into multiple sub-times by sliding the first sliding window segment. It should be noted that, according to the manner in which the second preset time period is divided into multiple consecutive sub-time segments as shown in FIG. 3, the second preset is compared by sliding the first sliding window based on FIG. 4 . The method in which the time segment is divided into multiple sub-time segments is relatively simple, and is advantageous for reducing the complexity of dividing the second preset time segment into multiple sub-time segments. Referring to FIG. 4, FIG. 4 is another schematic diagram showing distribution of multiple sub-time periods of the embodiment of the present application in a second preset time period. On the time axis shown in FIG. 4, the performance data of the device is sampled n times in the second preset time period, and the obtained n sample points t 1 , t 2 , . . . , t n respectively correspond to The value of the performance data of the device x 1 , x 2 , ..., x n , n is a positive integer. The values of the performance data of the device corresponding to the n sampling points t 1 , t 2 , ... t n respectively x 1 , x 2 , ..., x n constitute the performance data sequence of the device is X = {x 1 , x 2 , ..., x n }, where x n represents the value of the nth performance data in the performance data sequence. Then, the first sliding window with the preset time width L is set, and the first preset step size is used in the second preset time period, starting from the starting time of the second preset time period, and the second preset time is The direction of the end time of the segment (for example, the direction from left to right in FIG. 4) is slid to generate a plurality of sub-periods T 1 , T 2 , ..., T n-L+1 having a time width L . Each time the first sliding window having the preset time width L is slid in the first preset step, the performance data sequence of the device is valued, and L adjacent performance data can be obtained, where L is a positive integer. There are multiple implementations of the first preset step size, which may be the length of time between two adjacent performance data in the above performance data sequence, that is, the sampling interval used when intensively sampling the performance data of the device. Thus, the sequentially generated (n-L+1) subsequences are: X 1 = {x 1 , x 2 , ..., x L }, X 2 = {x 2 , x 3 , ..., x L+1 }, ..., X n-L+1 = {x n-L+1 , x n-L+2 , ..., x n }. That is, the value of the performance data of the device included in the sub-period T 1 is {x 1 , x 2 , . . . , x L }, and the value of the performance data of the device included in the sub-period T 2 is { x 2 , x 3 ,..., x L+1 }, the performance data of the device included in the sub-period T 3 is {x 3 , x 4 ,..., x L+2 }, sub The performance data of the device included in the time period T n-L+1 is taken as {x n-L+1 , x n-L+2 , . . . , x n }.
应理解,图4仅仅示例性的列出了上述第一预设步长为2个采样点之间的时间长度时,将第一滑动窗口沿着时间增大的方向滑动,生成的子时间段,本申请实施例对于上述 第一预设步长的具体取值和上述第一滑动窗口的滑动方向都不作具体限定,例如,上述第一预设步长还可以是t 1对应的采样点与t 3对应的采样点之间的时间长度。上述第一滑动窗口的滑动方向还可以是以第二预设时间段的结束时刻为起点,向第二预设时间段起点的方向(图4中从右向左的方向)滑动。 It should be understood that FIG. 4 merely exemplarily lists the first sliding step is a time length between two sampling points, and the first sliding window is slid in the direction of increasing time, and the generated sub-period The specific value of the first preset step and the sliding direction of the first sliding window are not specifically limited. For example, the first preset step may also be a sampling point corresponding to t 1 . The length of time between the sampling points corresponding to t 3 . The sliding direction of the first sliding window may also be the direction from the end time of the second preset time period to the starting point of the second preset time period (the right-to-left direction in FIG. 4).
还应理解,上述第一预设步长可以是以在获取n个设备的性能数据的过程中,对上述n个设备的性能数据进行采样时的采样间隔为单位的。也就是说,在获取设备的历史的性能数据在各个采样点的取值时,使用的采样间隔的整数倍可以作为上述第一预设步长。例如第一预设步长可以是1倍的采样间隔,或者2倍的采样间隔,本申请实施例对此不做限定。It should also be understood that the first preset step size may be a sampling interval in which the performance data of the n devices is sampled in the process of acquiring performance data of the n devices. That is to say, when the performance data of the history of the device is acquired at each sampling point, an integer multiple of the sampling interval used may be used as the first preset step size. For example, the first preset step size may be a sampling interval of 1 time, or a sampling interval of 2 times, which is not limited by the embodiment of the present application.
还应理解,上述第二预设时间段可以是一天,或者一个月,或者一年,本申请实施例对于第二预设时间段的具体长度不做限定。第二预设时间段设置的时间长度越长,使得确定周期使用的设备的历史性能数据的数据量越多,越有利于确定上述周期。It should be understood that the foregoing second preset time period may be one day, or one month, or one year, and the specific length of the second preset time period is not limited in the embodiment of the present application. The longer the time length set by the second preset time period, the more the data amount of the historical performance data of the device used for determining the period is, the more advantageous it is to determine the above period.
还应理解,为了提高确定周期的成功率,上述第二预设时间段如果太短,例如,不包括一个完整周期时,会导致确定周期失败,因此,上述第二预设时间段越长越能提高确定周期的成功率。It should also be understood that, in order to increase the success rate of the determination period, if the second preset time period is too short, for example, when a complete period is not included, the determination period may be failed. Therefore, the second preset time period is longer. Can improve the success rate of the determination cycle.
本申请实施例中,通过第一滑动窗口确定第二预设时间段分为多个子时间段的方法,相对于图3中将第二预设时间段分为多个子时间段的方法而言,划分的粒度较小,有利于提高后续确定的周期的准确性。In the embodiment of the present application, the method for determining that the second preset time period is divided into multiple sub-time segments is determined by using the first sliding window, and the method for dividing the second preset time period into multiple sub-time segments in FIG. 3 The smaller granularity of the partitioning is beneficial to improve the accuracy of the subsequently determined period.
212,从上述多个子时间段中确定两个子时间段,在上述两个子时间段中设备的性能数据的取值的变化趋势相同。212: Determine two sub-time periods from the plurality of sub-time periods, wherein the values of the performance data of the devices change in the two sub-time periods.
上述确定的两个子时间段可以是两个距离最接近的子时间段,或者是两个距离比较靠近的子时间段。The two sub-periods determined above may be the two sub-periods with the closest distance, or two sub-periods with relatively close distances.
具体地,获取第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,并将所述第二预设时间段划分成N个子时间段,N为正整数;以所述N个子时间段内的第i个子时间段内所述设备的性能数据的取值的变化趋势为基准,确定所述N个子时间段内第j个子时间段内的所述设备性能数据的取值的变化趋势与所述第i个子时间段内的所述设备的性能数据的取值的变化趋势之间的相似程度,j∈[1,N],i∈[1,N],j≠i,且j和i为正整数;从所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度中,选择与所述第i个子时间段内所述设备的性能数据的取值的变化趋势相同的目标时间段;确定所述第i个子时间段中第一采样点与所述目标时间段中的第二采样点之间的时间长度,所述第一采样点在所述第i个子时间段中的位置与所述第二采样点在所述目标时间段中的位置相同;选取所述第二预设时间段内任一采样点为所述周期的起始时间,以所述第一采样点与所述第二采样点之间的时间长度为所述周期的长度,确定所述周期。Specifically, the trend of the value of the performance data of the device in the second preset time period is obtained, and the second preset time period is divided into N sub-time segments, where N is a positive integer; Determining a change trend of the value of the performance data of the device in the i-th sub-period of the N sub-periods as a reference, and determining the device performance data in the j-th sub-period within the N sub-periods The degree of similarity between the change trend of the value and the change trend of the value of the performance data of the device in the i-th sub-period, j ∈ [1, N], i ∈ [1, N], j ≠ i, and j and i are positive integers; a variation trend of the value of the performance data of the device from the i-th sub-period and a value of the performance data of the device in the j-th sub-period a degree of similarity between the change trends, selecting a target time period that is the same as a change trend of the value of the performance data of the device in the i-th sub-period; determining a first sampling point in the i-th sub-time period a length of time between a second sampling point in the target time period, The position of the first sampling point in the i-th sub-period is the same as the position of the second sampling point in the target time period; selecting any sampling point in the second preset time period is the The start time of the period is determined by the length of time between the first sampling point and the second sampling point being the length of the period.
可选地,作为一个实施例,所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度s ij, 其中
Figure PCTCN2017115294-appb-000005
Y表示所述第i个子时间段和所述第j个子时间段内包含的对所述设备的性能数据进行采样的采样点的数量,t iy表示第i个子时间段内第y个所述设备的性能数据的取值,t jy表示第j个子时间段内第y个所述设备的性能数据的取值,
Figure PCTCN2017115294-appb-000006
表示第i个子时间段内所述设备的性能数据的取值的均值,
Figure PCTCN2017115294-appb-000007
表示第j个子时间段内所述设备的性能数据的取值的均值。
Optionally, as an embodiment, a change trend of the value of the performance data of the device in the i-th sub-period and a change trend of the value of the performance data of the device in the j-th sub-period The degree of similarity between s ij , where
Figure PCTCN2017115294-appb-000005
Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period The value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period,
Figure PCTCN2017115294-appb-000006
Means the mean value of the performance data of the device in the i-th sub-period,
Figure PCTCN2017115294-appb-000007
Indicates the mean value of the performance data of the device in the jth sub-period.
需要说明的是,上述表示第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势之间的相似程度s ij,又可以称为Pearson相关系数,s ij的取值范围为[-1,1],其中,s ij的值越大,即s ij的值越接近于1,表示第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势越相似;s ij的值越小,即s ij的值越接近于-1,表示第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势越不相似。 Incidentally, the degree of similarity between the change of s ij values of performance data trend values represent the performance data of the i-th period and the j-th equipment devices period, but also Pearson correlation coefficients referred to, in the range of s ij [-1,1], wherein the larger the value of s ij, s ij i.e. the value close to 1, indicates the i-th period of performance data device the more similar trend value change trend of performance data and the value j-th time period device; the smaller the value of s ij, s ij i.e. the value close to -1, denotes the i th period The change trend of the value of the performance data of the internal device is not the same as the change trend of the value of the performance data of the device in the jth time period.
可选地,若s ij的值属于[0.8,1],则可以认为第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势相同。 Optionally, if the value of s ij belongs to [0.8, 1], the change trend of the value of the performance data of the device in the i-th time period and the value of the performance data of the device in the j-th time period may be considered. The trend of change is the same.
本申请实施例对于表示第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势相同时,s ij的取值范围不做具体限定,s ij的取值范围约接近1,则表示判断第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势相同的条件越严格,可以为后续确定周期提供更加准确的依据。 In the embodiment of the present application, when the change trend of the value of the performance data of the device in the i-th time period is the same as the change trend of the value of the performance data of the device in the j-th time period, the value range of s ij is not performed. Specifically, the value range of s ij is approximately 1, indicating that the change trend of the value of the performance data of the device in the i-th time period is the same as the change trend of the value of the performance data of the device in the j-th time period. The stricter the conditions, the more accurate basis for the subsequent determination cycle.
可选地,上述从多个时间段中确定两个子时间段,还可以通过s ij的值的极大值确定。也就是说,s ij的值为极大值时,则可以认为第i个时间段内设备的性能数据的取值的变化趋势与第j个时间段内设备的性能数据的取值的变化趋势相同。 Optionally, determining the two sub-time periods from the plurality of time periods may also be determined by the maximum value of the value of s ij . That is to say, when the value of s ij is a maximum value, the change trend of the value of the performance data of the device in the i-th time period and the change trend of the value of the performance data of the device in the j-th time period can be considered. the same.
例如,可以将子序列X 1中设备的性能数据的取值的变化趋势作为基准,逐个与多个子序列中的其他子序列中设备的性能数据的取值的变化趋势进行对比,确定多个子序列中与子序列X 1中设备的性能数据的取值的变化趋势相同的子序列。其中,子序列X 1中设备的性能数据的取值的变化趋势与多个子序列中的其他子序列中设备的性能数据的取值的变化趋势之间的相似程度s 1j可以通过Pearson相关系数确定,即
Figure PCTCN2017115294-appb-000008
Figure PCTCN2017115294-appb-000009
Figure PCTCN2017115294-appb-000010
其中,
Figure PCTCN2017115294-appb-000011
表示第i个子序列X i的均值;
Figure PCTCN2017115294-appb-000012
表示第一个子序列X 1的均值。
For example, the change trend of the value of the performance data of the device in the sub-sequence X 1 can be used as a reference, and the trend of the value of the performance data of the device in the other sub-sequences of the plurality of sub-sequences is compared one by one to determine the plurality of sub-sequences. A subsequence in which the value of the performance data of the device in the subsequence X 1 is the same. Wherein the degree of similarity between the s value trend value change trend of performance data sequence X in the device 1 with other sequences in the plurality of sub-sequences device 1j performance data may be determined by the Pearson correlation coefficient , which is
Figure PCTCN2017115294-appb-000008
Figure PCTCN2017115294-appb-000009
And
Figure PCTCN2017115294-appb-000010
among them,
Figure PCTCN2017115294-appb-000011
Means the mean of the i-th sub-sequence X i ;
Figure PCTCN2017115294-appb-000012
Represents the mean of the first subsequence X 1 .
其中,s 1j的取值越大表示子序列X 1中设备的性能数据的取值的变化趋势与多个子序列中的其他子序列中设备的性能数据的取值的变化趋势之间的相似程度X 1中越高,因此,可以在表示子序列X 1中设备的性能数据的取值的变化趋势与其他子序列中第j个子序列X j设备的性能数据的取值的变化趋势之间相似程度的多个s 1j中,选取s 1j的取值最大的两个子序列作为设备的性能数据的取值的变化趋势相同的两个子序列,设备的性能数据的取值 的变化趋势相同的两个子序列分别对应的子时间段为最终确定的两个子时间段。 Wherein, the larger the value of s 1j is, the degree of similarity between the change trend of the value of the performance data of the device in the sub-sequence X 1 and the change trend of the value of the performance data of the device in the other sub-sequences of the plurality of sub-sequences The higher the value in X 1 , therefore, the degree of similarity between the change trend of the value of the performance data of the device in the sub-sequence X 1 and the change in the value of the performance data of the j-th sub-sequence X j device in the other sub-sequences value the same trend of a plurality of s 1j, select the maximum value of s 1j of two sequences as the change of the value of the performance data of the same device performance data of two sub-sequences, two sequences device The corresponding sub-periods are the two sub-periods that are finally determined.
可选地,上述设备的性能数据的取值的变化趋势相同的两个子时间段,还可以是上述相似程度s ij两次出现极大值时对应的子时间段。 Optionally, the two sub-time periods in which the value of the performance data of the device is the same may be the sub-time period corresponding to the similarity degree s ij when the maximum value occurs twice.
例如,在以第一子时间段内设备的性能数据的变化趋势为基准与第二子时间段设备的性能数据的变化趋势进行对比时,第一子时间段与第二子时间段内设备的性能数据的相似程度出现第一次极大值,在以第一子时间段内设备的性能数据的变化趋势为基准与第三子时间段设备的性能数据的变化趋势进行对比时,第一子时间段与第三子时间段内设备的性能数据的相似程度出现第二次极大值,此时可以认为第二子时间段与第三子时间段的设备的性能数据的变化趋势相同。For example, when comparing the trend of the performance data of the device in the first sub-period with the trend of the performance data of the device in the second sub-period, the devices in the first sub-period and the second sub-period The degree of similarity of the performance data shows the first maximum value. When comparing the trend of the performance data of the device in the first sub-period period with the trend of the performance data of the device in the third sub-period, the first sub- The second maximum value occurs when the time period is similar to the performance data of the device in the third sub-time period. In this case, the change trend of the performance data of the device in the second sub-time period and the third sub-time period can be considered to be the same.
需要说明的是,为了减少上述性能数据的取值的变化趋势相同的两个子时间段位于同一个周期内的概率,在对第二预设时间段进行划分的过程中,可以使用不同长度的多个第一滑动窗口重复对第二预设时间段进行划分,并基于多个第一滑动窗口划分的多个子时间段确定多个参考周期,最终可以选取多个参考周期中出现频率最高的参考周期作为上述周期,或选取多个参考周期中时间最长的参考周期作为上述周期。It should be noted that, in order to reduce the probability that the two sub-time segments with the same change trend of the value of the foregoing performance data are located in the same period, in the process of dividing the second preset time period, multiple lengths may be used. The first sliding window repeatedly divides the second preset time period, and determines a plurality of reference periods based on the plurality of sub-time segments divided by the plurality of first sliding windows, and finally may select the reference period with the highest frequency among the plurality of reference periods As the above period, or the reference period in which the longest time among the plurality of reference periods is selected is taken as the above period.
213,根据设备的性能数据的取值的变化趋势相同的两个子时间段确定周期长度。213. Determine a period length according to two sub-time periods in which the value of the performance data of the device changes in the same trend.
具体的,可以确定任一时间段中的第一采样点与另一时间段中的第二采样点之间的时间长度为所述周期长度,所述第一采样点在所述任一时间段中的位置与所述第二采样点在所述另一时间段中所处的位置相同。所述任一时间段的第一采样点以及所述任一时间段的第一采样点与所述另一时间段中的第二点之间的性能数据为所述满足周期长度的一段性能数据。可选的,所述第一采样点可以是所述任一时间段的起始时刻,则所述第二采样点为所述另一时间段的起始时刻。或者,所述第一采样点可以是所述任一时间段的结束时刻,则所述第二采样点为所述另一时间段的结束时刻。Specifically, it may be determined that a length of time between a first sampling point in any time period and a second sampling point in another time period is the period length, and the first sampling point is in any one of the time periods The position in the middle is the same as the position at which the second sampling point is in the other time period. The performance data between the first sampling point of any one of the time periods and the first sampling point of the any one of the time periods and the second one of the other time periods is a piece of performance data satisfying the length of the period . Optionally, the first sampling point may be a starting moment of any one of the time periods, and the second sampling point is a starting moment of the another time period. Alternatively, the first sampling point may be an ending time of any one of the time periods, and the second sampling point is an ending time of the another time period.
例如,上述周期的长度Q可以指每个周期包含上述性能数据序列中连续的Q个性能数据,即上述周期的长度Q=Q×T s,其中,Q为正整数,T s表示在第二预设时间段对设备的性能数据进行采样生成性能数据序列时使用的对采样间隔。从上述性能数据序列中,选取任一性能数据对应的采样点作为周期的起始时刻,选取周期长度内全部的性能数据共同组成一个完整周期的子序列X T={x 1,x 2,...,x Q}。 For example, the length Q of the above period may mean that each period includes consecutive Q performance data in the above-mentioned performance data sequence, that is, the length of the above period Q=Q×T s , where Q is a positive integer and T s is represented in the second The sampling interval used to sample the performance data of the device during the preset time period to generate the performance data sequence. From the above performance data sequence, the sampling point corresponding to any performance data is selected as the starting time of the period, and all the performance data in the period length are selected to form a complete sequence sub-sequence X T ={x 1 ,x 2 ,. ..,x Q }.
214,确定设备的性能数据在周期内各采样点的取值。214. Determine a value of each sampling point of the performance data of the device in the period.
具体地,确定设备的性能数据在周期内各采样点的取值可以通过以下两种方法确定。Specifically, determining the performance data of the device in each period of the sampling point can be determined by the following two methods.
方法一、以第二预设时间段内任一采样点作为周期的起始时刻,确定周期长度内连续的采样点对应的设备的性能数据的取值。Method 1: Taking any sampling point in the second preset time period as the starting time of the period, determining the value of the performance data of the device corresponding to the consecutive sampling points in the period length.
可选地,在第二预设时间段内的设备的性能数据的取值的变化程度较大的时间段中,选取任一采样点作为上述周期的起始时刻。有利于保证一个周期内第一时间区间的连续性,避免将周期的起始时刻选取在设备的性能数据的取值的变化程度较小的时间段时,将周期内本来可以连续的第一时间区间划分为两个时间区间。Optionally, in the time period in which the value of the performance data of the device in the second preset time period is changed to a greater extent, any sampling point is selected as the starting time of the cycle. It is beneficial to ensure the continuity of the first time interval in one cycle, and avoid selecting the first time of the cycle when the start time of the cycle is selected in a time period in which the change of the value of the performance data of the device is small. The interval is divided into two time intervals.
方法二,确定多个周期中设备的性能数据在各采样点的真实值,并计算多个周期内相同位置的各采样点对应的设备的性能数据的真实值的平均值,将计算后各采样点对应的设备的性能数据的取值的平均值作为上述周期内各采样点对应的设备的性能数据的取值。In the second method, the actual value of the performance data of the device in each cycle is determined, and the average value of the actual value of the performance data of the device corresponding to each sampling point in the same position in multiple cycles is calculated, and each sample is calculated. The average value of the performance data of the device corresponding to the point is taken as the value of the performance data of the device corresponding to each sampling point in the above cycle.
例如,使用设备的性能数据在两个周期内各采样点的真实值的平均值作为上述设备的 性能数据在周期内各采样点的取值。若两个周期中每个周期内包括L个性能数据,则通过上述方法一确定的2个周期分别为T 1={x 1,x 2,...,x L}和T 2={x L+1,x L+2,...,x L+L},其中L为正整数。按照方法二,基于周期T 1和T 2确定的周期内设备的性能数据的取值的平均值为
Figure PCTCN2017115294-appb-000013
For example, using the performance data of the device, the average value of the true values of each sampling point in two periods is taken as the value of each sampling point in the period of the performance data of the above device. If L performance data is included in each of the two periods, the two periods determined by the above method 1 are T 1 = {x 1 , x 2 , ..., x L } and T 2 = {x, respectively. L+1 , x L+2 , ..., x L+L }, where L is a positive integer. According to the second method, the average value of the performance data of the device in the period determined based on the periods T 1 and T 2 is
Figure PCTCN2017115294-appb-000013
需要说明的是,上述方式二中多段性能数据中任意两段性能数据完全不重合,也就是说,上述任意两段性能数据中的第一个性能数据之间间隔的时间长度可以为周期的长度的整数倍。当然,上述方式二中多段性能数据中任意两段性能数据可以部分重合,也就是说,上述任意两段性能数据中的第一个性能数据之间间隔的时间长度可以小于或等于周期的长度。It should be noted that any two pieces of performance data in the multi-segment performance data in the foregoing manner 2 do not overlap at all, that is, the length of the interval between the first performance data in any two pieces of performance data may be the length of the period. Integer multiple. Certainly, any two pieces of performance data in the multi-segment performance data in the foregoing mode 2 may partially overlap, that is, the length of time between the first performance data in any two of the foregoing performance data may be less than or equal to the length of the period.
本申请实施例中,若基于步骤214中通过方式二确定周期内各采样点对应的设备的性能数据的取值,有利于提高确定第一时间区间和第二时间区间的准确性,避免由于单个周期中出现设备的个别异常的性能数据,而导致第一时间区间和第二时间区间的划分不准确的情况出现。In the embodiment of the present application, if the value of the performance data of the device corresponding to each sampling point in the period is determined according to the method 2 in step 214, it is advantageous to improve the accuracy of determining the first time interval and the second time interval, thereby avoiding a single The performance data of the individual anomalies of the device appear in the cycle, and the division of the first time interval and the second time interval is inaccurate.
若上述性能数据的取值随时间以周期进行变化,可以通过步骤220确定周期内第一时间区间和第二时间区间,下文中的第二预设时间段可以是周期,例如,可以是上述步骤230确定的周期。若上述性能数据的取值随时间非周期性变化,可以通过步骤220确定第二预设时间段(任意一段时间)内的第一时间区间和第二时间区间,而不用执行上述步骤210。If the value of the foregoing performance data changes periodically with time, the first time interval and the second time interval in the cycle may be determined through step 220. The second preset time period in the following may be a period, for example, the foregoing steps may be 230 determined period. If the value of the foregoing performance data changes non-periodically with time, the first time interval and the second time interval in the second preset time period (arbitrary time period) may be determined by step 220 without performing the above step 210.
220,确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度。220. Determine a first time interval and a second time interval in the first preset time period, where the value of the performance data of the device changes less than the second time interval. The degree of change in the value of the performance data of the device.
具体的,上述设备的性能数据的取值的变化程度可以通过设备的性能数据的取值的方差或标准差表示。即,在第一时间区间内设备的性能数据的取值的变化程度,可以通过在第一时间区间内设备的性能数据的取值的方差或标准差表示。在第二时间区间内设备的性能数据的取值的变化程度,可以通过在第二时间区间内设备的性能数据的取值的方差或标准差表示。Specifically, the degree of change of the value of the performance data of the device may be represented by a variance or a standard deviation of the value of the performance data of the device. That is, the degree of change in the value of the performance data of the device in the first time interval can be expressed by the variance or standard deviation of the value of the performance data of the device in the first time interval. The degree of change in the value of the performance data of the device in the second time interval can be expressed by the variance or standard deviation of the value of the performance data of the device in the second time interval.
上述在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度,可以理解为,在第一时间区间中设备的性能数据的取值的变化的剧烈程度小于在第二时间区间中设备的性能数据的取值的变化的剧烈程度,例如,在第一时间区间内设备的性能数据的取值的方差小于在第二时间区间内设备的性能数据的取值的方差,或在第一时间区间内设备的性能数据的取值的标准差小于在第二时间区间内设备的性能数据的取值的标准差。The degree of change of the value of the performance data of the device in the first time interval is smaller than the change degree of the value of the performance data of the device in the second time interval, which may be understood as being the first The severity of the change in the value of the performance data of the device in the time interval is less than the severity of the change in the value of the performance data of the device in the second time interval, for example, the value of the performance data of the device in the first time interval. The variance of the device is less than the variance of the value of the performance data of the device in the second time interval, or the standard deviation of the value of the performance data of the device in the first time interval is less than the value of the performance data of the device in the second time interval Standard deviation.
若上述第一预设时间段为一段任意的时间,可以在第一预设时间段内先对设备的性能数据进行一次密集采样,获得设备的性能数据的取值,然后基于设备的性能数据的取值的变化程度在第一预设时间段内确定第一时间区间和第二时间区间。若一段时间内设备的性能数据的取值的变化程度大于预设的变化程度阈值,则该段时间为第一时间区间,若一段时间内设备的性能数据的取值的变化程度小于或等于预设的变化程度阈值,则该段时间为第二时间区间。If the first preset time period is an arbitrary time, the device performance data may be intensively sampled in the first preset time period to obtain the value of the device performance data, and then based on the device performance data. The degree of change of the value determines the first time interval and the second time interval within the first preset time period. If the change of the performance data of the device is greater than the preset change threshold, the time is the first time interval. If the value of the performance data of the device is less than or equal to the pre-determination The threshold of change is set, and the period of time is the second time interval.
本申请实施例中,以密集采样的方式(即较小的固定的采样间隔)对设备的性能数据 进行第一次采样,有利于提高第一采样数据反应设备的性能随时间的变化的准确率。In the embodiment of the present application, the first sampling of the performance data of the device in a dense sampling manner (ie, a small fixed sampling interval) is beneficial to improving the accuracy of the performance of the first sampling data reaction device over time. .
需要说明的是,第一时间区间和第二时间区间的长度可以相同也可以不同。It should be noted that the lengths of the first time interval and the second time interval may be the same or different.
若上述性能数据的取值随时间以周期变化,所述第一时间区间和所述第二时间区间位于该周期内。在确定周期内第一时间区间和第二时间区间的分布情况之前,可以先将周期划分为多个时间区间,具体地划分方式有很多种,本申请实施例对此不做限定。下文结合图5至图6重点介绍其中的两种。If the value of the performance data changes periodically with time, the first time interval and the second time interval are located in the cycle. Before determining the distribution of the first time interval and the second time interval in the period, the period may be divided into a plurality of time intervals, and there are many specific manners, which are not limited in this embodiment of the present application. Two of them are highlighted below in conjunction with FIGS. 5 to 6.
将周期划分出多个时间区间的第一种实现方式为,将周期划分为连续的多个时间区间,多个时间区间的长度可以相同也可以不相同。例如,图5示出了本申请实施例的多个时间区间在周期内的分布的示意图。在图5所示的时间轴上,包含了一个周期内对设备的性能数据进行n次采样,得到的在n个采样点t 1,t 2,...t n,分别对应的该设备的性能数据的取值为x 1,x 2,...,x n,n为正整数。将周期等分为m个首尾相连的时间区间X 1,X 2,...,X m,m为正整数。每个时间区间中包含K个采样点,K为正整数,即时间区间X 1中包含的设备的性能数据的取值为{x 1,x 2,...,x K},时间区间X 2中包含的设备的性能数据的取值为{x K,x K+1,...,x 2k-1},时间区间X m中包含的设备的性能数据的取值为{x (m-1)K-(m-2),...,x n}。 The first implementation manner of dividing the period into a plurality of time intervals is to divide the period into a plurality of consecutive time intervals, and the lengths of the plurality of time intervals may be the same or different. For example, FIG. 5 is a schematic diagram showing the distribution of a plurality of time intervals in a period in the embodiment of the present application. On the time axis shown in FIG. 5, the performance data of the device is sampled n times in one cycle, and the obtained n sampling points t 1 , t 2 , ... t n respectively correspond to the device The value of the performance data is x 1 , x 2 ,..., x n , and n is a positive integer. The period is equally divided into m end-to-end time intervals X 1 , X 2 , ..., X m , m being positive integers. Each time interval contains K sampling points, and K is a positive integer, that is, the performance data of the device included in the time interval X 1 is {x 1 , x 2 , . . . , x K }, time interval X The performance data of the device included in 2 is {x K , x K+1 ,..., x 2k-1 }, and the performance data of the device included in the time interval X m is {x (m -1) K-(m-2) ,..., x n }.
需要说明的是,图5仅示出了一个周期被等分为m个时间区间时,该m个时间区间包含了全部的n个设备的性能数据的情况。有可能还存在另一种情况,一个周期被等分为m个时间区间后,m个时间区间仅包含了n-a个设备的性能数据,a为小于K的正整数,此时,剩余的a个设备的性能数据可以被划分为第m+1个时间区间,第m+1个时间区间的时间长度小于第m个时间区间。It should be noted that FIG. 5 only shows a case where the performance time data of all n devices is included in the m time intervals when one cycle is equally divided into m time intervals. There may be another case where a period is divided into m time intervals, m time intervals contain only performance data of na devices, and a is a positive integer smaller than K. At this time, the remaining a The performance data of the device may be divided into the m+1th time interval, and the time length of the m+1th time interval is smaller than the mth time interval.
另外,将周期划分出多个时间区间的第二种实现方式为,将周期划分为时间长度相同的多个时间区间,多个时间区间中相邻的两个时间区间内包含的采样点部分相同。In addition, the second implementation manner of dividing the period into a plurality of time intervals is to divide the period into a plurality of time intervals having the same time length, and the sampling points included in the adjacent two time intervals in the plurality of time intervals are the same. .
在将周期划分为多个时间区间的第二种实现方式中,可以通过第二预设步长滑动第二滑动窗口的方式将所述满足周期长度的一段性能数据对应的所述周期划分出多个时间区间。例如,图6示出了本申请另一实施例的多个时间区间在周期内的分布的示意图。在图6所示的时间轴上,包含了一个周期内的n个设备的性能数据的取值,即n个采样点t 1,t 2,...t n分别对应设备的性能数据的取值为x 1,x 2,...,x n,n为正整数。将预设时间宽度为L的第二滑动窗口,在时间轴上以第二预设步长,从周期的起始时刻开始,向周期的结束时刻的方向(图6中从左至右的方向)滑动,以生成时间宽度为K的多个时间区间X 1,X 2,...,X n-K+1,n为正整数。时间区间X 1中包含的设备的性能数据的取值为{x 1,x 2,...,x K},时间区间X 2中包含的设备的性能数据的取值为{x 2,x 3,...,x K+1},时间区间X n-K+1中包含的设备的性能数据的取值为{x n-K+1,x n-K+2,...,x n}。 In the second implementation manner of dividing the period into multiple time intervals, the period corresponding to a piece of performance data that satisfies the period length may be divided into multiple by sliding the second sliding window by the second preset step. Time interval. For example, FIG. 6 shows a schematic diagram of a distribution of a plurality of time intervals in a cycle of another embodiment of the present application. On the time axis shown in FIG. 6, the value of the performance data of the n devices in one cycle is included, that is, the n sampling points t 1 , t 2 , ... t n respectively correspond to the performance data of the device. The values are x 1 , x 2 ,..., x n , and n is a positive integer. a second sliding window having a preset time width of L, in a second preset step on the time axis, starting from the beginning of the cycle and in the direction of the end of the cycle (left to right in FIG. 6) Sliding to generate a plurality of time intervals X 1 , X 2 , . . . , X n-K+1 , where time width K is a positive integer. The performance data of the device included in the time interval X 1 is taken as {x 1 , x 2 , . . . , x K }, and the value of the performance data of the device included in the time interval X 2 is {x 2 , x 3 ,...,x K+1 }, the performance data of the device included in the time interval X n-K+1 is {x n-K+1 , x n-K+2 ,..., x n }.
需要说明的是,在获取设备的历史的性能数据在各个采样点的取值时,使用的采样间隔的整数倍可以作为上述第二预设步长。例如第二预设步长可以是1倍的采样间隔,或者2倍的采样间隔,本申请实施例对此不做限定。It should be noted that, when acquiring the performance data of the history of the device at each sampling point, an integer multiple of the sampling interval used may be used as the second preset step. For example, the second preset step size may be a sampling interval of 1 time, or a sampling interval of 2 times, which is not limited by the embodiment of the present application.
应理解,图6仅仅示例性的列出了上述第二预设步长为1个采样点之间的时间长度(即一倍的采样间隔)时,将第二滑动窗口沿着时间增大的方向滑动,生成的时间区间,本申请实施例对于上述时间窗的滑动方向都不作具体限定,例如,上述第二滑动窗口的滑 动方向还可以是以周期的结束时刻为起点,向第一预设时间段起始时刻的方向(图6中从右向左的方向)滑动。It should be understood that FIG. 6 merely exemplarily lists the second sliding window increasing along the time when the second preset step is the length of time between one sampling point (ie, one sampling interval). The sliding direction of the direction, the generated time interval, the sliding direction of the time window is not specifically limited in the embodiment of the present application. For example, the sliding direction of the second sliding window may be the starting point of the cycle as the starting point, and the first preset is The direction of the start time of the time zone (the direction from the right to the left in Fig. 6) slides.
需要说明的是,无论采用上述哪种将周期划分为多个时间区间的方式,当时间区间包含的采样点的数量较少时,根据时间区间确定的第一时间区间包含的采样点的数量也会较少,此时,在第一时间区间中使用第一采样间隔对设备的性能数据进行采样,减少的采样后的数据量是有限的,同时,使用本申请实施例的采样方法还会增加对设备的性能数据进行采样时的复杂度,得不偿失。因此,可以通过设置时间区间的最小时间长度,以限定时间区间包含的采样点的数量的最小值,有利于保证使用本申请实施例的采样方案减少的性能数据的数据量。It should be noted that, regardless of the manner in which the period is divided into a plurality of time intervals, when the number of sampling points included in the time interval is small, the number of sampling points included in the first time interval determined according to the time interval is also There will be less. At this time, the performance data of the device is sampled by using the first sampling interval in the first time interval, and the reduced amount of data after sampling is limited, and the sampling method using the embodiment of the present application is also increased. The complexity of sampling device performance data is not worth the cost. Therefore, by setting the minimum time length of the time interval to define the minimum value of the number of sampling points included in the time interval, it is advantageous to ensure the data amount of the performance data reduced using the sampling scheme of the embodiment of the present application.
上述最小时间区间的长度可以基于上述周期的长度确定,例如,若上述周期为24小时,上述最小时间区间的长度可以设置为15分钟,若上述周期为48小时,上述最小时间区间的长度可以设置为30分钟。上述最小时间区间的长度还可以基于对设备性能数据进行采样时使用的采样间隔确定,例如,若上述采样间隔为5秒,上述最小时间区间的长度可以设置为10分钟,若上述采样间隔为30秒,上述最小时间区间的长度可以设置为30分钟。还可以综合考虑上述周期和上述采样间隔确定最小时间区间的长度。本申请实施例对上述最小时间区间的长度的具体确定方式不作限定。The length of the minimum time interval may be determined based on the length of the period. For example, if the period is 24 hours, the length of the minimum time interval may be set to 15 minutes. If the period is 48 hours, the length of the minimum time interval may be set. It is 30 minutes. The length of the minimum time interval may also be determined based on a sampling interval used when sampling device performance data. For example, if the sampling interval is 5 seconds, the length of the minimum time interval may be set to 10 minutes, if the sampling interval is 30. In seconds, the length of the above minimum time interval can be set to 30 minutes. It is also possible to comprehensively consider the above period and the above sampling interval to determine the length of the minimum time interval. The specific determination manner of the length of the minimum time interval is not limited in the embodiment of the present application.
上述最小时间区间的长度可以基于上述周期的长度确定,具体地可以通过预先设置时间区间的最小时间长度以及周期之间的比例确定。上述最小时间区间的长度还可以基于对设备性能数据进行采样时使用的采样间隔确定,具体地可以通过预先设置时间区间的最小时间长度以及采样间隔之间的比例确定。The length of the minimum time interval described above may be determined based on the length of the above-described period, and specifically may be determined by setting a minimum time length of the time interval and a ratio between the periods. The length of the minimum time interval described above may also be determined based on a sampling interval used when sampling device performance data, and specifically may be determined by setting a minimum time length of the time interval and a ratio between sampling intervals.
在将周期划分为多个时间区间之后,下文详细介绍确定第一时间区间的方法。一方面,可以按照第一时间区间选取规则选取的时间区间为第一时间区间,另一方面,在按照第一时间区间选取规则选取初始区间,通过对初始区间进行扩展,确定扩展后的时间区间为第一时间区间。After dividing the period into a plurality of time intervals, the method of determining the first time interval is described in detail below. On the one hand, the time interval selected by the first time interval selection rule may be the first time interval, and on the other hand, the initial interval is selected according to the first time interval selection rule, and the extended time interval is determined by expanding the initial interval. For the first time interval.
第一时间区间的确定方式一,第一时间区间的选取规则包括从多个时间区间中选取预设数量的时间区间作为第一时间区间,该预设数量的时间区间优先选取多个时间区间中设备的性能数据的取值的标准差较小的时间区间。所述预设数量的数值有多种选择方式,例如预设数量的数值为1时,则符合预设数量时间区间为多个时间区间中设备的性能数据的取值的标准差最小的时间区间。预设数量的数值为2时,则符合预设数量时间区间为多个时间区间中设备的性能数据的取值的标准差最小的2个时间区间。The determining manner of the first time interval is as follows: the selecting rule of the first time interval comprises: selecting a preset number of time intervals from the plurality of time intervals as the first time interval, wherein the preset number of time intervals preferentially selects the plurality of time intervals The time interval in which the standard deviation of the performance data of the device is small. The preset number of values has a plurality of selection manners. For example, when the preset number of values is 1, the time interval corresponding to the preset standard time interval is the minimum standard deviation of the performance data of the devices in the multiple time intervals. . When the preset number of values is 2, the preset number of time intervals is two time intervals in which the standard deviation of the values of the performance data of the devices in the plurality of time intervals is the smallest.
第一时间区间的确定方式二,第一时间区间的选取规则包括从多个时间区间分别对应的标准差组成的标准差集合中,选取标准差小于标准差阈值的时间区间作为第一时间区间。The first time interval is determined by the second time interval. The selection rule of the first time interval includes selecting a time interval in which the standard deviation is smaller than the standard deviation threshold as the first time interval from the standard deviation set composed of the standard deviations corresponding to the plurality of time intervals.
具体地,上述标准差小于标准差阈值的时间区间可以包括一个或多个时间区间。Specifically, the time interval in which the above standard deviation is smaller than the standard deviation threshold may include one or more time intervals.
需要说明的是,上述标准差阈值可以依据对需要采样的设备的性能数据的取值的变化程度的准确度为标准进行确定,若对采样的设备的性能数据的取值的变化程度的准确性要求较高,可以将上述标准差阈值的取值设置的较低,使得最终选取的第一时间区间中,设备的性能数据的取值的变化程度较小;若对采样的设备的性能数据的取值的变化程度的准确性要求较低,可以将上述标准差阈值的取值设置的较高,使得最终选取的第一时间区间中,设备的性能数据的取值的变化程度可以略有浮动。也就是说,上述标准差阈值可以指 示维护人员能接受的最大的设备的性能数据的取值的变化程度。It should be noted that the standard deviation threshold may be determined according to the accuracy of the degree of change of the value of the performance data of the device to be sampled, and the accuracy of the change of the value of the performance data of the sampled device. The requirement is higher, and the value of the standard deviation threshold may be set lower, so that the value of the performance data of the device is less changed in the first selected time interval; if the performance data of the sampled device is The accuracy of the change of the value is low, and the value of the standard deviation threshold may be set higher, so that the value of the performance data of the device may be slightly changed in the first selected time interval. . That is to say, the above standard deviation threshold can indicate the degree of change in the value of the performance data of the largest device that the maintenance personnel can accept.
在确定了周期内的第一时间区间之后,该周期剩余的时间区间可以作为第二时间区间,可选的,每个第二时间区间对应的标准差大于所有第一时间区间分别对应的标准差。After the first time interval in the period is determined, the remaining time interval of the period may be used as the second time interval. Optionally, the standard deviation corresponding to each second time interval is greater than the standard deviation corresponding to all the first time intervals respectively. .
需要说明的是,若上述多个时间区间中性能数据的取值的标准差都大于标准差阈值,则说明设备的性能数据的取值的变化程度较大,使用本申请实施例的方法的反应设备的性能数据的取值的变化程度可能不够准确,可以使用现有技术中密集采样的方式对设备的性能数据进行采样。It should be noted that, if the standard deviation of the values of the performance data in the multiple time intervals is greater than the standard deviation threshold, the degree of change of the value of the performance data of the device is large, and the response of the method in the embodiment of the present application is used. The value of the performance data of the device may not be accurate enough. The performance data of the device may be sampled by using intensive sampling in the prior art.
可以按照第一时间区间选取规则选取初始区间,通过对初始区间进行扩展,确定扩展后的时间区间为第一时间区间。The initial interval may be selected according to the first time interval selection rule, and the extended time interval is determined as the first time interval by expanding the initial interval.
具体地,基于所述多个时间区间分别对应的标准差,确定满足初始区间的选取规则的时间区间作为初始区间;根据所述初始区间确定所述第一时间区间,所述第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,所述目标采样点对应的性能数据的取值与所述初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示所述目标采样点对应的所述设备的性能数据的取值,m 0表示所述初始区间中性能数据的取值的均值;d 0表示所述初始区间内性能数据的取值的标准差。 Specifically, the time interval that satisfies the selection rule of the initial interval is determined as an initial interval based on the standard deviation corresponding to the plurality of time intervals respectively; and the first time interval is determined according to the initial interval, where the first time interval is The performance data includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, the target sampling point being a sample located outside the initial interval and adjacent to an endpoint of the initial interval Point, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy |e 1 -m 0 |<3d 0 , where e 1 represents a location corresponding to the target sampling point The value of the performance data of the device, m 0 represents the mean value of the value of the performance data in the initial interval; d 0 represents the standard deviation of the value of the performance data in the initial interval.
需要说明的是,上述初始区间的选取规则可以和上文中第一时间区间的选取规则相同,也就是说初始区间的确定方式可以和上文中第一时间区间的确定方式相同,为了简洁,在此不再赘述。It should be noted that the selection rule of the initial interval may be the same as the selection rule of the first time interval in the above, that is, the initial interval may be determined in the same manner as the first time interval in the above, for the sake of brevity. No longer.
下面对如何对初始区间进行扩展,获得扩展区间,并将扩展区间作为第一时间区间的方法进行描述。下文结合图7详细说明本申请实施例的对初始区间进行扩展的方法。图7是本申请实施例的对初始区间进行扩展的方法的示意性流程图。在确定初始区间后,通过图7所示的方法对初始区间进行扩展,将获得扩展区间作为第一时间区间。具体可参见图7所示的方法中步骤710至步骤740的描述。The following describes how to extend the initial interval, obtain an extended interval, and use the extended interval as the first time interval. The method for expanding the initial interval of the embodiment of the present application is described in detail below with reference to FIG. 7. FIG. 7 is a schematic flowchart of a method for expanding an initial interval according to an embodiment of the present application. After the initial interval is determined, the initial interval is expanded by the method shown in FIG. 7, and the extended interval is obtained as the first time interval. For details, refer to the description of steps 710 to 740 in the method shown in FIG. 7.
710,确定初始区间中设备的性能数据的取值的均值m 0和标准差d 0710. Determine a mean value m 0 and a standard deviation d 0 of the values of the performance data of the device in the initial interval.
例如,可以使用最大期望(Expectation Maximization,EM)算法,计算初始区间中设备的性能数据的取值的均值m 0和标准差d 0For example, the mean value m 0 and the standard deviation d 0 of the values of the performance data of the device in the initial interval may be calculated using an Expectation Maximization (EM) algorithm.
720,基于初始区间扩展规则判断目标采样点对应的设备的性能数据是否可以被扩展至初始区间,形成扩展区间。720. Determine, according to an initial interval expansion rule, whether performance data of the device corresponding to the target sampling point can be extended to an initial interval to form an extended interval.
执行步骤720时,首先需要确定目标采样点,再基于初始区间扩展规则判断目标采样点对应的设备的性能数据是否可以被扩展后至初始区间。When step 720 is performed, it is first determined that the target sampling point is determined, and then based on the initial interval expansion rule, it is determined whether the performance data of the device corresponding to the target sampling point can be expanded to the initial interval.
下面结合图8描述目标采样点的确定方式以及结合图8描述基于初始区间扩展规则判断目标采样点对应的设备的性能数据是否可以被扩展后至初始区间的实现方式。The manner of determining the target sampling point will be described below with reference to FIG. 8 and the implementation of determining whether the performance data of the device corresponding to the target sampling point can be expanded to the initial interval based on the initial interval expansion rule will be described with reference to FIG.
首先结合图8描述目标采样点的确定方式。请参见图8,图8示出了本申请实施例中初始区间在周期内位置的示意图。在图8所示的时间轴上包含了一个周期内的n个设备的性能数据的取值,即n个采样点t 1,t 2,...t n分别对应设备的性能数据的取值为x 1,x 2,...,x n,n为正整数。示例性的,在该周期内确定的初始区间的起始时刻为周期的起始时刻,且初始区间包含L个采样点t 1,t 2,...t L分别对应的设备的性能数据的取值为x 1,x 2,...,x LFirst, the manner of determining the target sampling point will be described with reference to FIG. Please refer to FIG. 8. FIG. 8 is a schematic diagram showing the position of the initial interval in the cycle in the embodiment of the present application. Contained in the time axis shown in FIG. 8 the value of the performance data of the n devices within a cycle, i.e., n sampling points t 1, t 2, ... t n respectively correspond to the value of the performance data of the device Let x 1 , x 2 ,..., x n , n be a positive integer. Exemplary, the initial starting time interval determined in the time period starting period, and the initial interval comprises L sampling points t 1, t 2, ... t L corresponding to each performance data device The values are x 1 , x 2 ,..., x L .
若初始区间位于图8所示的位置1时,该初始区间包含L个采样点t 1,t 2,...t L,也就是说,初始区间包含周期的起始时刻t 1,因此,在对位于位置1的初始区间进行扩展时,目标采样点的选取可以是沿着时间轴从左向右的方向选取,例如,在第一次对初始区间进行扩展的过程中,目标采样点可以选择t L+1,若t L+1对应的设备的性能数据的取值满足上述预设规则时,可以对初始区间进行扩展,获取的扩展区间包括t L+1,继续按照上文所述的方法判断t L+2是否属于初始区间,并在t L+2对应的设备的性能数据的取值满足上述预设规则时,再对上一次扩展区间进行扩展,扩展区间不仅包括前一次扩展增加的t L+1,还包括本次扩展增加的t L+2,依次类推,直到待扩展初始区间的采样点对应的设备的性能数据的取值不满足上述预设条件,或直到将周期的结束时刻对应的采样点扩展至初始区间,停止对上述初始区间的扩展,形成扩展区间。 If the initial interval is at position 1 shown in FIG. 8, the initial interval includes L sample points t 1 , t 2 , . . . , t L , that is, the initial interval includes the start time t 1 of the cycle, and therefore, When the initial interval located at position 1 is expanded, the selection of the target sampling point may be selected from the left to the right along the time axis. For example, in the process of expanding the initial interval for the first time, the target sampling point may be select t L + 1, if the value of t L + 1 corresponding to the performance data of the device satisfying the preset rule may be extended to the initial interval, extended acquisition interval includes t L + 1, continuing in accordance with the above The method determines whether t L+2 belongs to the initial interval, and when the value of the performance data of the device corresponding to t L+2 satisfies the above preset rule, the previous extended interval is expanded, and the extended interval includes not only the previous extension. The added t L+1 also includes the t L+2 added by the current extension, and so on, until the value of the performance data of the device corresponding to the sampling point of the initial interval to be expanded does not satisfy the above preset condition, or until the period is to be End time Should be extended to the initial sample point interval, stopping the expansion of said initial section, to form an extended interval.
若初始区间位于图8所示的位置3时,该初始区间包含采样点t n′,...t n,也就是说,初始区间包含周期的结束时刻t n,因此,在对位于位置3的初始区间进行扩展时,目标采样点的选取可以是沿着时间轴从右向左的方向选取,例如,在第一次对初始区间进行扩展的过程中,目标采样点可以选择t n′-1,若t n′-1对应的设备的性能数据的取值满足上述预设规则时,可以将t n′-1扩展至初始区间,继续按照上文所述的方法判断t n′-2是否属于初始区间,并在t n′-2对应的设备的性能数据的取值满足上述预设规则时,可以将t n′-2扩展至初始区间,依次类推,直到待扩展初始区间的采样点对应的设备的性能数据的取值不满足上述预设条件,或直到将周期的结束时刻对应的采样点扩展至初始区间,停止对上述初始区间的扩展,形成扩展区间。 If the initial section 3 located at the position shown in FIG. 8, which comprises the initial sampling point interval t n ', ... t n, that is, the end of the initial interval comprising the time period t n, and therefore, in a position located 3 When the initial interval is expanded, the selection of the target sampling point may be selected from the right to the left along the time axis. For example, in the process of expanding the initial interval for the first time, the target sampling point may select t n '- 1, when the performance data value t n'-1 corresponding to the above-described device satisfies preset rule may be extended t n'-1 to the initial interval, t n'-2 continues to judge according to the methods described above Whether it belongs to the initial interval, and when the value of the performance data of the device corresponding to t n ' -2 satisfies the above preset rule, t n ' -2 may be extended to the initial interval, and so on, until the sampling of the initial interval to be extended The value of the performance data of the device corresponding to the point does not satisfy the above preset condition, or until the sampling point corresponding to the end time of the period is extended to the initial interval, and the expansion of the initial interval is stopped to form an extended interval.
若初始区间位于图8所示的位置2时,该初始区间包含采样点t l′,...t l,也就是说,初始区间位于周期的中间位置,即不包括周期的起始时刻,也不包括周期的结束时刻。因此,在对位于位置2的初始区间进行扩展时,目标采样点的选取即可以按照初始区间在位置1时沿着时间轴从右向左的方向选取(例如,目标采样点可以是t l+1),也可以按照初始区间在位置3时沿着时间轴从右向左的方向选取(例如,目标采样点可以是t l′-1),具体的判断方式与上文初始区间分别位于位置1和位置3时判断方式相同,为了简洁,在此不再赘述。 If the initial interval is at position 2 shown in FIG. 8, the initial interval includes sampling points t l′ , . . . , t l , that is, the initial interval is located at the middle of the period, that is, the start time of the period is not included. Nor does it include the end of the cycle. Therefore, when the initial interval located at position 2 is expanded, the selection of the target sampling point may be selected from the right to the left direction along the time axis according to the initial interval at position 1 (for example, the target sampling point may be t l+ 1 ), it can also be selected from the right to left direction along the time axis according to the initial interval at position 3 (for example, the target sampling point can be t l'-1 ), and the specific judgment manner is located at the position corresponding to the initial interval above. The judgment mode is the same as that of the position 3, and is not described here for brevity.
需要说明的是,本申请实施例对于初始区间位于位置2时,目标采样点在两个方向上的选取方式之间的时间顺序不做限定。例如,目标采样点的选取可以是先沿着时间轴从右向左的方向选取,再沿着时间轴从右向左的方向选取;或者目标采样点的选取可以是先沿着时间轴从左向右的方向选取,再沿着时间轴从左向右的方向选取。It should be noted that, in the embodiment of the present application, when the initial interval is located at the position 2, the time sequence between the selection manners of the target sampling points in the two directions is not limited. For example, the selection of the target sampling point may be first selected from the right to the left along the time axis, and then selected from the right to the left along the time axis; or the selection of the target sampling point may be from the left along the time axis. Select in the right direction and then from left to right along the time axis.
下面结合图8描述基于初始区间扩展规则判断目标采样点对应的设备的性能数据是否属于初始区间的实现方式。应理解,上述初始区间扩展规则用于判断目标采样点对应的设备的性能数据的取值,与初始区间中设备的性能数据的取值的变化程度的大小,例如,上述初始区间扩展规则可以是目标采样点对应的设备的性能数据的取值与初始区间内的性能数据的均值之间的差值小于阈值;或上述初始区间扩展还可以是目标采样点对应的设备的性能数据的取值与初始区间内的性能数据的取值的最大值之间的差值,小于初始区间内的性能数据的取值的最大值与最小值之间的差值。本申请实施例对于初始区间扩展的具体内容不做限定。The implementation manner of determining whether the performance data of the device corresponding to the target sampling point belongs to the initial interval based on the initial interval expansion rule is described below with reference to FIG. 8 . It should be understood that the foregoing initial interval expansion rule is used to determine the value of the performance data of the device corresponding to the target sampling point, and the degree of change of the value of the performance data of the device in the initial interval. For example, the initial interval expansion rule may be The difference between the value of the performance data of the device corresponding to the target sampling point and the mean value of the performance data in the initial interval is less than a threshold; or the initial interval expansion may also be the value of the performance data of the device corresponding to the target sampling point. The difference between the maximum values of the performance data in the initial interval is smaller than the difference between the maximum value and the minimum value of the performance data in the initial interval. The specific content of the initial interval expansion is not limited in the embodiment of the present application.
可选地,上述初始区间扩展可以是基于小概率事件法则确定的。即,目标采样点对应 的性能数据的取值与初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示目标采样点对应的性能数据的取值。 Alternatively, the initial interval expansion described above may be determined based on a small probability event rule. That is, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy |e 1 -m 0 |<3d 0 , where e 1 represents the value of the performance data corresponding to the target sampling point.
需要说明的是,上述目标采样点是相对于初始区间的端点而言的,随着上述初始区间的不断扩展,初始区间的端点也在变化,进而,目标采样点随着初始区间的端点变化而变化。It should be noted that the target sampling point is relative to the end point of the initial interval, and as the initial interval is continuously expanded, the endpoint of the initial interval also changes, and further, the target sampling point changes with the endpoint of the initial interval. Variety.
根据步骤720判断出两种不同的结果后,有两种不同的实现方式。具体地,若目标采样点对应的设备的性能数据可以被扩展至初始区间,则执行步骤730;若目标采样点对应的设备的性能数据不可以被扩展至初始区间,则执行步骤740。After determining two different results according to step 720, there are two different implementations. Specifically, if the performance data of the device corresponding to the target sampling point can be extended to the initial interval, step 730 is performed; if the performance data of the device corresponding to the target sampling point cannot be extended to the initial interval, step 740 is performed.
730,将目标采样点对应的设备的性能数据扩展至初始区间,形成扩展区间。730: Extend performance data of the device corresponding to the target sampling point to an initial interval to form an extended interval.
也就是说,扩展区间的端点变化为目标采样点。That is to say, the endpoint of the extended interval changes to the target sampling point.
740,停止对初始区间的扩展,确定当前的时间区间为第一时间区间。740. Stop expanding the initial interval, and determine that the current time interval is the first time interval.
需要说明的是,当前的时间区间可以为未扩展的扩展区间,即初始区间;当前的初始区间还可以为扩展区间。It should be noted that the current time interval may be an unexpanded extended interval, that is, an initial interval; the current initial interval may also be an extended interval.
本申请实施例中,第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,也就是说,对初始区间的端点进行扩展使得第一时间区间尽可能地包含多个性能数据,即使得最终确定的第一时间区间的时间段尽可能的大,有利于进一步地减少对设备的性能数据进行采样后采样数据的数据量。In the embodiment of the present application, the performance data in the first time interval includes performance data in the initial interval, and performance data of the device corresponding to the target sampling point, where the target sampling point is outside the initial interval, and a sampling point adjacent to an end point of the initial interval, that is, an extension of an end point of the initial interval such that the first time interval contains as much performance data as possible, that is, a time period of the finally determined first time interval As large as possible, it is beneficial to further reduce the amount of data of the sampled data after sampling the performance data of the device.
在确定了第一预设时间段或周期内全部的第一时间区间后,可以将第一预设时间段或周期内剩余的时间区间作为第二时间区间。After determining the first preset time period or all the first time intervals in the period, the first preset time period or the remaining time interval in the period may be used as the second time interval.
可选地,周期内的多个第一时间区间中的任意两个时间区间之间相互不重叠。Optionally, any two of the plurality of first time intervals in the period do not overlap each other.
230,确定对第一时间区间内的性能数据进行采样时的第一采样间隔,以及对第二时间内的性能数据进行采样时的第二采样间隔。230. Determine a first sampling interval when sampling performance data in the first time interval, and a second sampling interval when sampling performance data in the second time.
上述第一采样间隔和第二采样间隔可以是预设的,也可以是基于第一时间区间或第二时间区间内性能数据的取值的变化程度的大小确定的,本申请实施例对此不做限定。下文将重点介绍如何确定周期内的第一时间间隔和第二时间间隔。The first sampling interval and the second sampling interval may be preset, or may be determined based on the magnitude of the change of the value of the performance data in the first time interval or the second time interval. Make a limit. The following section focuses on how to determine the first time interval and the second time interval within a period.
具体的,第一采样间隔的长度与所述第一时间区间内的所述设备的性能数据的取值变化程度的大小呈反比关系,和/或所述第二采样间隔的长度与所述第二时间区间内的所述设备的性能数据的取值的变化程度的大小呈反比关系。Specifically, the length of the first sampling interval is inversely proportional to the magnitude of the change in the value of the performance data of the device in the first time interval, and/or the length of the second sampling interval is different from the first The magnitude of the change in the value of the performance data of the device in the two time interval is inversely proportional.
上述第一采样间隔和第二采样间隔可以是预设的,可以理解为上述第一采样间隔和第二采样间隔无需根据第一时间区间或第二时间区间内性能数据的取值的变化程度的大小进行计算。例如,确定某一时间段为第一时间区间之后,直接使用预设的第一采样间隔对第一时间区间内的设备的性能数据进行采样;确定某一时间段为第二时间区间之后,直接使用预设的第二采样间隔对第二时间区间内的设备的性能数据进行采样。The first sampling interval and the second sampling interval may be preset, and it may be understood that the first sampling interval and the second sampling interval need not be changed according to the value of the performance data in the first time interval or the second time interval. The size is calculated. For example, after determining that the certain time period is the first time interval, the performance data of the device in the first time interval is directly sampled by using the preset first sampling interval; after determining that the certain time period is the second time interval, directly The performance data of the device in the second time interval is sampled using a preset second sampling interval.
上述第一采样间隔和第二采样间隔可以是基于第一时间区间或第二时间区间内性能数据的取值的变化程度的大小确定的,可以理解为上述第一采样间隔和第二采样间隔需要根据第一时间区间或第二时间区间内性能数据的取值的变化程度的大小进行计算。可选地,第一采样间隔的长度与所述第一时间区间内的所述设备的性能数据的取值变化程度的大小之间的反比关系,和/或所述第二采样间隔的长度与所述第二时间区间内的所述设备的 性能数据的取值的变化程度的大小之间的反比关系分别满足
Figure PCTCN2017115294-appb-000014
其中,P表示所述第一采样间隔或所述第二采样间隔的长度,k为预设的大于1的数,σ表示所述第一时间区间或所述第二时间区间内所述设备的性能数据的标准差,用于指示所述第一时间区间或所述第二时间区间内性能数据的取值的变化程度。
The first sampling interval and the second sampling interval may be determined based on the magnitude of the change of the value of the performance data in the first time interval or the second time interval, and may be understood as required by the first sampling interval and the second sampling interval. The calculation is performed according to the magnitude of the change in the value of the performance data in the first time interval or the second time interval. Optionally, an inverse relationship between the length of the first sampling interval and the magnitude of the change in the value of the performance data of the device in the first time interval, and/or the length of the second sampling interval The inverse relationship between the magnitudes of changes in the values of the performance data of the device in the second time interval respectively satisfies
Figure PCTCN2017115294-appb-000014
Wherein P represents the length of the first sampling interval or the second sampling interval, k is a preset number greater than 1, and σ represents the device in the first time interval or the second time interval The standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
具体的,上述第一时间区间和第二时间区间可以是上述周期内的任意时间区间,也就是说,周期内的任意的时间区间内设备的性能数据的取值的变化程度的大小,与该时间区间对应的采样间隔的长度之间反比关系都可以满足
Figure PCTCN2017115294-appb-000015
Specifically, the first time interval and the second time interval may be any time interval within the period, that is, the degree of change of the value of the performance data of the device in any time interval within the period, and The inverse relationship between the lengths of the sampling intervals corresponding to the time interval can be satisfied.
Figure PCTCN2017115294-appb-000015
本申请实施例中,基于时间区间内设备的性能数据的取值的变化程度与采样间隔的长度之间的反比关系,可以确定在所述时间区间内对设备的性能数据进行采样时使用的时间间隔。利用这样的方法确定的采样间隔获取的采样数据有利于更加准确的反映设备的性能数据的取值随时间变化的情况。In the embodiment of the present application, based on an inverse relationship between the degree of change of the value of the performance data of the device in the time interval and the length of the sampling interval, the time used for sampling the performance data of the device in the time interval may be determined. interval. The sampling data obtained by the sampling interval determined by such a method is advantageous for more accurately reflecting the change of the value of the performance data of the device with time.
240,在第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样。240. The performance data of the device in the first time interval is sampled at a first sampling interval in a first time interval.
250,在第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。250. The performance data of the device in the second time interval is sampled at a second sampling interval in a second time interval, wherein the first sampling interval is greater than the second sampling interval.
本申请实施例中,基于设备的性能数据的取值的变化程度不同,选择不同的采样间隔对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较小的第一时间区间,使用第一采样间隔对设备的性能数据进行采样,对于设备的性能数据的取值变化程度较大的第二时间区间,使用第二采样间隔对设备的性能数据进行采样,减少对设备的性能数据进行采样后得到的性能数据(即采样数据)的数据量,同时可以根据采样后得到的性能数据准确的反应出设备的性能随时间的变化情况。In the embodiment of the present application, the value of the value of the performance data of the device is different, and the performance data of the device is sampled by using different sampling intervals, and the first time interval of the value of the performance data of the device is small. The performance data of the device is sampled by using the first sampling interval, and the performance data of the device is sampled by using the second sampling interval for the second time interval in which the value of the performance data of the device changes greatly, and the performance data of the device is reduced. The amount of data of the performance data (ie, sampled data) obtained after sampling, and the performance data of the device can be accurately reflected according to the performance data obtained after sampling.
可选地,作为一个实施例,所述方法还包括:通过验证第一时间区间的准确性判断对设备的性能数据进行采样的方法是否需要重新执行。Optionally, as an embodiment, the method further includes: determining whether the method for sampling the performance data of the device needs to be re-executed by verifying the accuracy of the first time interval.
具体地,对当前的第一时间区间内设备的性能数据进行实时监控,作为待验证的时间区间。在待验证的第一时间区间内,对设备的性能数据进行实时采样获取的性能数据的取值,确定的设备的性能数据的均值m 0′和标准差d 0′,并基于小概率时间的原则,判断待验证的第一时间区间中的每个采样点对应的设备的性能数据的取值e i′是否满足公式|e i′-m 0′|<3d 0′,其中,i为正整数。 Specifically, the performance data of the device in the current first time interval is monitored in real time as the time interval to be verified. In the first time interval to be verified, the performance data obtained by real-time sampling the performance data of the device, the mean value m 0 ' and the standard deviation d 0 ' of the performance data of the device are determined, and based on the small probability time In principle, it is determined whether the value e i ' of the performance data of the device corresponding to each sampling point in the first time interval to be verified satisfies the formula |e i '-m 0 '|<3d 0 ', where i is positive Integer.
若待验证的第一时间区间中的每个采样点对应的设备的性能数据的取值都满足上述公式,则当前第一时间区间中的设备的性能数据的取值的变化程度较小,判断当前使用的对设备的性能数据的采样方法不需要进行更新。若待验证的第一时间区间内每个采样点对应的设备的性能数据的取值中,至少一个采样点对应的设备性能数据的取值不满足上述公式,则当前第一时间区间中的设备的性能数据的取值的变化程度较大,不再适合使用第一采样间隔进行采样。If the value of the performance data of the device corresponding to each sampling point in the first time interval to be verified satisfies the above formula, the degree of change of the performance data of the device in the current first time interval is small, and the judgment is small. The currently used sampling method for the performance data of the device does not need to be updated. If the value of the performance data of the device corresponding to each sampling point in the first time interval to be verified does not satisfy the above formula, the device in the current first time interval The value of the performance data varies greatly, and it is no longer suitable to use the first sampling interval for sampling.
此时,可以通过重新执行上述步骤210至步骤250,以重新确定设备的性能数据的周期,或者重新确定周期内第一时间区间和第二时间区间的分布方式,或者重新确定对周期的每个时间区间内的性能数据进行采样时使用的采样间隔。At this time, by repeating the above steps 210 to 250, the cycle of the performance data of the device may be re-determined, or the distribution pattern of the first time interval and the second time interval in the cycle may be re-determined, or each of the periodic periods may be re-determined. The sampling interval used when sampling performance data in the time interval.
需要说明的是,本申请实施例还可以省略验证第一时间区间的准确性,而是定期的重新执行步骤210至步骤250,以实现重新确定设备的性能数据的周期,或者重新确定周期内第一时间区间和第二时间区间的分布方式,或者重新确定对周期的每个时间区间内的性能数据进行采样时使用的采样间隔的目的。It should be noted that the embodiment of the present application may also omit the verification of the accuracy of the first time interval, but periodically re-execute steps 210 to 250 to implement a cycle of re-determining the performance data of the device, or re-determine the period. The distribution of a time interval and a second time interval, or the purpose of re-determining the sampling interval used to sample performance data for each time interval of the cycle.
可选地,作为一个实施例,所述设备的性能数据下列数据中的任一种:所述设备中计算资源的占用率,所述设备中传输资源的占用率,所述设备中存储资源的占用率,所述方法还包括:确定所述第一预设时间段内的第三时间区间,在所述第三时间区间中所述设备的性能数据的均值高于性能数据阈值;在第三时间区间内,以第三采样间隔对所述第三时间区间中的性能数据进行采样,所述第三采样间隔小于所述第一采样间隔。Optionally, as an embodiment, the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, and a storage resource in the device. The method further includes: determining a third time interval in the first preset time period, wherein an average value of the performance data of the device is higher than a performance data threshold in the third time interval; During the time interval, the performance data in the third time interval is sampled at a third sampling interval, the third sampling interval being smaller than the first sampling interval.
具体的,上述在第三时间区间中所述设备的性能数据的均值高于性能数据阈值,可以说明当前设备的性能数据处于高峰期,而在高峰期内,设备的运行发生异常情况的概率较大,因此,为了增加后续对设备的性能进行的分析的依据,无论第三时间区间内的性能数据的取值的变化程度的大小,都使用第三采样间隔对第三时间区间中的性能数据进行采样,且第三采样间隔等于或大于第二采样间隔,以便于在第三时间区间内,采集到更多的设备的性能数据。Specifically, the average value of the performance data of the device in the third time interval is higher than the performance data threshold, which may indicate that the performance data of the current device is at a peak period, and during the peak period, the probability of abnormal operation of the device is higher. Large, therefore, in order to increase the basis for subsequent analysis of the performance of the device, the performance data in the third time interval is used regardless of the degree of change in the value of the performance data in the third time interval. Sampling is performed, and the third sampling interval is equal to or greater than the second sampling interval, so that more performance data of the device is collected in the third time interval.
上文结合图1至图8详细地描述了本申请实施例的对设备的性能数据进行采样的方法,下文结合图9和图10详细地描述本申请实施例的对设备的性能数据进行采样的装置。需要说明的是,图9和图10所示的装置可以实现上述方法中各个步骤,例如图2中的步骤210-步骤250。为了简洁,在此不再赘述。The method for sampling the performance data of the device in the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 8. The following describes the performance data of the device in the embodiment of the present application in detail with reference to FIG. 9 and FIG. Device. It should be noted that the apparatus shown in FIG. 9 and FIG. 10 can implement various steps in the above method, for example, step 210-step 250 in FIG. For the sake of brevity, it will not be repeated here.
图9是本申请实施例的传输数据的装置的示意性框图。图9所示的传输数据的装置900包括第一确定单元910和采样单元920。FIG. 9 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application. The apparatus 900 for transmitting data shown in FIG. 9 includes a first determining unit 910 and a sampling unit 920.
第一确定单元910,用于确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度;The first determining unit 910 is configured to determine a first time interval and a second time interval in the first preset time period, where the value of the performance data of the device is less than Determining the degree of change in the value of the performance data of the device in the second time interval;
采样单元920,用于在所述第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样;The sampling unit 920 is configured to sample performance data of the device in the first time interval at the first sampling interval in the first time interval;
所述采样单元920,还用于在所述第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。The sampling unit 920 is further configured to sample, in the second time interval, performance data of the device in the second time interval at a second sampling interval, where the first sampling interval is greater than The second sampling interval is described.
可选地,作为一个实施例,所述设备的性能数据为以周期随时间变化的数据,所述第一确定单元,还用于根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期;以及确定所述周期内的第一时间区间和第二时间区间,所述周期为所述第一预设时间段。Optionally, as an embodiment, the performance data of the device is data that changes with time in time, and the first determining unit is further configured to: according to the performance data of the device in the second preset time period. Determining the period of the value as a function of time; and determining a first time interval and a second time interval within the period, the period being the first predetermined time period.
可选地,作为一个实施例,所述第一确定单元,具体还用于:将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差小于标准差阈值的时间区间作为所述第一时间区间;从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差大于或等于所述标准差阈值的时间区间作为所述第二时间区间。Optionally, as an embodiment, the first determining unit is further configured to: divide the period into multiple time intervals, and determine the device in each time interval of the multiple time intervals. a standard deviation of the performance data; a time interval in which the standard deviation is smaller than the standard deviation threshold is selected as the first time interval from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals; In the standard deviation set composed of the standard deviations corresponding to the intervals, a time interval in which the standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval.
可选地,作为一个实施例,所述第一确定单元,具体还用于:将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差; 基于所述多个时间区间分别对应的标准差,确定满足初始区间的选取规则的时间区间作为初始区间;根据所述初始区间确定所述第一时间区间,所述第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,所述目标采样点对应的性能数据的取值与所述初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示所述目标采样点对应的所述设备的性能数据的取值,m 0表示所述初始区间中性能数据的取值的均值;d 0表示所述初始区间内性能数据的取值的标准差。 Optionally, as an embodiment, the first determining unit is further configured to: divide the period into multiple time intervals, and determine the device in each time interval of the multiple time intervals. a standard deviation of the performance data; determining, according to the standard deviation corresponding to the plurality of time intervals, a time interval that satisfies the selection rule of the initial interval as an initial interval; determining the first time interval according to the initial interval, the first The performance data in a time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, the target sampling point being outside the initial interval and ending with the initial interval Adjacent sampling points, the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy |e 1 -m 0 |<3d 0 , where e 1 represents the target sampling the value of the device performance data corresponding to the point, m 0 represents the mean value of the initial interval performance data; d 0 represents the initial value of the performance data section Standard deviation.
可选地,作为一个实施例,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度呈反比关系,和/或Optionally, as an embodiment, in the first time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the first sampling interval, and/or
在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度呈反比关系。During the second time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
可选地,作为一个实施例,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度之间的反比关系,以及Optionally, as an embodiment, an inverse relationship between a magnitude of a change in the value of the performance data of the device and a length of the first sampling interval in the first time interval, and
在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度之间反比关系满足
Figure PCTCN2017115294-appb-000016
其中,P表示所述第一采样间隔或所述第二采样间隔的长度,k为预设的大于1的数,σ表示所述第一时间区间或所述第二时间区间内所述设备的性能数据的标准差,用于指示所述第一时间区间或所述第二时间区间内性能数据的取值的变化程度。
In the second time interval, an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the second sampling interval is satisfied.
Figure PCTCN2017115294-appb-000016
Wherein P represents the length of the first sampling interval or the second sampling interval, k is a preset number greater than 1, and σ represents the device in the first time interval or the second time interval The standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
可选地,作为一个实施例,所述装置还包括:获取单元,用于获取所述第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,并将所述第二预设时间段划分成N个子时间段,N为正整数;第二确定单元,还用于以所述N个子时间段内的第i个子时间段内所述设备的性能数据的取值的变化趋势为基准,确定所述N个子时间段内第j个子时间段内的所述设备性能数据的取值的变化趋势与所述第i个子时间段内的所述设备的性能数据的取值的变化趋势之间的相似程度,j∈[1,N],i∈[1,N],j≠i,且j和i为正整数;选择单元,用于从所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度中,选择与所述第i个子时间段内所述设备的性能数据的取值的变化趋势相同的目标时间段;所述第二确定单元,还用于确定所述第i个子时间段中第一采样点与所述目标时间段中的第二采样点之间的时间长度,所述第一采样点在所述第i个子时间段中的位置与所述第二采样点在所述目标时间段中的位置相同;所述第二确定单元,还用于选取所述第二预设时间段内任一采样点为所述周期的起始时间,以所述第一采样点与所述第二采样点之间的时间长度为所述周期的长度,确定所述周期。Optionally, as an embodiment, the device further includes: an acquiring unit, configured to acquire a trend of the value of the performance data of the device in the second preset time period, and the The second preset time period is divided into N sub-time segments, where N is a positive integer; the second determining unit is further configured to use the value of the performance data of the device in the i-th sub-period within the N sub-periods The change trend is a reference, determining a change trend of the value of the device performance data in the jth sub-period in the N sub-periods and a value of the performance data of the device in the i-th sub-period The degree of similarity between the trends of change, j ∈ [1, N], i ∈ [1, N], j ≠ i, and j and i are positive integers; a selection unit for the i-th sub-period Selecting the i-th sub-period in the degree of similarity between the change trend of the value of the performance data of the device and the change trend of the value of the performance data of the device in the j-th sub-period The target time period in which the value of the performance data of the device is the same The second determining unit is further configured to determine a length of time between the first sampling point in the ith sub-time period and a second sampling point in the target time period, where the first sampling point is in the The position in the i-th sub-period is the same as the position of the second sampling point in the target time period; the second determining unit is further configured to select any sampling point in the second preset time period For the start time of the period, the period is determined by the length of time between the first sampling point and the second sampling point being the length of the period.
可选地,作为一个实施例,所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度s ij,其中,
Figure PCTCN2017115294-appb-000017
Y表示所述第i个子时间段和所述第j个子时间段内 包含的对所述设备的性能数据进行采样的采样点的数量,t iy表示第i个子时间段内第y个所述设备的性能数据的取值,t jy表示第j个子时间段内第y个所述设备的性能数据的取值,
Figure PCTCN2017115294-appb-000018
表示第i个子时间段内所述设备的性能数据的取值的均值,
Figure PCTCN2017115294-appb-000019
表示第j个子时间段内所述设备的性能数据的取值的均值。
Optionally, as an embodiment, a change trend of the value of the performance data of the device in the i-th sub-period and a change trend of the value of the performance data of the device in the j-th sub-period The degree of similarity between s ij and where
Figure PCTCN2017115294-appb-000017
Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period The value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period,
Figure PCTCN2017115294-appb-000018
Means the mean value of the performance data of the device in the i-th sub-period,
Figure PCTCN2017115294-appb-000019
Indicates the mean value of the performance data of the device in the jth sub-period.
可选地,作为一个实施例,所述第一确定单元,还用于确定所述第一预设时间段内的第三时间区间,在所述第三时间区间中所述设备的性能数据的均值高于性能数据阈值;Optionally, as an embodiment, the first determining unit is further configured to determine a third time interval in the first preset time period, where performance data of the device is in the third time interval. The mean is higher than the performance data threshold;
所述采样单元,还用于在第三时间区间内,以第三采样间隔对所述第三时间区间中的性能数据进行采样,所述第三采样间隔小于所述第一采样间隔。The sampling unit is further configured to sample performance data in the third time interval at a third sampling interval in a third time interval, where the third sampling interval is smaller than the first sampling interval.
可选地,作为一个实施例,所述设备的性能数据下列数据中的任一种:所述设备中计算资源的占用率,所述设备中传输资源的占用率,所述设备中存储资源的占用率。Optionally, as an embodiment, the performance data of the device is any one of the following data: an occupancy rate of the computing resource in the device, an occupancy rate of the transmission resource in the device, and a storage resource in the device. Occupancy rate.
在可选地实施例中,上述对设备的性能数据进行采样的装置900可以为对设备的性能数据进行采样的装置1000,上述第一确定单元910和采样单元920可以为装置1000中的处理器1020,所述装置1000还可以包括输入/输出接口1030和存储器1010,具体如图10所示。In an optional embodiment, the foregoing apparatus 900 for sampling performance data of the device may be the apparatus 1000 for sampling performance data of the device, where the first determining unit 910 and the sampling unit 920 may be processors in the device 1000. 1020, the device 1000 can further include an input/output interface 1030 and a memory 1010, as shown in FIG.
图10是本申请另一实施例的对设备的性能数据进行采样的装置的示意性框图。图10所示的对设备的性能数据进行采样的装置1000可以包括:存储器1010、处理器1020和输入/输出接口1030。其中,存储器1010、处理器1020和输入/输出接口1030之前通过内部连接通路相连,该存储器1010用于存储程序指令,该处理器1020用于执行该存储器1020存储的程序指令,以控制输入/输出接口1030接收输入的数据和信息,输出操作结果等数据。FIG. 10 is a schematic block diagram of an apparatus for sampling performance data of a device according to another embodiment of the present application. The apparatus 1000 for sampling performance data of a device shown in FIG. 10 may include a memory 1010, a processor 1020, and an input/output interface 1030. The memory 1010, the processor 1020, and the input/output interface 1030 are previously connected by an internal connection path for storing program instructions, and the processor 1020 is configured to execute program instructions stored by the memory 1020 to control input/output. The interface 1030 receives input data and information, and outputs data such as an operation result.
应理解,在本申请实施例中,该处理器1020可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本申请实施例所提供的技术方案。It should be understood that, in the embodiment of the present application, the processor 1020 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more. An integrated circuit for performing related procedures to implement the technical solutions provided by the embodiments of the present application.
该存储器1010可以包括只读存储器和随机存取存储器,并向处理器1020提供指令和数据。处理器1020的一部分还可以包括非易失性随机存取存储器。例如,处理器1020还可以存储设备类型的信息。The memory 1010 can include read only memory and random access memory and provides instructions and data to the processor 1020. A portion of processor 1020 may also include a non-volatile random access memory. For example, the processor 1020 can also store information of the device type.
在实现过程中,上述方法的各步骤可以通过处理器1020中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的对设备的性能数据进行采样的方法可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1010,处理器1020读取存储器1010中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1020 or an instruction in a form of software. The method for sampling the performance data of the device disclosed in the embodiment of the present application may be directly implemented by the hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 1010, and the processor 1020 reads the information in the memory 1010 and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
应理解,本申请实施例中,该处理器可以为中央处理单元(central processing unit,CPU),该处理器还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), and dedicated integration. Application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
应理解,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that B can be determined from A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the order of execution of each process should be determined by its function and internal logic, and should not be applied to the embodiment of the present application. The implementation process constitutes any limitation.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个设备,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another device, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,所述计算机可读存储介质可以是计算机能够读取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(Digital Video Disc,DVD))或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium, which can be any available media that can be read by a computer or a data storage device such as a server, data center, or the like that includes one or more available media integrations. . The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a Digital Video Disc (DVD)), or a semiconductor medium (eg, a Solid State Disk (SSD)). )Wait.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (22)

  1. 一种对设备的性能数据进行采样的方法,其特征在于,包括:A method for sampling performance data of a device, comprising:
    确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度;Determining a first time interval and a second time interval in the first preset time period, wherein a degree of change in the value of the performance data of the device in the first time interval is less than that in the second time interval The degree of change in the value of the performance data of the device;
    在所述第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样;Capturing performance data of the device in the first time interval at the first sampling interval in the first time interval;
    在所述第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。And during the second time interval, the performance data of the device in the second time interval is sampled at a second sampling interval, wherein the first sampling interval is greater than the second sampling interval.
  2. 如权利要求1所述的方法,其特征在于,所述设备的性能数据为以周期随时间变化的数据,所述方法还包括:The method of claim 1, wherein the performance data of the device is data that changes with time in a cycle, the method further comprising:
    根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期;Determining the period according to a trend of the value of the performance data of the device in the second preset time period;
    所述确定第一预设时间段内的第一时间区间和第二时间区间,包括:Determining the first time interval and the second time interval in the first preset time period, including:
    确定所述周期内的第一时间区间和第二时间区间,所述第一预设时间段为所述周期。Determining a first time interval and a second time interval within the period, the first predetermined time period being the period.
  3. 如权利要求2所述的方法,其特征在于,所述确定所述周期内的第一时间区间和第二时间区间,包括:The method of claim 2, wherein the determining the first time interval and the second time interval in the period comprises:
    将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;Dividing the period into a plurality of time intervals, and determining a standard deviation of performance data of the device in each time interval of the plurality of time intervals;
    从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差小于标准差阈值的时间区间作为所述第一时间区间;Selecting, from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals, a time interval in which the standard deviation is smaller than the standard deviation threshold as the first time interval;
    从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差大于或等于所述标准差阈值的时间区间作为所述第二时间区间。A time interval in which a standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval from a standard deviation set consisting of standard deviations corresponding to the plurality of time intervals.
  4. 如权利要求2所述的方法,其特征在于,所述确定所述周期内的第一时间区间和第二时间区间,包括:The method of claim 2, wherein the determining the first time interval and the second time interval in the period comprises:
    将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;Dividing the period into a plurality of time intervals, and determining a standard deviation of performance data of the device in each time interval of the plurality of time intervals;
    基于所述多个时间区间分别对应的标准差,确定满足初始区间的选取规则的时间区间作为初始区间;Determining, according to a standard deviation corresponding to the plurality of time intervals, a time interval that satisfies a selection rule of the initial interval as an initial interval;
    根据所述初始区间确定所述第一时间区间,所述第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,所述目标采样点对应的性能数据的取值与所述初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示所述目标采样点对应的所述设备的性能数据的取值,m 0表示所述初始区间中性能数据的取值的均值;d 0表示所述初始区间内性能数据的取值的标准差。 Determining, according to the initial interval, the first time interval, where the performance data in the first time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, where the target sampling point is a sampling point located outside the initial interval and adjacent to an endpoint of the initial interval, where the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy |e 1 - m 0 | <3d 0, wherein the value of the device performance data represents e 1 corresponding to the target sampling point, m 0 represents the mean value of the initial interval performance data; d 0 represents the The standard deviation of the value of the performance data in the initial interval.
  5. 如权利要求1-4中任一项所示的方法,其特征在于,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度呈反比关系,和/或The method according to any one of claims 1 to 4, characterized in that, in the first time interval, the magnitude of the change in the value of the performance data of the device and the length of the first sampling interval In inverse relationship, and / or
    在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采 样间隔的长度呈反比关系。In the second time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
  6. 如权利要求5所述的方法,其特征在于,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度之间的反比关系,以及The method according to claim 5, wherein in the first time interval, an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the first sampling interval, as well as
    在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度之间反比关系满足
    Figure PCTCN2017115294-appb-100001
    其中,P表示所述第一采样间隔或所述第二采样间隔的长度,k为预设的大于1的数,σ表示所述第一时间区间或所述第二时间区间内所述设备的性能数据的标准差,用于指示所述第一时间区间或所述第二时间区间内性能数据的取值的变化程度。
    In the second time interval, an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the second sampling interval is satisfied.
    Figure PCTCN2017115294-appb-100001
    Wherein P represents the length of the first sampling interval or the second sampling interval, k is a preset number greater than 1, and σ represents the device in the first time interval or the second time interval The standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
  7. 如权利要求2-6中任一项所述的方法,其特征在于,所述根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期,包括:The method according to any one of claims 2-6, wherein the determining the period according to a trend of the value of the performance data of the device in the second preset time period, including :
    获取所述第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,并将所述第二预设时间段划分成N个子时间段,N为正整数;Obtaining a trend of the value of the performance data of the device in the second preset time period with time, and dividing the second preset time period into N sub-time segments, where N is a positive integer;
    以所述N个子时间段内的第i个子时间段内所述设备的性能数据的取值的变化趋势为基准,确定所述N个子时间段内第j个子时间段内的所述设备性能数据的取值的变化趋势与所述第i个子时间段内的所述设备的性能数据的取值的变化趋势之间的相似程度,j∈[1,N],i∈[1,N],j≠i,且j和i为正整数;Determining, according to a change trend of the value of the performance data of the device in the i-th sub-period of the N sub-periods, determining the device performance data in the j-th sub-period within the N sub-periods The degree of similarity between the change trend of the value and the change trend of the value of the performance data of the device in the i-th sub-period, j ∈ [1, N], i ∈ [1, N], J≠i, and j and i are positive integers;
    从所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度中,选择与所述第i个子时间段内所述设备的性能数据的取值的变化趋势相同的目标时间段;Selecting a degree of similarity between a change trend of the value of the performance data of the device in the i-th sub-period and a change trend of the value of the performance data of the device in the j-th sub-period a target time period that is the same as a change trend of the value of the performance data of the device in the i-th sub-period;
    确定所述第i个子时间段中第一采样点与所述目标时间段中的第二采样点之间的时间长度,所述第一采样点在所述第i个子时间段中的位置与所述第二采样点在所述目标时间段中的位置相同;Determining a length of time between the first sampling point in the i-th sub-period and a second sampling point in the target time period, where the first sampling point is located in the i-th sub-period The second sampling point has the same position in the target time period;
    选取所述第二预设时间段内任一采样点为所述周期的起始时间,以所述第一采样点与所述第二采样点之间的时间长度为所述周期的长度,确定所述周期。Selecting any sampling point in the second preset time period as the start time of the period, and determining a length of the period between the first sampling point and the second sampling point as the length of the period, The period.
  8. 如权利要求7所述的方法,其特征在于,所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度为s ij,其中,
    Figure PCTCN2017115294-appb-100002
    Y表示所述第i个子时间段和所述第j个子时间段内包含的对所述设备的性能数据进行采样的采样点的数量,t iy表示第i个子时间段内第y个所述设备的性能数据的取值,t jy表示第j个子时间段内第y个所述设备的性能数据的取值,
    Figure PCTCN2017115294-appb-100003
    表示第i个子时间段内所述设备的性能数据的取值的均值,
    Figure PCTCN2017115294-appb-100004
    表示第j个子时间段内所述设备的性能数据的取值的均值。
    The method according to claim 7, wherein the change trend of the value of the performance data of the device in the i-th sub-period and the performance data of the device in the j-th sub-period The degree of similarity between the trends of the values is s ij , where
    Figure PCTCN2017115294-appb-100002
    Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period The value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period,
    Figure PCTCN2017115294-appb-100003
    Means the mean value of the performance data of the device in the i-th sub-period,
    Figure PCTCN2017115294-appb-100004
    Indicates the mean value of the performance data of the device in the jth sub-period.
  9. 如权利要求1-8中任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-8, wherein the method further comprises:
    确定所述第一预设时间段内的第三时间区间,在所述第三时间区间中所述设备的性能数据的均值高于性能数据阈值;Determining a third time interval in the first preset time period, wherein an average value of the performance data of the device is higher than a performance data threshold in the third time interval;
    在第三时间区间内,以第三采样间隔对所述第三时间区间中的性能数据进行采样,所 述第三采样间隔小于所述第一采样间隔。In a third time interval, performance data in the third time interval is sampled at a third sampling interval, the third sampling interval being less than the first sampling interval.
  10. 如权利要求1-9中任一项所述的方法,其特征在于,所述设备的性能数据下列数据中的任一种:所述设备中计算资源的占用率,所述设备中传输资源的占用率,所述设备中存储资源的占用率。The method according to any one of claims 1 to 9, wherein the performance data of the device is any one of the following data: an occupancy rate of a computing resource in the device, and a resource in the device Occupancy, the occupancy rate of storage resources in the device.
  11. 一种对设备的性能数据进行采样的装置,其特征在于,包括:An apparatus for sampling performance data of a device, comprising:
    第一确定单元,用于确定第一预设时间段内的第一时间区间和第二时间区间,在所述第一时间区间中所述设备的性能数据的取值的变化程度小于在所述第二时间区间中所述设备的性能数据的取值的变化程度;a first determining unit, configured to determine a first time interval and a second time interval in the first preset time period, where the value of the performance data of the device changes less than The degree of change in the value of the performance data of the device in the second time interval;
    采样单元,用于在所述第一时间区间内,以第一采样间隔对所述第一时间区间中设备的性能数据进行采样,在所述第二时间区间内,以第二采样间隔对所述第二时间区间中所述设备的性能数据进行采样,其中,所述第一采样间隔大于所述第二采样间隔。a sampling unit, configured to sample, in the first time interval, performance data of the device in the first time interval at a first sampling interval, and in the second time interval, at a second sampling interval The performance data of the device in the second time interval is sampled, wherein the first sampling interval is greater than the second sampling interval.
  12. 如权利要求11所述的装置,其特征在于,所述设备的性能数据为以周期随时间变化的数据,The device according to claim 11, wherein the performance data of the device is data that changes with time in time.
    所述第一确定单元,还用于根据第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,确定所述周期;以及The first determining unit is further configured to determine the period according to a trend of the value of the performance data of the device in the second preset time period; and
    确定所述周期内的第一时间区间和第二时间区间,所述周期为所述第一预设时间段。Determining a first time interval and a second time interval within the period, the period being the first predetermined time period.
  13. 如权利要求12所述的装置,其特征在于,所述第一确定单元,还用于:The device according to claim 12, wherein the first determining unit is further configured to:
    将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;Dividing the period into a plurality of time intervals, and determining a standard deviation of performance data of the device in each time interval of the plurality of time intervals;
    从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差小于标准差阈值的时间区间作为所述第一时间区间;Selecting, from the standard deviation set consisting of the standard deviations corresponding to the plurality of time intervals, a time interval in which the standard deviation is smaller than the standard deviation threshold as the first time interval;
    从所述多个时间区间分别对应的标准差组成的标准差集合中,选取标准差大于或等于所述标准差阈值的时间区间作为所述第二时间区间。A time interval in which a standard deviation is greater than or equal to the standard deviation threshold is selected as the second time interval from a standard deviation set consisting of standard deviations corresponding to the plurality of time intervals.
  14. 如权利要求12所述的装置,其特征在于,所述第一确定单元,还用于:The device according to claim 12, wherein the first determining unit is further configured to:
    将所述周期划分为多个时间区间,并确定所述多个时间区间的每个时间区间内的所述设备的性能数据的标准差;Dividing the period into a plurality of time intervals, and determining a standard deviation of performance data of the device in each time interval of the plurality of time intervals;
    基于所述多个时间区间分别对应的标准差,确定满足初始区间的选取规则的时间区间作为初始区间;Determining, according to a standard deviation corresponding to the plurality of time intervals, a time interval that satisfies a selection rule of the initial interval as an initial interval;
    根据所述初始区间确定所述第一时间区间,所述第一时间区间中的性能数据包括所述初始区间中的性能数据,以及目标采样点对应的设备的性能数据,所述目标采样点为位于所述初始区间之外,且与所述初始区间的端点相邻的采样点,所述目标采样点对应的性能数据的取值与所述初始区间内的性能数据的均值满足|e 1-m 0|<3d 0,其中,e 1表示所述目标采样点对应的所述设备的性能数据的取值,m 0表示所述初始区间中性能数据的取值的均值;d 0表示所述初始区间内性能数据的取值的标准差。 Determining, according to the initial interval, the first time interval, where the performance data in the first time interval includes performance data in the initial interval, and performance data of a device corresponding to the target sampling point, where the target sampling point is a sampling point located outside the initial interval and adjacent to an endpoint of the initial interval, where the value of the performance data corresponding to the target sampling point and the mean value of the performance data in the initial interval satisfy |e 1 - m 0 | <3d 0, wherein the value of the device performance data represents e 1 corresponding to the target sampling point, m 0 represents the mean value of the initial interval performance data; d 0 represents the The standard deviation of the value of the performance data in the initial interval.
  15. 如权利要求11-14中任一项所示的装置,其特征在于,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度呈反比关系,和/或The apparatus according to any one of claims 11 to 14, wherein the magnitude of the change in the value of the performance data of the device and the length of the first sampling interval in the first time interval In inverse relationship, and / or
    在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度呈反比关系。During the second time interval, the magnitude of the change in the value of the performance data of the device is inversely proportional to the length of the second sampling interval.
  16. 如权利要求15所述的装置,其特征在于,在所述第一时间区间内,所述设备的性能数据的取值变化程度的大小与所述第一采样间隔的长度之间的反比关系,以及The apparatus according to claim 15, wherein in the first time interval, an inverse relationship between a magnitude of a change in the value of the performance data of the device and a length of the first sampling interval, as well as
    在所述第二时间区间内,所述设备的性能数据的取值的变化程度的大小与所述第二采样间隔的长度之间反比关系满足
    Figure PCTCN2017115294-appb-100005
    其中,P表示所述第一采样间隔或所述第二采样间隔的长度,k为预设的大于1的数,σ表示所述第一时间区间或所述第二时间区间内所述设备的性能数据的标准差,用于指示所述第一时间区间或所述第二时间区间内性能数据的取值的变化程度。
    In the second time interval, an inverse relationship between the magnitude of the change in the value of the performance data of the device and the length of the second sampling interval is satisfied.
    Figure PCTCN2017115294-appb-100005
    Wherein P represents the length of the first sampling interval or the second sampling interval, k is a preset number greater than 1, and σ represents the device in the first time interval or the second time interval The standard deviation of the performance data is used to indicate the degree of change of the value of the performance data in the first time interval or the second time interval.
  17. 如权利要求12-16中任一项所述的装置,其特征在于,所述装置还包括:The device of any of claims 12-16, wherein the device further comprises:
    获取单元,用于获取所述第二预设时间段内所述设备的性能数据的取值随时间的变化趋势,并将所述第二预设时间段划分成N个子时间段,N为正整数;An acquiring unit, configured to acquire a trend of the value of the performance data of the device in the second preset time period, and divide the second preset time segment into N sub-time segments, where N is positive Integer
    第二确定单元,还用于以所述N个子时间段内的第i个子时间段内所述设备的性能数据的取值的变化趋势为基准,确定所述N个子时间段内第j个子时间段内的所述设备性能数据的取值的变化趋势与所述第i个子时间段内的所述设备的性能数据的取值的变化趋势之间的相似程度,j∈[1,N],i∈[1,N],j≠i,且j和i为正整数;a second determining unit, configured to determine, according to a change trend of the value of the performance data of the device in the i-th sub-period within the N sub-periods, the j-th sub-time in the N sub-time segments The degree of similarity between the change trend of the value of the device performance data in the segment and the change trend of the value of the performance data of the device in the i-th sub-period, j∈[1,N], I∈[1,N], j≠i, and j and i are positive integers;
    选择单元,用于从所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度中,选择与所述第i个子时间段内所述设备的性能数据的取值的变化趋势相同的目标时间段;a selecting unit, configured to change a trend between a change trend of the value of the performance data of the device in the i-th sub-period and a change trend in a value of the performance data of the device in the j-th sub-period a degree of similarity, selecting a target time period that is the same as a change trend of the value of the performance data of the device in the i-th sub-period;
    所述第二确定单元,还用于确定所述第i个子时间段中第一采样点与所述目标时间段中的第二采样点之间的时间长度,The second determining unit is further configured to determine a length of time between the first sampling point in the i-th sub-period and the second sampling point in the target time period,
    选取所述第二预设时间段内任一采样点为所述周期的起始时间,以所述第一采样点与所述第二采样点之间的时间长度为所述周期的长度,确定所述周期,所述第一采样点在所述第i个子时间段中的位置与所述第二采样点在所述目标时间段中的位置相同。Selecting any sampling point in the second preset time period as the start time of the period, and determining a length of the period between the first sampling point and the second sampling point as the length of the period, The period, the position of the first sampling point in the ith sub-period is the same as the position of the second sampling point in the target time period.
  18. 如权利要求17所述的装置,其特征在于,所述第i个子时间段内所述设备的性能数据的取值的变化趋势与所述第j个子时间段内所述设备的性能数据的取值的变化趋势之间的相似程度为s ij,其中,
    Figure PCTCN2017115294-appb-100006
    Y表示所述第i个子时间段和所述第j个子时间段内包含的对所述设备的性能数据进行采样的采样点的数量,t iy表示第i个子时间段内第y个所述设备的性能数据的取值,t jy表示第j个子时间段内第y个所述设备的性能数据的取值,
    Figure PCTCN2017115294-appb-100007
    表示第i个子时间段内所述设备的性能数据的取值的均值,
    Figure PCTCN2017115294-appb-100008
    表示第j个子时间段内所述设备的性能数据的取值的均值。
    The apparatus according to claim 17, wherein the change trend of the value of the performance data of the device in the i-th sub-period and the performance data of the device in the j-th sub-period The degree of similarity between the trends of the values is s ij , where
    Figure PCTCN2017115294-appb-100006
    Y represents the number of sampling points for sampling the performance data of the device included in the i-th sub-period and the j-th sub-period, and t iy represents the yth device in the i-th sub-period The value of the performance data, t jy represents the value of the performance data of the yth device in the jth sub-time period,
    Figure PCTCN2017115294-appb-100007
    Means the mean value of the performance data of the device in the i-th sub-period,
    Figure PCTCN2017115294-appb-100008
    Indicates the mean value of the performance data of the device in the jth sub-period.
  19. 如权利要求11-18中任一项所述的装置,其特征在于,A device according to any of claims 11-18, wherein
    所述第一确定单元,还用于确定所述第一预设时间段内的第三时间区间,在所述第三时间区间中所述设备的性能数据的均值高于性能数据阈值;The first determining unit is further configured to determine a third time interval in the first preset time period, wherein an average value of the performance data of the device is higher than a performance data threshold in the third time interval;
    所述采样单元,还用于在第三时间区间内,以第三采样间隔对所述第三时间区间中的性能数据进行采样,所述第三采样间隔小于所述第一采样间隔。The sampling unit is further configured to sample performance data in the third time interval at a third sampling interval in a third time interval, where the third sampling interval is smaller than the first sampling interval.
  20. 如权利要求11-19中任一项所述的装置,其特征在于,所述设备的性能数据下列 数据中的任一种:所述设备中计算资源的占用率,所述设备中传输资源的占用率,所述设备中存储资源的占用率。The device according to any one of claims 11 to 19, wherein the performance data of the device is any one of the following data: an occupancy rate of a computing resource in the device, and a resource in the device Occupancy, the occupancy rate of storage resources in the device.
  21. 一种对设备的性能数据进行采样的装置,其特征在于,包括输入/输出接口、处理器和存储器,其中所述处理器用于控制所述输入/输出接口收发信息,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得所述装置执行权利要求1至10中任一项所述的方法。An apparatus for sampling performance data of a device, comprising: an input/output interface, a processor, and a memory, wherein the processor is configured to control the input/output interface to transmit and receive information, and the memory is used to store a computer A program for calling and running the computer program from the memory, such that the apparatus performs the method of any one of claims 1 to 10.
  22. 一种计算机可读介质,其特征在于,所述计算机可读介质存储有程序代码,当所述计算机程序代码在计算机上运行时,使得所述计算机执行权利要求1至10中任一项所述的方法。A computer readable medium, wherein the computer readable medium stores program code, when the computer program code is run on a computer, causing the computer to perform the method of any one of claims 1 to 10. Methods.
PCT/CN2017/115294 2017-12-08 2017-12-08 Method and device for sampling performance data of apparatus WO2019109352A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780002849.4A CN110140326A (en) 2017-12-08 2017-12-08 The method and apparatus that the performance data of equipment is sampled
PCT/CN2017/115294 WO2019109352A1 (en) 2017-12-08 2017-12-08 Method and device for sampling performance data of apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/115294 WO2019109352A1 (en) 2017-12-08 2017-12-08 Method and device for sampling performance data of apparatus

Publications (1)

Publication Number Publication Date
WO2019109352A1 true WO2019109352A1 (en) 2019-06-13

Family

ID=66750726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115294 WO2019109352A1 (en) 2017-12-08 2017-12-08 Method and device for sampling performance data of apparatus

Country Status (2)

Country Link
CN (1) CN110140326A (en)
WO (1) WO2019109352A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582343A (en) * 2020-04-29 2020-08-25 青岛聚好联科技有限公司 Equipment fault prediction method and device
CN117193676A (en) * 2023-11-08 2023-12-08 苏州元脑智能科技有限公司 Method, system, equipment and medium for evaluating performance of storage equipment
CN118152416A (en) * 2024-05-06 2024-06-07 福建中信网安信息科技有限公司 Database operation and maintenance management method and system based on dynamic data factors

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112471612A (en) * 2020-12-18 2021-03-12 惠州市沛格斯科技有限公司 Method and device for judging smoking opening number of electronic cigarette, electronic cigarette and storage medium
CN113655307A (en) * 2021-07-27 2021-11-16 珠海格力电器股份有限公司 Abnormity monitoring method, device and equipment for production equipment and injection molding machine
CN114087996B (en) * 2021-10-19 2024-04-19 广东芬蓝环境科技有限公司 Dynamic sludge homogenizing method and device, electronic equipment and storage medium
CN117909660A (en) * 2022-10-19 2024-04-19 华为技术有限公司 Data processing method, device, system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808007A (en) * 2010-02-22 2010-08-18 烽火通信科技股份有限公司 Method for acquiring real-time performance data by network manager
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
US20160378629A1 (en) * 2015-06-24 2016-12-29 Docusign, Inc. Systems and methods for performance monitoring
CN107423433A (en) * 2017-08-03 2017-12-01 聚好看科技股份有限公司 A kind of data sampling rate control method and device

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100561404C (en) * 2005-12-29 2009-11-18 联想(北京)有限公司 Save the method for power consumption of processing unit
CN102314768B (en) * 2010-06-30 2014-07-02 西门子公司 Traffic information collecting method, device and system
CN102385798B (en) * 2010-08-31 2015-03-25 西门子公司 Traffic information collecting method, device and system
CN104102749B (en) * 2013-04-11 2019-04-23 华为技术有限公司 Terminal device
CN103986619A (en) * 2014-05-09 2014-08-13 浙江中烟工业有限责任公司 Port state monitoring method for fiber channel switch
CN103986515B (en) * 2014-05-09 2016-06-08 浙江中烟工业有限责任公司 The performance indications monitoring method of fibre channel media
US9471778B1 (en) * 2015-11-30 2016-10-18 International Business Machines Corporation Automatic baselining of anomalous event activity in time series data
CN105589785A (en) * 2015-12-08 2016-05-18 中国银联股份有限公司 Device and method for monitoring IO (Input/Output) performance of storage equipment
CN105868294A (en) * 2016-03-23 2016-08-17 浙江风向标科技有限公司 Data analysis method and device for intelligent equipment
CN105954682B (en) * 2016-05-20 2018-08-21 国家计算机网络与信息安全管理中心 Storage battery charge state On-line Estimation detection method and system
CN106250305B (en) * 2016-08-17 2018-11-09 浪潮电子信息产业股份有限公司 Self-adaptive control method for data acquisition period of monitoring system in cloud computing environment
CN106407012A (en) * 2016-09-30 2017-02-15 青岛海信移动通信技术股份有限公司 Sampling method and device for load of central processing unit
CN107070740A (en) * 2017-03-11 2017-08-18 郑州云海信息技术有限公司 A kind of efficient PAAS platform monitoring methods and system
CN106878111A (en) * 2017-03-15 2017-06-20 郑州云海信息技术有限公司 The cloud monitoring system and monitoring method of a kind of High Availabitity
CN106992880A (en) * 2017-03-20 2017-07-28 北京匡恩网络科技有限责任公司 Method for predicting and device for EPA
CN107133142B (en) * 2017-04-18 2019-08-27 浙江大学 A kind of monitoring data intellegent sampling method based on association analysis

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808007A (en) * 2010-02-22 2010-08-18 烽火通信科技股份有限公司 Method for acquiring real-time performance data by network manager
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
US20160378629A1 (en) * 2015-06-24 2016-12-29 Docusign, Inc. Systems and methods for performance monitoring
CN107423433A (en) * 2017-08-03 2017-12-01 聚好看科技股份有限公司 A kind of data sampling rate control method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582343A (en) * 2020-04-29 2020-08-25 青岛聚好联科技有限公司 Equipment fault prediction method and device
CN111582343B (en) * 2020-04-29 2023-09-26 青岛聚好联科技有限公司 Equipment fault prediction method and device
CN117193676A (en) * 2023-11-08 2023-12-08 苏州元脑智能科技有限公司 Method, system, equipment and medium for evaluating performance of storage equipment
CN117193676B (en) * 2023-11-08 2024-02-09 苏州元脑智能科技有限公司 Method, system, equipment and medium for evaluating performance of storage equipment
CN118152416A (en) * 2024-05-06 2024-06-07 福建中信网安信息科技有限公司 Database operation and maintenance management method and system based on dynamic data factors

Also Published As

Publication number Publication date
CN110140326A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
WO2019109352A1 (en) Method and device for sampling performance data of apparatus
JP7214295B2 (en) Distributed system data synchronization method, apparatus, computer program and electronic equipment
JP6952719B2 (en) Correlation between thread strength and heap usage to identify stack traces that are accumulating heaps
US9032175B2 (en) Data migration between storage devices
WO2021088688A1 (en) Convolution acceleration operation method and apparatus, storage medium and terminal device
EP2894564A1 (en) Job scheduling based on historical job data
US9088540B1 (en) Processing data formatted for efficient communication over a network
CN112948614B (en) Image processing method, device, electronic equipment and storage medium
US20170201566A1 (en) File downloading method, apparatus, and terminal device
CN113485649B (en) Data storage method, system, device, medium and electronic equipment
CN113556442B (en) Video denoising method and device, electronic equipment and computer readable storage medium
TW202101384A (en) Image processing method, proposal evaluation method, and related devices
US20170116034A1 (en) Systems and methods for service demand based performance prediction with varying workloads
CN111611144A (en) Method, apparatus, computing device, and medium for processing performance test data
CN111355814A (en) Load balancing method and device and storage medium
CN112256599A (en) Data prefetching method and device and storage device
CN112131274B (en) Method, device, equipment and readable storage medium for detecting abnormal points of time sequence
CN109213965B (en) System capacity prediction method, computer readable storage medium and terminal device
WO2019161768A1 (en) Traffic abnormality detection
CN107003691B (en) Techniques for synchronously sampling counters based on global clock
US11138086B2 (en) Collecting hardware performance data
CN112764660A (en) Method, apparatus, and computer-readable storage medium for data migration
CN115631514A (en) Palm vein fingerprint-based user identification method, device, equipment and medium
CN108984101B (en) Method and device for determining relationship between events in distributed storage system
US20180357011A1 (en) I/o performance enhancement of solid-state data storage devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17934267

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17934267

Country of ref document: EP

Kind code of ref document: A1