CN111104303A - Server index data acquisition method, device and medium - Google Patents

Server index data acquisition method, device and medium Download PDF

Info

Publication number
CN111104303A
CN111104303A CN201911284624.XA CN201911284624A CN111104303A CN 111104303 A CN111104303 A CN 111104303A CN 201911284624 A CN201911284624 A CN 201911284624A CN 111104303 A CN111104303 A CN 111104303A
Authority
CN
China
Prior art keywords
value
sampling frequency
index data
acquisition
subunit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911284624.XA
Other languages
Chinese (zh)
Inventor
王义哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911284624.XA priority Critical patent/CN111104303A/en
Publication of CN111104303A publication Critical patent/CN111104303A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the invention discloses a method and a device for acquiring index data of a server and a computer readable storage medium, wherein various index data of the server are acquired according to the current sampling frequency; and calculating the linear change rate of each type of index data in a preset time period. The linear change rate of various index data reflects the change trend of the index data. The CPU utilization rate and the collection time of each collection thread reflect the load cost of the system. And adjusting the current sampling frequency according to each linear change rate and the CPU utilization rate and the acquisition time of each acquisition thread, so that the adaptive frequency acquisition of the index data of the server can be realized. By comprehensively considering the load cost of the system and the change rule of the index data, the adjusted sampling frequency is more suitable for the actual requirement, the change characteristic of the index data can be truly reflected while the system load is reduced, and the data management efficiency of the system is effectively improved.

Description

Server index data acquisition method, device and medium
Technical Field
The invention relates to the technical field of server performance monitoring, in particular to a server index data acquisition method and device and a computer readable storage medium.
Background
Various data related to the operation of the server system can be regarded as index data of the server, and the index data of the server reflects the operation performance of the server. By collecting and analyzing the index data of the server, the performance change of the server can be effectively monitored, and therefore the running performance of the server is improved by adopting suitable measures.
The existing acquisition method of server index data basically sets acquisition frequency in advance and acquires the data according to fixed frequency. However, the server index data distribution is not balanced, and when the server index data are collected according to a fixed frequency, the problem of over-intensive collection sometimes exists, so that the system burden is increased; sometimes, the data acquisition times are insufficient, so that changes of some data indexes are not reflected, and the management efficiency is low.
Therefore, how to effectively acquire index data of the server and improve the management efficiency is a problem to be solved by technical personnel in the field.
Disclosure of Invention
The embodiment of the invention aims to provide a server index data acquisition method, a server index data acquisition device and a computer readable storage medium, which can realize effective acquisition of server index data and improve management efficiency.
In order to solve the above technical problem, an embodiment of the present invention provides a server index data acquisition method, including:
collecting various index data of the server according to the current sampling frequency;
calculating linear change rates of various index data in a preset time period;
and adjusting the current sampling frequency according to each linear change rate, the CPU utilization rate of each acquisition thread and acquisition time consumption.
Optionally, the adjusting the current sampling frequency according to each linear change rate and the CPU utilization and the acquisition elapsed time of each acquisition thread includes:
inquiring the corresponding relation between a preset change value range and a frequency adjustment value to select a first adjustment value matched with each linear change rate;
calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread;
determining a second adjusting value of the sampling frequency according to the difference value of the current load cost value and the last calculated load cost value;
and taking the current sampling frequency, the average value of the first adjusting value and the sum value of the second adjusting value as the adjusted sampling frequency.
Optionally, the adjusting the current sampling frequency according to each linear change rate and the CPU utilization and the acquisition elapsed time of each acquisition thread includes:
inquiring the corresponding relation between a preset change value range and sampling frequency to determine a first average sampling frequency matched with each linear change rate;
calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread;
determining a second sampling frequency according to the difference value of the current load cost value and the load cost value calculated last time;
and calculating the frequency average value of the first average sampling frequency and the second sampling frequency, and taking the frequency average value as the adjusted sampling frequency.
Optionally, the calculating a current load cost value according to the CPU utilization and the collection time of each collection thread includes:
calculating the average CPU utilization rate of all the acquisition threads according to the CPU utilization rate of each acquisition thread;
calculating the average time consumption value of the time consumption for collecting each collection thread;
and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
Optionally, the various types of index data include hard disk state information, a disk utilization rate, system network card state information, and a memory occupation amount of a process.
The embodiment of the invention also provides a server index data acquisition device, which comprises an acquisition unit, a calculation unit and an adjustment unit;
the acquisition unit is used for acquiring various index data of the server according to the current sampling frequency;
the calculation unit is used for calculating the linear change rate of various index data in a preset time period;
and the adjusting unit is used for adjusting the current sampling frequency according to each linear change rate, the CPU utilization rate of each acquisition thread and acquisition time consumption.
Optionally, the adjusted unit comprises a query subunit, a calculation subunit, a determination subunit and a determination subunit;
the query subunit is configured to query a corresponding relationship between a preset change value range and a frequency adjustment value to select a first adjustment value matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is configured to determine a second adjustment value of the sampling frequency according to a difference between the current load cost value and the last calculated load cost value;
the as subunit is configured to use the current sampling frequency, the average value of the first adjustment value, and the sum value of the second adjustment value as the adjusted sampling frequency.
Optionally, the adjusting unit includes a querying subunit, a calculating subunit, a determining subunit, and a serving subunit;
the query subunit is configured to query a corresponding relationship between a preset change value range and a sampling frequency to determine a first average sampling frequency matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is configured to determine a second sampling frequency according to a difference between the current load cost value and the last calculated load cost value;
the sub-unit is configured to calculate a frequency average value of the first average sampling frequency and the second sampling frequency, and use the frequency average value as the adjusted sampling frequency.
Optionally, the calculating subunit is specifically configured to calculate, according to the CPU utilization of each acquisition thread, an average CPU utilization of all the acquisition threads; calculating the average time consumption value of the time consumption for collecting each collection thread; and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
Optionally, the various types of index data include hard disk state information, a disk utilization rate, system network card state information, and a memory occupation amount of a process.
The embodiment of the invention also provides a server index data acquisition device, which comprises:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the server index data acquisition method as described in any one of the above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the server index data acquisition method according to any one of the above-mentioned embodiments are implemented.
According to the technical scheme, various index data of the server are collected according to the current sampling frequency; and calculating the linear change rate of each type of index data in a preset time period. The linear change rate of various index data reflects the change trend of the index data. The CPU utilization rate and the collection time of each collection thread reflect the load cost of the system. And adjusting the current sampling frequency according to each linear change rate and the CPU utilization rate and the acquisition time of each acquisition thread, so that the adaptive frequency acquisition of the index data of the server can be realized. By comprehensively considering the load cost of the system and the change rule of the index data, the adjusted sampling frequency is more suitable for the actual requirement, the change characteristic of the index data can be truly reflected while the system load is reduced, and the data management efficiency of the system is effectively improved.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a server index data acquisition method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for adjusting a sampling frequency according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for adjusting a sampling frequency according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server index data acquisition device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a server index data acquisition device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, a method for acquiring server index data according to an embodiment of the present invention is described in detail. Fig. 1 is a flowchart of a server index data acquisition method according to an embodiment of the present invention, where the method includes:
s101: and collecting various index data of the server according to the current sampling frequency.
In the initial state, the sampling frequency of the collected index data is preset. And capturing various index data of the server at fixed time according to the set sampling frequency.
The index data may include information such as hard disk state information, disk utilization, system network card state information, and memory occupancy of the process.
S102: and calculating the linear change rate of each type of index data in a preset time period.
In order to more effectively acquire the variation characteristics of the data, the variation trend of the index data in a period of time can be counted.
The value of the preset time period can be set according to actual requirements, and is not limited herein.
After the index data are collected according to the current sampling frequency, a change curve of each index data along with the time point can be drawn according to the time point.
S103: and adjusting the current sampling frequency according to each linear change rate, the CPU utilization rate of each acquisition thread and acquisition time consumption.
The linear change rate reflects the change trend of the index data, the larger the linear change rate is, the more obvious the change of the sampling value of the index data in a short time is, and at the moment, in order to more effectively know the change condition of the index data, the sampling frequency can be increased. Accordingly, the smaller the linear change rate, the smaller the change in the sampling value of the index data in a short time, and in this case, the sampling frequency can be set lower in order to reduce the load on the system.
In the embodiment of the invention, the CPU utilization rate and the collection time of each collection thread are collected in addition to the change trend of the index data.
The CPU utilization and acquisition time of the acquisition thread reflect the system load generated when the acquisition thread acquires data. The lower the CPU utilization rate and the longer the acquisition time, the larger the generated system load, and the sampling frequency can be properly reduced in order to reduce the load cost value of the system. The higher the CPU utilization rate and the shorter the acquisition time, the smaller the generated system load is, and the sampling frequency can be appropriately increased in order to more effectively know the change condition of the index data.
The specific implementation manner of adjusting the sampling frequency may be various, and as shown in fig. 2, is a flowchart of a method for adjusting the sampling frequency provided in an embodiment of the present invention, where the method includes:
s201: and inquiring the corresponding relation between the preset change value range and the frequency adjustment value to select a first adjustment value matched with each linear change rate.
In the embodiment of the invention, the corresponding relation between the variation value range and the frequency adjustment value can be preset in a simulation test mode.
Wherein, the change value range refers to the value range of the linear change rate, and different value ranges have respective corresponding frequency adjustment values. The frequency adjustment value may take a positive value or a negative value. When the frequency adjustment value is a positive value, the sampling frequency needs to be increased; when the frequency adjustment value is negative, it indicates that the sampling frequency needs to be decreased.
The values of the linear change rates corresponding to different types of index data may be different, and for each type of index data, a first adjustment value matched with the linear change rate of the index data may be obtained by querying a corresponding relationship between a change value range and a frequency adjustment value.
S202: and calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread.
The higher the CPU utilization rate of the acquisition thread is, the smaller the load cost value of the system is; the shorter the acquisition time of the acquisition thread is, the smaller the load cost value of the system is.
In a specific implementation, the ratio of the collection time spent by each collection thread to its corresponding CPU utilization may be used as the load cost value. The load cost values corresponding to each acquisition thread are calculated in a similar manner, and in the embodiment of the invention, the average value of the load cost values of all the acquisition threads can be used as the current load cost value.
In addition, the average CPU utilization rate of all the acquisition threads can be calculated according to the CPU utilization rate of each acquisition thread; calculating the average time consumption value of the acquisition time consumption of each acquisition thread; and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
S203: and determining a second adjusting value of the sampling frequency according to the difference value of the current load cost value and the last calculated load cost value.
In a specific implementation, the current load cost value may be subtracted by the last calculated load cost value to obtain a corresponding difference. When the difference is a positive value, it indicates that the load of the system is increased when the index data value is acquired according to the current sampling frequency, and the current sampling frequency can be further reduced in order to reduce the load value of the system; when the difference is a negative value, it indicates that the load of the system is reduced when the index data value is acquired according to the current sampling frequency, and the current sampling frequency can be further increased in order to more finely reflect the change of the data.
In the embodiment of the present invention, the corresponding relationship between the difference value range and the frequency adjustment value may be preset. By searching for the correspondence, a second adjustment value that matches the currently calculated difference can be determined.
S204: and taking the current sampling frequency, the average value of the first adjusting value and the sum value of the second adjusting value as the adjusted sampling frequency.
In order to enable the collected index data to better reflect the change condition of the index data, in the embodiment of the invention, the first frequency value required to be adjusted is determined according to the linear change rate of the index data.
In order to reduce the load of the system, in the embodiment of the invention, the second frequency value to be adjusted is determined according to the CPU utilization rate and the acquisition time consumption of each acquisition thread.
In a specific implementation, the sum of the current sampling frequency, the average value of the first adjustment value and the second adjustment value may be used as the adjusted sampling frequency.
Fig. 3 is a flowchart of another method for adjusting a sampling frequency according to an embodiment of the present invention, where the method includes:
s301: and inquiring the corresponding relation between the preset change value range and the sampling frequency to determine a first average sampling frequency matched with each linear change rate.
In the embodiment of the invention, the corresponding relation between the variation value range and the sampling frequency can be preset in a simulation test mode.
Wherein, the change value range refers to the value range of the linear change rate, and different value ranges have the sampling frequency corresponding to the different value ranges.
The values of the linear change rates corresponding to different types of index data may be different, and for each type of index data, the first sampling frequency matched with the linear change rate of the index data can be obtained by inquiring the corresponding relation between the change value range and the sampling frequency.
In the embodiment of the present invention, an average value of the first sampling frequencies of all the index data may be used as the first average sampling frequency.
S302: and calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread.
The higher the CPU utilization rate of the acquisition thread is, the smaller the load cost value of the system is; the shorter the acquisition time of the acquisition thread is, the smaller the load cost value of the system is.
In a specific implementation, the ratio of the collection time spent by each collection thread to its corresponding CPU utilization may be used as the load cost value. The load cost values corresponding to each acquisition thread are calculated in a similar manner, and in the embodiment of the invention, the average value of the load cost values of all the acquisition threads can be used as the current load cost value.
In addition, the average CPU utilization rate of all the acquisition threads can be calculated according to the CPU utilization rate of each acquisition thread; calculating the average time consumption value of the acquisition time consumption of each acquisition thread; and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
S303: and determining a second sampling frequency according to the difference value between the current load cost value and the last calculated load cost value.
In a specific implementation, the current load cost value may be subtracted by the last calculated load cost value to obtain a corresponding difference. When the difference is a positive value, it indicates that the load of the system is increased when the index data value is acquired according to the current sampling frequency, and the current sampling frequency can be further reduced in order to reduce the load value of the system; when the difference is a negative value, it indicates that the load of the system is reduced when the index data value is acquired according to the current sampling frequency, and the current sampling frequency can be further increased in order to more finely reflect the change of the data.
In the embodiment of the present invention, the corresponding relationship between the difference value range and the sampling frequency may be preset. By looking up the correspondence, a second sampling frequency matching the currently calculated difference can be determined.
S304: and calculating the frequency average value of the first average sampling frequency and the second sampling frequency, and taking the frequency average value as the adjusted sampling frequency.
In order to enable the collected index data to better reflect the change condition of the index data, in the embodiment of the invention, the adjusted first average sampling frequency is determined according to the linear change rate of the index data.
In order to reduce the load of the system, in the embodiment of the invention, the adjusted second sampling frequency is determined according to the CPU utilization rate and the acquisition time consumption of each acquisition thread.
In a specific implementation, the first average sampling frequency and the second average sampling frequency may be averaged, and the obtained frequency average value is used as the adjusted sampling frequency.
According to the technical scheme, various index data of the server are collected according to the current sampling frequency; and calculating the linear change rate of each type of index data in a preset time period. The linear change rate of various index data reflects the change trend of the index data. The CPU utilization rate and the collection time of each collection thread reflect the load cost of the system. And adjusting the current sampling frequency according to each linear change rate and the CPU utilization rate and the acquisition time of each acquisition thread, so that the adaptive frequency acquisition of the index data of the server can be realized. By comprehensively considering the load cost of the system and the change rule of the index data, the adjusted sampling frequency is more suitable for the actual requirement, the change characteristic of the index data can be truly reflected while the system load is reduced, and the data management efficiency of the system is effectively improved.
Fig. 4 is a schematic structural diagram of a server index data acquisition device according to an embodiment of the present invention, including an acquisition unit 41, a calculation unit 42, and an adjustment unit 43;
the acquisition unit 41 is used for acquiring various index data of the server according to the current sampling frequency;
the calculating unit 42 is used for calculating linear change rates of various index data in a preset time period;
and an adjusting unit 43, configured to adjust the current sampling frequency according to each linear change rate, and the CPU utilization and the acquisition time of each acquisition thread.
Optionally, the adjusted unit comprises a query subunit, a calculation subunit, a determination subunit and a determination subunit;
the query subunit is used for querying the corresponding relation between the preset change value range and the frequency adjustment value so as to select a first adjustment value matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is used for determining a second adjusting value of the sampling frequency according to the difference value between the current load cost value and the last calculated load cost value;
and the sub-unit is used for taking the current sampling frequency, the average value of the first adjusting value and the sum value of the second adjusting value as the adjusted sampling frequency.
Optionally, the adjusting unit comprises a querying subunit, a calculating subunit, a determining subunit and a serving subunit;
the query subunit is used for querying the corresponding relation between the preset change value range and the sampling frequency so as to determine a first average sampling frequency matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is used for determining a second sampling frequency according to the difference value between the current load cost value and the last calculated load cost value;
and the sub-unit is used for calculating the frequency average value of the first average sampling frequency and the second sampling frequency and taking the frequency average value as the adjusted sampling frequency.
Optionally, the calculating subunit is specifically configured to calculate, according to the CPU utilization of each acquisition thread, an average CPU utilization of all acquisition threads; calculating the average time consumption value of the acquisition time consumption of each acquisition thread; and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
Optionally, the various types of index data include hard disk state information, disk utilization rate, system network card state information, and memory occupation amount of the process.
For the description of the features in the embodiment corresponding to fig. 4, reference may be made to the related description of the embodiments corresponding to fig. 1 to fig. 3, which is not repeated here.
According to the technical scheme, various index data of the server are collected according to the current sampling frequency; and calculating the linear change rate of each type of index data in a preset time period. The linear change rate of various index data reflects the change trend of the index data. The CPU utilization rate and the collection time of each collection thread reflect the load cost of the system. And adjusting the current sampling frequency according to each linear change rate and the CPU utilization rate and the acquisition time of each acquisition thread, so that the adaptive frequency acquisition of the index data of the server can be realized. By comprehensively considering the load cost of the system and the change rule of the index data, the adjusted sampling frequency is more suitable for the actual requirement, the change characteristic of the index data can be truly reflected while the system load is reduced, and the data management efficiency of the system is effectively improved.
Fig. 5 is a schematic diagram of a hardware structure of a server index data acquisition device 50 according to an embodiment of the present invention, including:
a memory 51 for storing a computer program;
a processor 52 for executing a computer program to implement the steps of any of the server index data collection methods described above.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the steps of any one of the server index data acquisition methods.
The server index data acquisition method, the server index data acquisition device and the computer readable storage medium provided by the embodiment of the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (10)

1. A server index data acquisition method is characterized by comprising the following steps:
collecting various index data of the server according to the current sampling frequency;
calculating linear change rates of various index data in a preset time period;
and adjusting the current sampling frequency according to each linear change rate, the CPU utilization rate of each acquisition thread and acquisition time consumption.
2. The method of claim 1, wherein adjusting the current sampling frequency as a function of each of the linear rates of change and the CPU utilization and acquisition elapsed time of each acquisition thread comprises:
inquiring the corresponding relation between a preset change value range and a frequency adjustment value to select a first adjustment value matched with each linear change rate;
calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread;
determining a second adjusting value of the sampling frequency according to the difference value of the current load cost value and the last calculated load cost value;
and taking the current sampling frequency, the average value of the first adjusting value and the sum value of the second adjusting value as the adjusted sampling frequency.
3. The method of claim 1, wherein adjusting the current sampling frequency as a function of each of the linear rates of change and the CPU utilization and acquisition elapsed time of each acquisition thread comprises:
inquiring the corresponding relation between a preset change value range and sampling frequency to determine a first average sampling frequency matched with each linear change rate;
calculating the current load cost value according to the CPU utilization rate and the collection time of each collection thread;
determining a second sampling frequency according to the difference value of the current load cost value and the load cost value calculated last time;
and calculating the frequency average value of the first average sampling frequency and the second sampling frequency, and taking the frequency average value as the adjusted sampling frequency.
4. The method of claim 2 or 3, wherein the calculating the current load cost value according to the CPU utilization and the collection time of each collection thread comprises:
calculating the average CPU utilization rate of all the acquisition threads according to the CPU utilization rate of each acquisition thread;
calculating the average time consumption value of the time consumption for collecting each collection thread;
and taking the ratio of the average consumption value to the average CPU utilization rate as the current load cost value.
5. The method of claim 1, wherein the types of index data include hard disk state information, disk utilization, system network card state information, and memory footprint of the process.
6. The server index data acquisition device is characterized by comprising an acquisition unit, a calculation unit and an adjustment unit;
the acquisition unit is used for acquiring various index data of the server according to the current sampling frequency;
the calculation unit is used for calculating the linear change rate of various index data in a preset time period;
and the adjusting unit is used for adjusting the current sampling frequency according to each linear change rate, the CPU utilization rate of each acquisition thread and acquisition time consumption.
7. The apparatus of claim 6, wherein the adjusted units comprise a query subunit, a compute subunit, a determine subunit, and as a subunit;
the query subunit is configured to query a corresponding relationship between a preset change value range and a frequency adjustment value to select a first adjustment value matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is configured to determine a second adjustment value of the sampling frequency according to a difference between the current load cost value and the last calculated load cost value;
the as subunit is configured to use the current sampling frequency, the average value of the first adjustment value, and the sum value of the second adjustment value as the adjusted sampling frequency.
8. The apparatus of claim 6, wherein the adjustment unit comprises a query subunit, a compute subunit, a determine subunit, and a determine subunit;
the query subunit is configured to query a corresponding relationship between a preset change value range and a sampling frequency to determine a first average sampling frequency matched with each linear change rate;
the calculating subunit is used for calculating the current load cost value according to the CPU utilization rate and the acquisition time consumption of each acquisition thread;
the determining subunit is configured to determine a second sampling frequency according to a difference between the current load cost value and the last calculated load cost value;
the sub-unit is configured to calculate a frequency average value of the first average sampling frequency and the second sampling frequency, and use the frequency average value as the adjusted sampling frequency.
9. A server index data acquisition device, comprising:
a memory for storing a computer program;
a processor for executing the computer program for carrying out the steps of the server index data collection method according to any one of claims 1 to 5.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the server metric data acquisition method according to any one of claims 1 to 5.
CN201911284624.XA 2019-12-13 2019-12-13 Server index data acquisition method, device and medium Pending CN111104303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911284624.XA CN111104303A (en) 2019-12-13 2019-12-13 Server index data acquisition method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911284624.XA CN111104303A (en) 2019-12-13 2019-12-13 Server index data acquisition method, device and medium

Publications (1)

Publication Number Publication Date
CN111104303A true CN111104303A (en) 2020-05-05

Family

ID=70421910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911284624.XA Pending CN111104303A (en) 2019-12-13 2019-12-13 Server index data acquisition method, device and medium

Country Status (1)

Country Link
CN (1) CN111104303A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800503A (en) * 2020-07-03 2020-10-20 湖南工业大学 Internet of things communication data topology method and system for reducing data acquisition terminals
CN113032221A (en) * 2021-03-30 2021-06-25 深圳红途创程科技有限公司 Data acquisition and transmission method and device, computer equipment and storage medium
CN116186109A (en) * 2022-12-26 2023-05-30 中国长江电力股份有限公司 Method for inquiring time sequence data with value changed by information system
CN116260734A (en) * 2023-03-23 2023-06-13 南京航空航天大学 Unmanned plane cluster self-adaptive data acquisition method and system for spectrum reconnaissance
WO2023221846A1 (en) * 2022-05-17 2023-11-23 阿里巴巴(中国)有限公司 Computing cluster and data acquisition method and device thereof, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500266A (en) * 2013-09-05 2014-01-08 北京航空航天大学 Method and device for pushing application information based on health recognition
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
CN106535253A (en) * 2016-11-23 2017-03-22 北京必创科技股份有限公司 Method for dynamic acquisition and transmission of wireless data
CN107864071A (en) * 2017-11-02 2018-03-30 江苏物联网研究发展中心 A kind of dynamic measuring method, apparatus and system towards active safety
CN108981069A (en) * 2018-06-29 2018-12-11 珠海格力电器股份有限公司 Control method, device and the air-conditioning system of data acquiring frequency

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500266A (en) * 2013-09-05 2014-01-08 北京航空航天大学 Method and device for pushing application information based on health recognition
CN104702680A (en) * 2015-02-13 2015-06-10 安科智慧城市技术(中国)有限公司 Resource monitoring method and system
CN106535253A (en) * 2016-11-23 2017-03-22 北京必创科技股份有限公司 Method for dynamic acquisition and transmission of wireless data
CN107864071A (en) * 2017-11-02 2018-03-30 江苏物联网研究发展中心 A kind of dynamic measuring method, apparatus and system towards active safety
CN108981069A (en) * 2018-06-29 2018-12-11 珠海格力电器股份有限公司 Control method, device and the air-conditioning system of data acquiring frequency

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800503A (en) * 2020-07-03 2020-10-20 湖南工业大学 Internet of things communication data topology method and system for reducing data acquisition terminals
CN111800503B (en) * 2020-07-03 2023-04-18 湖南工业大学 Internet of things communication data topology method and system for reducing data acquisition terminals
CN113032221A (en) * 2021-03-30 2021-06-25 深圳红途创程科技有限公司 Data acquisition and transmission method and device, computer equipment and storage medium
WO2023221846A1 (en) * 2022-05-17 2023-11-23 阿里巴巴(中国)有限公司 Computing cluster and data acquisition method and device thereof, and storage medium
CN116186109A (en) * 2022-12-26 2023-05-30 中国长江电力股份有限公司 Method for inquiring time sequence data with value changed by information system
CN116186109B (en) * 2022-12-26 2024-01-05 中国长江电力股份有限公司 Method for inquiring time sequence data with value changed by information system
CN116260734A (en) * 2023-03-23 2023-06-13 南京航空航天大学 Unmanned plane cluster self-adaptive data acquisition method and system for spectrum reconnaissance
CN116260734B (en) * 2023-03-23 2023-10-13 南京航空航天大学 Unmanned plane cluster self-adaptive data acquisition method and system for spectrum reconnaissance

Similar Documents

Publication Publication Date Title
CN111104303A (en) Server index data acquisition method, device and medium
CN109597685B (en) Task allocation method, device and server
CN109981744B (en) Data distribution method and device, storage medium and electronic equipment
CN110196767B (en) Service resource control method, device, equipment and storage medium
CN105979532B (en) Performance capacity analysis early warning method and device of service processing system
JP5699715B2 (en) Data storage device and data storage method
CN106464733A (en) Method and device for adjusting virtual resources in cloud computing
CN114500339B (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN111324533A (en) A/B test method and device and electronic equipment
US20100166131A1 (en) Method and apparatus for detecting clock frequency deviation
CN104102646B (en) The method, apparatus and system of data processing
CN108683605A (en) A kind of current-limiting method and device of service call
CN110221917B (en) Method and apparatus for distributing streaming data
US10498806B2 (en) Computer-executable server load monitoring method, apparatus performing the same and storage medium storing the same
CN114490078A (en) Dynamic capacity reduction and expansion method, device and equipment for micro-service
CN109062514B (en) Bandwidth control method and device based on namespace and storage medium
CN109213965B (en) System capacity prediction method, computer readable storage medium and terminal device
CN109560978B (en) Network flow detection method, device and system and computer readable storage medium
CN112039689B (en) Network equipment performance evaluation method, device, equipment and storage medium
CN113835626A (en) Method and device for determining usable time of disk
CN116295506A (en) Method, device, equipment and medium for predicting vehicle remaining mileage
CN109800079B (en) Node adjusting method in medical insurance system and related device
CN111819550B (en) Data processing method and network equipment
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN114924965A (en) Performance prediction system for software development based on Internet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505

RJ01 Rejection of invention patent application after publication