CN113821421B - Method, system, device and storage medium for collecting server performance data - Google Patents

Method, system, device and storage medium for collecting server performance data Download PDF

Info

Publication number
CN113821421B
CN113821421B CN202110998457.6A CN202110998457A CN113821421B CN 113821421 B CN113821421 B CN 113821421B CN 202110998457 A CN202110998457 A CN 202110998457A CN 113821421 B CN113821421 B CN 113821421B
Authority
CN
China
Prior art keywords
collector
performance
performance data
server
score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110998457.6A
Other languages
Chinese (zh)
Other versions
CN113821421A (en
Inventor
牟洪洋
王帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110998457.6A priority Critical patent/CN113821421B/en
Publication of CN113821421A publication Critical patent/CN113821421A/en
Application granted granted Critical
Publication of CN113821421B publication Critical patent/CN113821421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/3409Recording 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 for performance assessment
    • G06F11/3433Recording 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 for performance assessment for load management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a system, a device and a storage medium for collecting server performance data, wherein the method comprises the following steps: collecting performance data of the bound servers through the collectors in a collection period; monitoring performance data of the collector; calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule; counting the performance scores of each collector in the collection period, and determining the binding number of the servers of each collector in the next collection period according to the score ratio of each collector; before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined binding number of the servers, and acquiring performance data of the bound servers through the acquisition device after the switching is completed. According to the invention, the binding server of the collector is periodically switched through monitoring and calculating the performance data of the collector, so that the collection efficiency of the collector is improved.

Description

Method, system, device and storage medium for collecting server performance data
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, an apparatus, and a storage medium for collecting server performance data.
Background
In the current society, the business of each company deployment is more and more, the number of used servers is increased along with the development of the business, so far, in terms of server operation and maintenance, server management software is an effective operation and maintenance means commonly used in the current market. The collection of the performance data is an important function of the server management software, and through monitoring the performance data, an alarm can be sent when each performance data of the server reaches a threshold value, and through statistical analysis of the performance data, the service condition of each service server can be checked, and service deployment on the server is reasonably distributed.
However, the current performance collection is a bottleneck for server management software, a general processing method is to use a plurality of collectors, when the number of the servers of the nanotubes is too large, the number of the collectors is increased, but the adoption of the method has a great disadvantage in that a plurality of servers are required to be used as the collectors, so that the use cost of users is increased.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a method, a system, a device and a storage medium for collecting server performance data, and the binding servers of the collectors are periodically switched through monitoring and calculating the performance data of the collectors, so that the collection efficiency of the collectors is improved.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme: a server performance data acquisition method comprises the following steps:
collecting performance data of the bound servers through the collectors in a collection period;
monitoring performance data of the collector;
calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule;
counting the performance scores of each collector in the collection period, and determining the binding number of the servers of each collector in the next collection period according to the score ratio of each collector;
before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined binding number of the servers, and acquiring performance data of the bound servers through the acquisition device after the switching is completed.
Further, the performance data of the collector includes: CPU usage, memory usage and network bandwidth usage of the collector.
Further, the calculating the performance score of each collector according to the performance data of the collector by using a preset calculating rule specifically includes:
calculating the performance score of the collector according to the CPU utilization rate, the memory utilization rate and the bandwidth utilization rate of the collector, wherein a calculation formula and a calculation rule are as follows:
G a =G C +G M +G S
wherein C is CPU utilization rate of the collector, G C Calculate a score for the CPU of the collector, G M Calculate a score for the memory of the collector, M u For the memory utilization rate of the collector, M a G is the total memory of the collector S For calculating score of network bandwidth of collector, S is utilization rate of network bandwidth of collector, G a Is the performance score of the collector.
In the above formula, the CPU of the collector calculates a score G C The full division is 1 minute, and when the CPU utilization rate G of the collector is less than seventy percent, the CPU of the collector calculates the score G C No further increase occurs. Memory calculation score G of collector M The full division is 1 minute, and when the size of the available memory of the collector is larger than 3G, the memory of the collector calculates a score G M No further increase occurs. Performance score G of collector a Calculating a score G for the CPU of the collector C Memory calculation score G of collector M Calculation score G of network bandwidth of collector S And (3) summing. In the actual monitoring process, according to the analysis of past experience values, the weights of the three calculation scores are respectively 1, 1 and 4, the CPU usage rate reaches 70%, the score reaches the highest, and the CPU used for collecting and processing the performance data of each server in the actual application is less than 20%; when the free memory reaches 3G, the score reaches the highest, and the memory used by the collector in practical application is not more than 2G; the network bandwidth utilization rate is not on line, and the larger the idle bandwidth is, the more favorable the data collection is.
Further, the counting of the performance score of each collector in the preset collection period, and determining the binding number of the server of each collector in the next collection period according to the score ratio of each collector specifically includes:
averaging all the performance scores of each collector in the collecting period to obtain the average performance score of each collector;
summing the average performance scores of all the collectors to obtain a total performance score of the collector;
calculating the average performance fraction of each collector and the total performance fraction value of the collectors, and recording the average performance fraction value and the total performance fraction value as the corresponding collector duty ratio;
the server binding number of each collector in the next collection period is obtained by multiplying the collector duty cycle of each collector by the total amount of the current servers.
Further, the method further comprises:
if a new collector is added in the collection period, information synchronization of the new collector is carried out through preset management software, and performance data of the new collector are monitored.
Further, the method further comprises:
and when the performance score of each collector is calculated according to the performance data of the collector by using a preset calculation rule in the next collection period, resetting the performance score of each collector in the previous collection period.
Further, the default duration of the acquisition period is one day.
Correspondingly, the invention also discloses a server performance data acquisition method system, which comprises the following steps:
the collector is used for collecting performance data of the server bound with the collector;
the monitoring module is used for collecting the performance data of all collectors in the collection period and reporting the performance data to the calculation analysis module;
the calculation analysis module is used for calculating the performance score of each collector according to the collected performance data by using a preset calculation rule; after the acquisition period is finished, counting the performance score of each acquisition device in the acquisition period, determining the server binding number of each acquisition device in the next acquisition period according to the score ratio of each acquisition device, and sending the server binding number to a monitoring module; and switching the servers bound to each collector by the monitoring module according to the number of the servers bound to each collector in the next collecting period, and starting the next collecting period.
The calculation and analysis module is specifically used for: analyzing and calculating CPU utilization rate, memory utilization rate and bandwidth utilization rate collected by the monitoring module; after the calculation analysis module obtains the analysis result, the binding relation between the next period of each collector and the server is issued by the monitoring module, and the collectors execute switching actions after receiving the command.
Correspondingly, the invention discloses a server performance data acquisition device, which comprises:
the memory is used for storing a server performance data acquisition program;
a processor for implementing the steps of the server performance data acquisition method as described in any one of the preceding claims when executing the server performance data acquisition program.
Accordingly, the present invention discloses a readable storage medium having stored thereon a server performance data acquisition program which when executed by a processor implements the steps of the server performance data acquisition method as described in any one of the preceding claims.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a method, a system, a device and a storage medium for collecting server performance data, which periodically switch the binding servers of the collectors through monitoring and calculating the performance data of the collectors, thereby improving the collector efficiency of the collectors without increasing the number of the collectors with the increase of the number of the servers each time, and effectively saving the use cost of deployment management software.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a system configuration diagram of the present invention.
In the figure, 1 is a collector; 2 is a monitoring module; and 3, a calculation and analysis module.
Detailed Description
The core of the invention is to provide a method for collecting server performance data, in the prior art, performance collection is a bottleneck for server management software, a general processing method is to use a plurality of collectors, when the number of the servers of the nanotubes is too large, the number of the collectors can be increased, but the method has great disadvantages, a plurality of servers are needed to be used as the collectors, and the use cost of users is increased.
The method for collecting the performance data of the server provided by the invention comprises the steps of firstly actively collecting the performance data of the CPU utilization rate, the memory utilization rate and the network bandwidth utilization rate of each collector in a collection period, simultaneously, managing the new collector at any time, and immediately collecting the performance data of the new collector after the new collector is added by management software. And then, calculating the score of the collected performance data, waiting until the collection period, counting the proportion of the score of each collector in the score of all collectors according to the average score of each collector calculated by a preset algorithm, and determining the binding number of the servers of each collector in the next collection period. And finally, switching the servers bound to each collector before starting the next acquisition period. Therefore, the invention periodically switches the binding server of the collector through monitoring and calculating the performance data of the collector, thereby improving the collection efficiency of the collector.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
as shown in fig. 1, the present embodiment provides a server performance data acquisition method, which includes the following steps:
s1: and collecting performance data of the bound servers through the collectors in a collection period.
The acquisition period is set by user definition, and the default time length is one day.
S2: performance data of the collectors is monitored.
Wherein, the performance data of collector includes: CPU usage, memory usage and network bandwidth usage of the collector.
The method comprises the steps of periodically collecting performance data of the bound servers through the collectors, and monitoring the service condition of the collectors in a collection period, wherein the purpose is to provide reference data for analyzing the service condition of the collectors after the collection period is finished.
If a new collector is added in the collection period, information synchronization of the new collector is carried out through preset management software, and performance data of the new collector are monitored. And adding a new collector in real time to collect performance data of the bound server, and monitoring the service condition of the new collector in a collection period.
S3: and calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule.
This step is performed immediately after the performance data of the collector is collected. The method specifically comprises the following steps:
calculating the performance score of the collector according to the CPU utilization rate, the memory utilization rate and the bandwidth utilization rate of the collector, wherein a calculation formula and a calculation rule are as follows:
G a =G C +G M +G S
wherein C is CPU utilization rate of the collector, G C Calculate a score for the CPU of the collector, G M Calculate a score for the memory of the collector, M u For the memory utilization rate of the collector, M a G is the total memory of the collector S For calculating score of network bandwidth of collector, S is utilization rate of network bandwidth of collector, G a Is the performance score of the collector.
In the above formula, the CPU of the collector calculates a score G C The full division is 1 minute, and when the CPU utilization rate C of the collector is less than seventy percent, the CPU of the collector calculates a score G C No further increase occurs. Memory calculation score G of collector M The full division is 1 minute, and when the size of the available memory of the collector is larger than 3G, the memory of the collector calculates a score G M No further increase occurs. Performance score G of collector a Calculating a score G for the CPU of the collector C Memory calculation score G of collector M Calculation score G of network bandwidth of collector S And (3) summing. In the actual monitoring process, according to the analysis of past experience values, the weights of the three calculation scores are respectively 1, 1 and 4, the CPU usage rate reaches 70%, the score reaches the highest, and the CPU used for collecting and processing the performance data of each server in the actual application is less than 20%; when the free memory reaches 3G, the score reaches the highest, and the memory used by the collector in practical application is not more than 2G; network bandwidth utilizationThe utilization rate is not online, and the larger the idle bandwidth is, the more favorable the collection of data.
S4: and counting the performance scores of each collector in the collection period, and determining the server binding number of each collector in the next collection period according to the score ratio of each collector.
This step is performed after the acquisition cycle has ended. The method specifically comprises the following steps:
firstly, averaging all the performance scores of each collector in a collecting period to obtain an average performance score of each collector; then, summing the average performance scores of all the collectors to obtain a total performance score of the collector; and calculating the average performance fraction of each collector and the total performance fraction value of the collectors, and recording the average performance fraction value and the total performance fraction value of each collector as the corresponding collector duty ratio. And finally, multiplying the collector duty ratio of each collector by the total amount of the current servers to obtain the binding number of the servers in the next collecting period of each collector.
S5: and before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined server binding number.
In addition, when the performance score of each collector is calculated according to the performance data of the collector by using a preset calculation rule in the next collection period, the performance score of each collector in the previous collection period is cleared.
The embodiment provides a method for collecting performance data of a server, by monitoring and calculating the performance data of the collector, the binding servers of the collector are periodically switched, so that the collection efficiency of the collector is improved, the number of the collectors is not required to be simply increased each time along with the improvement of the number of the servers, and the use cost of deployment management software is effectively saved.
Embodiment two:
based on the first embodiment, as shown in fig. 2, the invention also discloses a server performance data acquisition method system, which comprises the following steps: collector 1, monitoring module 2 and calculation analysis module 3.
The number of collectors 1 is plural, and each collector 1 is used for collecting performance data of a plurality of servers bound with the pairs of collectors.
And the monitoring module 2 is used for collecting the performance data of all the collectors 1 in the collection period and reporting the performance data to the calculation and analysis module 3. The monitoring module 2 periodically collects the CPU usage rate, the memory usage rate, the total memory and the network bandwidth usage rate of the collector according to the collection period set by the user, the data are submitted to the calculation analysis module 3 and calculated by the calculation analysis module 3, and meanwhile, the monitoring module 2 also receives a request of rebinding the collector to the server sent by the calculation analysis module 3 to dynamically adjust the binding server of the collector.
A calculation analysis module 3 for calculating the performance score of each collector 1 from the collected performance data using preset calculation rules. And after the acquisition period is finished, counting the performance score of each acquisition unit 1 in the acquisition period, determining the server binding number of each acquisition unit 1 in the next acquisition period according to the score ratio of each acquisition unit 1, and transmitting the server binding number to the monitoring module 2. And switching the servers bound to each collector according to the number of the servers bound to each collector in the next collecting period through the monitoring module 2, and starting the next collecting period.
The calculation analysis module 3 calculates scores according to various performance data reported by the monitoring module 3, calculates the performance data of each collector periodically collected by the monitoring module 2, averages all scores of each collector in the current collection period after the collection period is finished, then determines the new server distribution number of each collector according to the proportion, informs the monitoring module 2 of the new server binding relation according to the distribution number, and the monitoring module 2 redistributes the binding of each collector, and resumes the calculation of the new round in the next collection period after the switching is finished.
It can be seen that the computational analysis module 3 mainly functions in two ways: the first function is the analysis and calculation of CPU usage, memory usage and bandwidth usage collected by the monitoring module 2. The second function is to be used for the switching adjustment of each collector binding server, calculate analysis module 3 after obtaining analysis result, send server collection quantity and binding node information of each collector's next cycle through monitor module 2, the collector carries out the switching action after receiving the command.
The embodiment provides a server performance data acquisition method system, which monitors and evaluates the performance of a collector and adjusts the binding of the collector and a server through a monitoring module and a calculation and analysis module. The monitoring module collects CPU utilization rate, memory utilization rate, total memory and network bandwidth utilization rate of the collector according to a user-defined collection period; the calculation analysis module calculates scores according to various performance data reported by the monitoring module, dynamically redistributes the number of servers of each collector according to the scores of each collector, informs the monitoring module of the server which is required to be rebindd by each collector, and truly redistributes the servers bound by the collectors by the monitoring module.
Embodiment III:
the embodiment discloses a server performance data acquisition device, which comprises a processor and a memory; the processor executes the server performance data acquisition program stored in the memory to realize the following steps:
1. and collecting performance data of the bound servers through the collectors in a collection period.
2. Performance data of the collectors is monitored.
3. And calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule.
4. And counting the performance scores of each collector in the collection period, and determining the server binding number of each collector in the next collection period according to the score ratio of each collector.
5. And before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined server binding number.
Further, the server performance data acquisition device in this embodiment may further include:
the input interface is used for acquiring the server performance data acquisition program imported from the outside, storing the acquired server performance data acquisition program into the memory, and acquiring various instructions and parameters transmitted by the external terminal equipment and transmitting the various instructions and parameters into the processor so that the processor can develop corresponding processing by utilizing the various instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the server performance data acquisition device and the external server so that the server performance data acquisition device can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user by knocking the key cap in real time.
And the display is used for running the related information of the short-circuit positioning process of the power supply line of the server to display in real time.
A mouse may be used to assist a user in inputting data and to simplify user operations.
The embodiment provides a server performance data acquisition device, through the monitoring and the calculation to the performance data of collector, the binding server of collector is switched to the periodicity to promoted the collection efficiency of collector, and need not at every turn along with the promotion of server quantity, just the simple quantity that increases the collector has effectively saved the use cost of deployment management software.
Embodiment four:
the present embodiment also discloses a readable storage medium, where the readable storage medium includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a server performance data acquisition program which when executed by a processor performs the steps of:
1. and collecting performance data of the bound servers through the collectors in a collection period.
2. Performance data of the collectors is monitored.
3. And calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule.
4. And counting the performance scores of each collector in the collection period, and determining the server binding number of each collector in the next collection period according to the score ratio of each collector.
5. And before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined server binding number.
The embodiment provides a readable storage medium, which can periodically collect CPU utilization rate, memory utilization rate, total memory and network bandwidth utilization rate of a collector as performance data of the collector; and calculating scores according to the performance data, integrating the scores of the collectors in the period to determine a new server allocation mode, and collecting the performance data of the server in the next period by using the new server allocation mode.
In summary, the invention periodically switches the binding server of the collector by monitoring and calculating the performance data of the collector, thereby improving the collector efficiency of the collector.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in one functional module.
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. The software modules may be disposed 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.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the system, the device and the readable storage medium for collecting the server performance data provided by the invention are described in detail above. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (7)

1. The server performance data acquisition method is characterized by comprising the following steps of:
collecting performance data of the bound servers through the collectors in a collection period;
monitoring performance data of the collector;
calculating the performance score of each collector according to the performance data of the collector by using a preset calculation rule;
counting the performance scores of each collector in the collection period, and determining the binding number of the servers of each collector in the next collection period according to the score ratio of each collector;
before the next acquisition period, carrying out binding switching between the acquisition device and the server according to the determined server binding number;
the performance data of the collector comprises: CPU utilization rate, memory utilization rate and network bandwidth utilization rate of the collector;
the statistics of the performance score of each collector in the collection period is carried out, and the server binding number of each collector in the next collection period is determined according to the score ratio of each collector, which specifically comprises the following steps:
averaging all the performance scores of each collector in the collecting period to obtain the average performance score of each collector;
summing the average performance scores of all the collectors to obtain a total performance score of the collector;
calculating the average performance fraction of each collector and the total performance fraction value of the collectors, and recording the average performance fraction value and the total performance fraction value as the corresponding collector duty ratio;
obtaining the binding number of the servers in the next acquisition period by multiplying the acquisition unit duty ratio of each acquisition unit by the total amount of the current servers;
if a new collector is added in the collection period, information synchronization of the new collector is carried out through preset management software, and performance data of the new collector are monitored.
2. The method for collecting performance data of a server according to claim 1, wherein the calculating the performance score of each collector according to the performance data of the collector using a preset calculation rule specifically comprises:
calculating the performance score of the collector according to the CPU utilization rate, the memory utilization rate and the bandwidth utilization rate of the collector, wherein a calculation formula and a calculation rule are as follows:
wherein,for CPU utilization of collector, +.>Calculate a score for the CPU of the harvester, +.>Calculate a score for the memory of the harvester, +.>For the memory usage of the collector, +.>Is the total memory of the collector +.>Calculate score for network bandwidth of collector, +.>For the network bandwidth utilization of the collector, < >>Is the performance score of the collector.
3. The server performance data collection method according to claim 1, further comprising:
and when the performance score of each collector is calculated according to the performance data of the collector by using a preset calculation rule in the next collection period, resetting the performance score of each collector in the previous collection period.
4. The method of claim 1, wherein the default duration of the acquisition period is one day.
5. The server performance data acquisition method system is characterized by comprising the following steps:
the collector is used for collecting performance data of the server bound with the collector;
the monitoring module is used for collecting the performance data of all collectors in the collection period and reporting the performance data to the calculation analysis module;
the calculation analysis module is used for calculating the performance score of each collector according to the collected performance data by using a preset calculation rule; after the acquisition period is finished, counting the performance score of each acquisition device in the acquisition period, determining the server binding number of each acquisition device in the next acquisition period according to the score ratio of each acquisition device, and sending the server binding number to a monitoring module; switching the servers bound by each collector according to the number of the servers bound by each collector in the next collecting period by a monitoring module, and starting the next collecting period;
the performance data of the collector comprises: CPU utilization rate, memory utilization rate and network bandwidth utilization rate of the collector;
the calculation and analysis module is specifically used for:
averaging all the performance scores of each collector in the collecting period to obtain the average performance score of each collector;
summing the average performance scores of all the collectors to obtain a total performance score of the collector;
calculating the average performance fraction of each collector and the total performance fraction value of the collectors, and recording the average performance fraction value and the total performance fraction value as the corresponding collector duty ratio;
obtaining the binding number of the servers in the next acquisition period by multiplying the acquisition unit duty ratio of each acquisition unit by the total amount of the current servers;
the monitoring module is also used for: if a new collector is added in the collection period, information synchronization of the new collector is carried out through preset management software, and performance data of the new collector are monitored.
6. A server performance data acquisition device, comprising:
the memory is used for storing a server performance data acquisition program;
a processor for implementing the steps of the server performance data acquisition method according to any one of claims 1 to 4 when executing the server performance data acquisition program.
7. A readable storage medium, characterized by: the readable storage medium has stored thereon a server performance data acquisition program which, when executed by a processor, implements the steps of the server performance data acquisition method according to any one of claims 1 to 4.
CN202110998457.6A 2021-08-27 2021-08-27 Method, system, device and storage medium for collecting server performance data Active CN113821421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110998457.6A CN113821421B (en) 2021-08-27 2021-08-27 Method, system, device and storage medium for collecting server performance data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110998457.6A CN113821421B (en) 2021-08-27 2021-08-27 Method, system, device and storage medium for collecting server performance data

Publications (2)

Publication Number Publication Date
CN113821421A CN113821421A (en) 2021-12-21
CN113821421B true CN113821421B (en) 2023-12-22

Family

ID=78923243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110998457.6A Active CN113821421B (en) 2021-08-27 2021-08-27 Method, system, device and storage medium for collecting server performance data

Country Status (1)

Country Link
CN (1) CN113821421B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024000590A1 (en) * 2022-07-01 2024-01-04 华为技术有限公司 Policy selection method and apparatus
CN115811537A (en) * 2023-02-20 2023-03-17 江苏金恒信息科技股份有限公司 Resource adjusting method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019011142A1 (en) * 2017-07-11 2019-01-17 阿里巴巴集团控股有限公司 Network link switching method and system
CN109522183A (en) * 2018-10-23 2019-03-26 东软集团股份有限公司 Instrument operating condition monitoring method and system, collector, server and storage medium
CN110569168A (en) * 2019-08-26 2019-12-13 腾讯科技(深圳)有限公司 data interaction method, related equipment and storage medium
CN111124673A (en) * 2019-12-11 2020-05-08 中盈优创资讯科技有限公司 Data acquisition system and method
CN111865817A (en) * 2020-06-23 2020-10-30 烽火通信科技股份有限公司 Load balancing control method, device and equipment for remote measuring collector and storage medium
CN112115016A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Application performance monitoring system
CN112463378A (en) * 2020-11-27 2021-03-09 北京浪潮数据技术有限公司 Server asset scanning method, system, electronic equipment and storage medium
CN112559286A (en) * 2020-12-09 2021-03-26 广州海量数据库技术有限公司 Data acquisition method and device, electronic equipment and computer readable storage medium
CN112965811A (en) * 2021-02-03 2021-06-15 福建天泉教育科技有限公司 Monitoring data optimization method and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019011142A1 (en) * 2017-07-11 2019-01-17 阿里巴巴集团控股有限公司 Network link switching method and system
CN109522183A (en) * 2018-10-23 2019-03-26 东软集团股份有限公司 Instrument operating condition monitoring method and system, collector, server and storage medium
CN110569168A (en) * 2019-08-26 2019-12-13 腾讯科技(深圳)有限公司 data interaction method, related equipment and storage medium
CN111124673A (en) * 2019-12-11 2020-05-08 中盈优创资讯科技有限公司 Data acquisition system and method
CN111865817A (en) * 2020-06-23 2020-10-30 烽火通信科技股份有限公司 Load balancing control method, device and equipment for remote measuring collector and storage medium
CN112115016A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Application performance monitoring system
CN112463378A (en) * 2020-11-27 2021-03-09 北京浪潮数据技术有限公司 Server asset scanning method, system, electronic equipment and storage medium
CN112559286A (en) * 2020-12-09 2021-03-26 广州海量数据库技术有限公司 Data acquisition method and device, electronic equipment and computer readable storage medium
CN112965811A (en) * 2021-02-03 2021-06-15 福建天泉教育科技有限公司 Monitoring data optimization method and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能配电变压器监测软件***的设计与实现;曹旺斌;尹成群;谢志远;孙利梅;聂胜阳;;电测与仪表(第06期);37-41 *

Also Published As

Publication number Publication date
CN113821421A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN113821421B (en) Method, system, device and storage medium for collecting server performance data
CN109981744B (en) Data distribution method and device, storage medium and electronic equipment
CN105979532B (en) Performance capacity analysis early warning method and device of service processing system
CN102801792A (en) Statistical-prediction-based automatic cloud CDN (Content Delivery Network) resource automatic deployment method
CN102298542A (en) Application program quality determination method and system
CN110839069B (en) Node data deployment method, node data deployment system and medium
CN111104303A (en) Server index data acquisition method, device and medium
CN106470123A (en) Log collecting method, client, server and electronic equipment
CN110784929A (en) Access resource allocation method, device, equipment and system
CN106534239A (en) Method and device for acquiring perception data
CN105357026B (en) A kind of resource information collection method and calculate node
CN117130851B (en) High-performance computing cluster operation efficiency evaluation method and system
CN111756589A (en) Cloud resource management method and device, cloud server and storage medium
CN102547789B (en) Early warning method, device and system for quality of peer-to-peer service
CN108923426B (en) Load identification method, device, equipment and computer readable storage medium
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
CN115883626A (en) Internet-based multifunctional information technology consultation service system
CN114896296A (en) Cloud service resource configuration method and device, electronic equipment and computer readable medium
CN115860366A (en) Community robot intelligent coordination control method and system and readable storage medium
CN112003900B (en) Method and system for realizing high service availability under high-load scene in distributed system
CN111767188B (en) Training task monitoring method and device
CN115333917A (en) CDN anomaly detection method and device
CN108399031A (en) The method and apparatus for determining interface layout mode
CN112667465A (en) Multi-cluster operation monitoring method, device and system and readable storage medium
CN117395198B (en) Congestion alarm method and system for power communication network

Legal Events

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