CN113821421A - Server performance data acquisition method, system, device and storage medium - Google Patents

Server performance data acquisition method, system, device and storage medium Download PDF

Info

Publication number
CN113821421A
CN113821421A CN202110998457.6A CN202110998457A CN113821421A CN 113821421 A CN113821421 A CN 113821421A CN 202110998457 A CN202110998457 A CN 202110998457A CN 113821421 A CN113821421 A CN 113821421A
Authority
CN
China
Prior art keywords
collector
performance data
server
score
performance
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.)
Granted
Application number
CN202110998457.6A
Other languages
Chinese (zh)
Other versions
CN113821421B (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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan 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

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/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)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (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 server through a collector in a collection period; monitoring performance data of a collector; calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule; counting the performance score of each collector in an acquisition period, and determining the binding number of servers of each collector in the next acquisition period according to the score ratio of each collector; and before the next acquisition cycle, performing binding switching between the collector and the server according to the determined binding number of the servers, and acquiring performance data of the bound servers through the collector after the switching is completed. According to the invention, the binding server of the collector is periodically switched by monitoring and calculating the performance data of the collector, so that the collection efficiency of the collector is improved.

Description

Server performance data acquisition method, system, device and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system, a device and a storage medium for collecting server performance data.
Background
In the present society, more and more services are deployed by various companies, the number of servers used is increased along with the development of the services, and so far, in the aspect of server operation and maintenance, server management software is an effective operation and maintenance means commonly used in the market at present. The performance data acquisition is an important function of the server management software, and can send an alarm when each performance data of the server reaches a threshold value through monitoring the performance data, check the service condition of each service server through statistical analysis of the performance data, and reasonably distribute service deployment on the server.
However, performance collection is a bottleneck for server management software at present, a general processing method is to use a plurality of collectors, and when the number of managed servers is too large, the number of collectors is increased.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, a device and a storage medium for collecting server performance data, wherein the binding server of a collector is periodically switched by monitoring and calculating the performance data of the collector, so as to improve the collection efficiency of the collector.
In order to achieve the purpose, the invention is realized by the following technical scheme: a server performance data acquisition method comprises the following steps:
collecting performance data of the bound server through a collector in a collection period;
monitoring performance data of a collector;
calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule;
counting the performance score of each collector in an acquisition period, and determining the binding number of servers of each collector in the next acquisition period according to the score ratio of each collector;
and before the next acquisition cycle, performing binding switching between the collector and the server according to the determined binding number of the servers, and acquiring performance data of the bound servers through the collector after the switching is completed.
Further, the performance data of the collector comprises: CPU utilization rate, memory utilization rate and network bandwidth utilization rate of the collector.
Further, the calculating the performance score of each collector according to the performance data of the collector by using a preset calculation 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:
Figure BDA0003234644990000021
Figure BDA0003234644990000022
Figure BDA0003234644990000023
Ga=GC+GM+GS
wherein C is CPU utilization of the collector, GCCalculate the score, G, for the CPU of the harvesterMCalculate score for memory of collector, MuIs the memory usage rate, M, of the collectoraIs the total memory of the collector, GSCalculating the score of the network bandwidth of the collector, S is the network bandwidth utilization rate of the collector, GaIs the performance score of the collector.
In the above formula, the CPU of the collector calculates the score GCThe full score is 1, when the CPU utilization rate G of the collector is less than seventy percent, the CPU of the collector calculates the score GCNo longer increased. Memory calculation score G of collectorMThe full score is 1, when the size of the available memory of the collector is larger than 3G, the memory of the collector calculates the score GMNo longer increased. Performance score of collector GaCalculate score G for the CPU of the harvesterCAnd the memory calculation score G of the collectorMAnd the calculation score G of the network bandwidth of the collectorSAnd (4) summing. In the actual monitoring process, according to the analysis of past empirical values, the weights of the three calculation scores are respectively 1, 1 and 4, the utilization rate of the CPU reaches 70 percent, the score reaches the highest, and the CPU used for collecting and processing the performance data of each server in actual application is less than 20 percent; when the number of the vacant memories reaches 3G, the score reaches the highest, and the number of the memories used by the collector in practical application does not exceed 2G; the network bandwidth utilization rate is not on-line, and the larger the idle bandwidth is, the more beneficial to data collection is.
Further, the counting the performance score of each collector in a preset collection period, and determining the server binding number 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 collection 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 collectors;
calculating the ratio of the average performance score of each collector to the total performance score of the collectors, and recording as the corresponding collector ratio;
and multiplying the collector occupation ratio of each collector by the total amount of the current server to obtain the binding amount of the server of each collector in the next collection period.
Further, the method further comprises:
and if a new collector is added in the collection period, carrying out information synchronization of the new collector through preset management software, and monitoring the performance data of the new collector.
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, the performance score of each collector in the previous collection period is cleared.
Further, the default duration of the collection period is one day.
Correspondingly, the invention also discloses a server performance data acquisition method and system, which comprises the following steps:
the collector is used for collecting the performance data of the server bound with the collector;
the monitoring module is used for collecting the performance data of all the collectors in a collecting period and reporting the performance data to the calculation and 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 binding number of servers of each acquisition device in the next acquisition period according to the score ratio of each acquisition device, and sending the binding number to a monitoring module; and switching the servers bound by each collector through the monitoring module according to the binding number of the servers in the next collection period of each collector, and starting the next collection period.
The calculation analysis module is specifically configured to: analyzing and calculating the CPU utilization rate, the memory utilization rate and the bandwidth utilization rate collected by the monitoring module; and after obtaining the analysis result, the calculation analysis module issues the binding relationship between the next period of each collector and the server through the monitoring module, and the collector executes the switching action after receiving the command.
Correspondingly, the invention discloses a server performance data acquisition device, which comprises:
a memory for storing a server performance data acquisition program;
a processor for implementing the steps of the server performance data collection method according to any one of the above when executing the server performance data collection program.
Accordingly, the present invention discloses a readable storage medium on which a server performance data acquisition program is stored, which when executed by a processor implements the steps of the server performance data acquisition method as described in any of the above.
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 binding servers of a collector by monitoring and calculating the performance data of the collector, thereby improving the collector efficiency of the collector, and only simply increasing the number of the collectors without increasing the number of the servers each time, thereby effectively saving the use cost of deploying management software.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a system block diagram of the present invention.
In the figure, 1 is a collector; 2 is a monitoring module; and 3, a calculation analysis module.
Detailed Description
The core of the invention is to provide a method for collecting performance data of a server, in the prior art, performance collection is a bottleneck for server management software, a universal processing method is to use a plurality of collectors, when the number of managed servers is too large, the number of collectors can be increased, but the method has great disadvantages, a plurality of servers are required to be used as collectors, and the use cost of a user is increased.
The method for collecting the performance data of the server 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 a 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 scores of the collected performance data, and when the collection period is reached, calculating the average score of each collector according to a preset algorithm, counting the proportion of the score of each collector in the scores of all the collectors, and determining the binding number of the servers of each collector in the next collection period. And finally, switching the servers bound by each collector before starting the next collection period. Therefore, the invention periodically switches the binding server of the collector by monitoring and calculating the performance data of the collector, thereby improving the collection efficiency of the collector.
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. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
as shown in fig. 1, the embodiment provides a server performance data acquisition method, including the following steps:
s1: and collecting the performance data of the bound server through the collector in a collection period.
The collection period is set by a user in a self-defined mode, and the default time length is one day.
S2: and monitoring performance data of the collector.
Wherein, the performance data of the collector comprises: CPU utilization rate, memory utilization rate and network bandwidth utilization rate of the collector.
The steps are that the performance data of the bound server is periodically collected through the collector, and the service condition of the collector is monitored in the collection period, so that reference data are provided for analyzing the service condition of the collector after the collection period is finished.
And if a new collector is added in the collection period, carrying out information synchronization of the new collector through preset management software, and monitoring the performance data of the new collector. Namely, a new collector is added in real time to collect performance data of the bound server, and the service condition of the new collector is monitored in a collection period.
S3: and calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule.
The step is executed 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:
Figure BDA0003234644990000071
Figure BDA0003234644990000072
Figure BDA0003234644990000073
Ga=GC+GM+GS
wherein C is CPU utilization of the collector, GCCalculate the score, G, for the CPU of the harvesterMCalculate score for memory of collector, MuIs the memory usage rate, M, of the collectoraIs the total memory of the collector, GSCalculating the score of the network bandwidth of the collector, S is the network bandwidth utilization rate of the collector, GaIs the performance score of the collector.
In the above formula, the CPU of the collector calculates the score GCThe full score is 1, when the CPU utilization rate C of the collector is less than seventy percent, the CPU of the collector calculates the score GCNo longer increased. Memory calculation score G of collectorMThe full score is 1, when the size of the available memory of the collector is larger than 3G, the memory of the collector calculates the score GMNo longer increased. Performance score of collector GaCalculate score G for the CPU of the harvesterCAnd the memory calculation score G of the collectorMAnd the calculation score G of the network bandwidth of the collectorSAnd (4) summing. In the actual monitoring process, according to the analysis of past empirical values, the weights of the three calculation scores are respectively 1, 1 and 4, the utilization rate of the CPU reaches 70 percent, the score reaches the highest, and the CPU used for collecting and processing the performance data of each server in actual application is less than 20 percent; when the number of the vacant memories reaches 3G, the score reaches the highest, and the number of the memories used by the collector in practical application does not exceed 2G; the network bandwidth utilization rate is not on-line, and the larger the idle bandwidth is, the more beneficial to data collection is.
S4: and counting the performance score of each collector in the acquisition period, and determining the binding number of the servers of each collector in the next acquisition period according to the score ratio of each collector.
This step is performed after the end of the acquisition cycle. The method specifically comprises the following steps:
firstly, averaging all performance scores of each collector in a collection period to obtain the average performance score of each collector; then, summing the average performance scores of all the collectors to obtain the total performance score of the collectors; and calculating the ratio of the average performance score of each collector to the total performance score of the collectors, and recording the ratio as the corresponding collector ratio. And finally, multiplying the collector occupation ratio of each collector with the total amount of the current server to obtain the binding amount of the server of each collector in the next collection period.
S5: and before the next acquisition period, performing binding switching between the collector and the server according to the determined binding number of the server.
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 acquiring performance data of a server, which is characterized in that binding servers of collectors are periodically switched by monitoring and calculating the performance data of the collectors, so that the acquisition efficiency of the collectors is improved, the quantity of the collectors is not increased along with the increase of the quantity of the servers at each time, and the use cost of deployment management software is effectively saved.
Example two:
based on the first embodiment, as shown in fig. 2, the invention also discloses a server performance data acquisition method and system, which includes: the device comprises a collector 1, a monitoring module 2 and a calculation analysis module 3.
The number of the collectors 1 is multiple, and each collector 1 is used for collecting performance data of a plurality of servers bound with the collector 1.
And the monitoring module 2 is used for acquiring the performance data of all the collectors 1 in an acquisition period and reporting the performance data to the calculation and analysis module 3. The monitoring module 2 can periodically collect the CPU utilization rate, the memory utilization rate, the total memory and the network bandwidth utilization rate of the collector according to a collection period set by a user, these data are submitted to the calculation and analysis module 3, and are calculated by the calculation and analysis module 3, and meanwhile, the monitoring module 2 can also receive a request sent by the calculation and analysis module 3 to rebind the collector to the server, and dynamically adjust the collector binding server.
And the calculation analysis module 3 is used for calculating the performance score of each collector 1 according to the collected performance data by using a preset calculation rule. And after the acquisition period is finished, counting the performance score of each collector 1 in the acquisition period, determining the server binding number of each collector 1 in the next acquisition period according to the score ratio of each collector 1, and sending the server binding number to the monitoring module 2. And switching the servers bound by each collector through the monitoring module 2 according to the binding number of the servers in the next collection period of each collector, and starting the next collection 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 the scores of each collector of the current collection period after the collection period is finished, determines the new server distribution quantity of each collector according to the proportion, informs the monitoring module 2 of the new server binding relationship according to the distribution quantity, redistributes the binding of each collector by the monitoring module 2, and restarts a new round of calculation in the next collection period after the switching is finished.
As can be seen, the computational analysis module 3 has two main roles: the first function is to analyze and calculate the CPU usage, the memory usage, and the bandwidth usage collected by the monitoring module 2. The second function is used for switching adjustment of binding servers of each collector, after the calculation analysis module 3 obtains an analysis result, the collection quantity and binding node information of the servers in the next period of each collector are issued through the monitoring module 2, and the collectors execute switching actions after receiving commands.
The embodiment provides a server performance data acquisition method and system, which realize the monitoring and evaluation of collector performance and the binding adjustment of a collector and a server through a monitoring module and a calculation analysis module. The monitoring module collects the CPU utilization rate, the memory utilization rate, the total memory and the network bandwidth utilization rate of the collector according to the collection period defined by the user; 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 by integrating the scores of each collector, informs the monitoring module of the servers which need to be rebinding of each collector, and redistributes the servers bound by the collectors by the monitoring module.
Example three:
the embodiment discloses a server performance data acquisition device, which comprises a processor and a memory; wherein the processor implements the following steps when executing the server performance data acquisition program stored in the memory:
1. and collecting the performance data of the bound server through the collector in a collection period.
2. And monitoring performance data of the collector.
3. And calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule.
4. And counting the performance score of each collector in the acquisition period, and determining the binding number of the servers of each collector in the next acquisition period according to the score ratio of each collector.
5. And before the next acquisition period, performing binding switching between the collector and the server according to the determined binding number of the server.
Further, the server performance data acquisition apparatus in this embodiment may further include:
and the input interface is used for acquiring a server performance data acquisition program imported from the outside, storing the acquired server performance data acquisition program into the memory, and also used for acquiring various instructions and parameters transmitted by external terminal equipment and transmitting the instructions and parameters to the processor so that the processor performs corresponding processing by using the instructions and the 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 an external server so that the server performance data acquisition device can mount the mirror image file into 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 through real-time key cap knocking.
And the display is used for displaying relevant information in the short circuit positioning process of the power supply line of the running server in real time.
The mouse can be used for assisting a user in inputting data and simplifying the operation of the user.
This embodiment provides a server performance data collection system, through the control and the calculation to the performance data of collector, the periodic binding server who switches the collector to the collection efficiency of collector has been promoted, and need not be at every turn along with the promotion of server quantity, just the quantity of pure increase collector, has effectively saved the use cost who deploys management software.
Example four:
the present embodiments also disclose 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, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the art. The readable storage medium has stored therein a server performance data acquisition program that when executed by a processor performs the steps of:
1. and collecting the performance data of the bound server through the collector in a collection period.
2. And monitoring performance data of the collector.
3. And calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule.
4. And counting the performance score of each collector in the acquisition period, and determining the binding number of the servers of each collector in the next acquisition period according to the score ratio of each collector.
5. And before the next acquisition period, performing binding switching between the collector and the server according to the determined binding number of the server.
The embodiment provides a readable storage medium, which can periodically collect the CPU utilization rate, the memory utilization rate, the total memory and the network bandwidth utilization rate of a collector as performance data of the collector; and calculating scores according to the performance data, determining a new server distribution mode according to the scores of all the collectors in the comprehensive period, and collecting the performance data of the server in the next period by using the new server distribution 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.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
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.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units are integrated into 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. 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.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method, system, device and readable storage medium for collecting server performance data provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. 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.

Claims (10)

1. A server performance data acquisition method is characterized by comprising the following steps:
collecting performance data of the bound server through a collector in a collection period;
monitoring performance data of a collector;
calculating the performance score of each collector according to the performance data of the collectors by using a preset calculation rule;
counting the performance score of each collector in an acquisition period, and determining the binding number of servers of each collector in the next acquisition period according to the score ratio of each collector;
and before the next acquisition period, performing binding switching between the collector and the server according to the determined binding number of the server.
2. The method of claim 1, wherein the performance data of the collector comprises: CPU utilization rate, memory utilization rate and network bandwidth utilization rate of the collector.
3. The method for collecting the performance data of the server according to claim 2, wherein the calculating the performance score of each collector according to the performance data of the collector by 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:
Figure FDA0003234644980000011
Figure FDA0003234644980000012
Figure FDA0003234644980000013
Ga=GC+GM+GS
wherein C is CPU utilization of the collector, GCCalculate the score, G, for the CPU of the harvesterMCalculate score for memory of collector, MuIs the memory usage rate, M, of the collectoraIs the total memory of the collector, GSCalculating the score of the network bandwidth of the collector, S is the network bandwidth utilization rate of the collector, GaIs the performance score of the collector.
4. The method for collecting the server performance data according to claim 2, wherein the counting the performance score of each collector in a preset collection period, and determining the number of servers bound by each collector in the next collection period according to the score ratio of each collector specifically comprises:
averaging all the performance scores of each collector in the collection 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 collectors;
calculating the ratio of the average performance score of each collector to the total performance score of the collectors, and recording as the corresponding collector ratio;
and multiplying the collector occupation ratio of each collector by the total amount of the current server to obtain the binding amount of the server of each collector in the next collection period.
5. The server performance data collection method of claim 1, further comprising: and if a new collector is added in the collection period, carrying out information synchronization of the new collector through preset management software, and monitoring the performance data of the new collector.
6. The server performance data collection method of 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, the performance score of each collector in the previous collection period is cleared.
7. The server performance data collection method of claim 1, wherein the default duration of the collection period is one day.
8. A server performance data acquisition method system is characterized by comprising the following steps:
the collector is used for collecting the performance data of the server bound with the collector;
the monitoring module is used for collecting the performance data of all the collectors in a collecting period and reporting the performance data to the calculation and 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 binding number of servers of each acquisition device in the next acquisition period according to the score ratio of each acquisition device, and sending the binding number to a monitoring module; and switching the servers bound by each collector through the monitoring module according to the binding number of the servers in the next collection period of each collector, and starting the next collection period.
9. A server performance data acquisition device, comprising:
a memory for storing a server performance data acquisition program;
a processor for implementing the steps of the server performance data collection method according to any one of claims 1 to 7 when executing the server performance data collection program.
10. 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 of any one of claims 1 to 7.
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 true CN113821421A (en) 2021-12-21
CN113821421B 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)

Cited By (2)

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

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
曹旺斌;尹成群;谢志远;孙利梅;聂胜阳;: "智能配电变压器监测软件系统的设计与实现", 电测与仪表, no. 06, pages 37 - 41 *

Cited By (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

Also Published As

Publication number Publication date
CN113821421B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN108989463B (en) Data processing method and device
CN113821421A (en) Server performance data acquisition method, system, device and storage medium
WO2021051839A1 (en) Data processing method, apparatus and system and storage medium
CN108880934B (en) Data flow statistical method and device based on block chain
CN110839069A (en) Node data deployment method, node data deployment system and medium
CN115267644A (en) Method and device for detecting misalignment of electric energy meter
CN114839433A (en) Electricity stealing behavior determining method and device and electronic equipment
CN116231633A (en) Method, device, equipment and storage medium for monitoring carbon emission of power distribution network
CN112702219A (en) Internet of things network monitoring method, device, equipment and storage medium
KR20180003516A (en) Server, Communicating Device and System Having a Function of Managing Power Demand and Method of Managing Power Usage Thereof
CN115883626A (en) Internet-based multifunctional information technology consultation service system
KR20160143455A (en) Server, Communicating Device and System Having a Function of Managing Power Demand and Method of Managing Power Usage Thereof
CN113722174A (en) PCIe bandwidth real-time monitoring system and monitoring method thereof
CN110083666A (en) Server unit, Information Collection System, formation gathering method and recording medium
CN107464571B (en) Data quality assessment method, equipment and system
CN117130851B (en) High-performance computing cluster operation efficiency evaluation method and system
JP2000069165A (en) Method and device for traffic prediction using time series data conversion
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
CN108171887B (en) Method and device for charging electric quantity
CN114282919B (en) Cloud sea resource charging dynamic cost analysis optimization method and system
CN115860366A (en) Community robot intelligent coordination control method and system and readable storage medium
CN115641174A (en) Electricity charge determining method and device, storage medium and electronic equipment
CN108011785A (en) One kind is based on cloud government affairs self-aided terminal Homes Using TV computational methods
CN117395198B (en) Congestion alarm method and system for power communication network
CN115002226A (en) Intelligent cable monitoring system for time-sharing reporting of sensor data

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