CN108733493A - Computational methods, computing device and the computer readable storage medium of resource utilization - Google Patents

Computational methods, computing device and the computer readable storage medium of resource utilization Download PDF

Info

Publication number
CN108733493A
CN108733493A CN201810515985.XA CN201810515985A CN108733493A CN 108733493 A CN108733493 A CN 108733493A CN 201810515985 A CN201810515985 A CN 201810515985A CN 108733493 A CN108733493 A CN 108733493A
Authority
CN
China
Prior art keywords
server
utilization
resource utilization
resource
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810515985.XA
Other languages
Chinese (zh)
Inventor
马东辉
赵晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CHJ Information Technology Co Ltd
Original Assignee
Beijing CHJ Information 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 Beijing CHJ Information Technology Co Ltd filed Critical Beijing CHJ Information Technology Co Ltd
Priority to CN201810515985.XA priority Critical patent/CN108733493A/en
Publication of CN108733493A publication Critical patent/CN108733493A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

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

Abstract

The invention discloses a kind of computational methods of the resource utilization of server, computing device, the computational methods of the resource utilization of application, computing device, computational methods, computing device and the computer readable storage mediums of the resource utilization of business.Wherein, the computational methods of the resource utilization of server include:Obtain cpu busy percentage, memory usage, network utilization and the disk utilization of server;According to cpu busy percentage, memory usage, network utilization, disk utilization, the resource utilization of calculation server.Technical solution using the present invention can effectively weigh out the resources utilization degree of each server, obtain the resource consumption situation of server, to provide reference to the rational resource planning of server progress and use.

Description

Computational methods, computing device and the computer readable storage medium of resource utilization
Technical field
The present invention relates to Resource Calculation technical fields, in particular to a kind of calculating of the resource utilization of server Method, computing device, the computational methods of the resource utilization of application, computing device, the computational methods of the resource utilization of business, Computing device and computer readable storage medium.
Background technology
Currently, during to server or virtual machine, application, the use of business, server or void can be checked respectively The use feelings of the CPU (Central Processing Unit, central processing unit) of quasi- machine, memory, network, disk these resources Condition.But in the related art, there is no unified standard come to server or virtual machine, application, business whole resource profit With rate effectively weigh and intuitively express, causes administrator or operation maintenance personnel that can not grasp resource well and use feelings Condition.
Invention content
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, one aspect of the present invention is to propose a kind of computational methods of the resource utilization of server.
Another aspect of the present invention is to propose a kind of computational methods of the resource utilization of application.
Another aspect of the invention is to propose a kind of computational methods of the resource utilization of business.
An additional aspect of the present invention is to propose a kind of computing device of the resource utilization of server.
An additional aspect of the present invention is to propose a kind of computing device of the resource utilization of application.
An additional aspect of the present invention is to propose a kind of computing device of the resource utilization of business.
An additional aspect of the present invention is to propose a kind of computer readable storage medium.
In view of this, according to an aspect of the present invention, it proposes a kind of computational methods of the resource utilization of server, Including:Obtain cpu busy percentage, memory usage, network utilization and the disk utilization of server;According to cpu busy percentage, interior Deposit utilization rate, network utilization, disk utilization, the resource utilization of calculation server.
The resource of the computational methods of the resource utilization of server provided by the invention, server is divided into four classes, i.e. CPU moneys Source, memory source, Internet resources, disk resource, in summary the utilization rate of four class resources obtain the resource utilization of server, The resources utilization degree that each server can effectively be weighed out obtains the resource consumption situation of server, for server Carry out rational resource planning and using offer reference.
The computational methods of the resource utilization of above-mentioned server according to the present invention can also have following technical characteristic:
In the above-mentioned technical solutions, it is preferable that obtain the cpu busy percentage of server, memory usage, network utilization and The step of disk utilization, specifically includes:It is sharp to obtain cpu busy percentage, memory usage, network of the server in preset number of days With rate and disk utilization.
In any of the above-described technical solution, it is preferable that according to cpu busy percentage, memory usage, network utilization, disk It the step of utilization rate, the resource utilization of calculation server, specifically includes:Calculate separately the flat of cpu busy percentage in preset number of days The average value of mean value, the average value of memory usage, the average value of network utilization, disk utilization, and by multiple average values In resource utilization of the maximum value as server;Or cpu busy percentage, memory usage, network in preset number of days are utilized Resource utilization of the maximum value as server in rate, disk utilization.
In any of the above-described technical solution, it is preferable that further include:By the resource utilization of server and the first predetermined threshold value Compare with the second predetermined threshold value, wherein the first predetermined threshold value is more than the second predetermined threshold value;When the resource utilization of server is more than Determine that server is high load server when the first predetermined threshold value;When the resource utilization of server is less than the second predetermined threshold value Determine that server is low-load server;When the resource utilization of server is more than or equal to the second predetermined threshold value and less than or equal to the Determine that server is medium loads server when one predetermined threshold value.
According to another aspect of the present invention, it is proposed that a kind of computational methods of the resource utilization of application, including:It utilizes The resource utilization of each server as where the computational methods of the resource utilization of above-mentioned server calculate application;Calculate institute There is the average value of the resource utilization of server, and using average value as the resource utilization of application.
In the computational methods of the resource utilization of application provided by the invention, using i.e. program, each application is likely to be at In one or more server, pass through the money that the average resource of the Servers-all at place will be applied to be used as the application Source utilization rate can effectively weigh out the resources utilization degree of each application, the resource consumption situation being applied, it is ensured that pipe Reason person or operation maintenance personnel carry out rational resource planning and use to application.
According to a further aspect of the invention, it is proposed that a kind of computational methods of the resource utilization of business, business include At least one application, method include:Each application place is calculated using the computational methods of the resource utilization of such as above-mentioned server Server resource utilization, and calculate the money each applied using the computational methods of the resource utilization such as above application Source utilization rate;The weighted value each applied is obtained, the resource of target service is calculated according to weighted value and the resource utilization of application Utilization rate.
Include at least one in the computational methods of the resource utilization of business provided by the invention, under the service line of each business A application, it is each to apply in the one or more servers in place.It is first when needing to obtain the resource utilization of a certain target service The resource utilization of each server is first calculated, then calculating this as the resource utilization of the server where any application answers Resource utilization, the last resource profit that target service is calculated according to the resource utilization each applied and its weighted value With rate.Technical solution using the present invention can effectively weigh out each server, each apply, the resource of each business Producing level, obtain server, application, business resource consumption situation, reasonably to be provided to server, application, business It plans and using offer reference in source.
The computational methods of the resource utilization of above-mentioned business according to the present invention can also have following technical characteristic:
In the above-mentioned technical solutions, it is preferable that further include:By the resource utilization of each server and the first predetermined threshold value Compare with the second predetermined threshold value, wherein the first predetermined threshold value is more than the second predetermined threshold value;Resource utilization is preset more than first The server of threshold value is determined as high load server, and the server that resource utilization is less than to the second predetermined threshold value is determined as low bear Carry server;Resource utilization is more than or equal to the second predetermined threshold value and is determined as less than or equal to the server of the first predetermined threshold value Medium loads server.
In any of the above-described technical solution, it is preferable that further include:According to utilization rate information architecture tables of data, and by data Table is shown;Wherein, utilization rate information includes following one kind or combinations thereof:The resource utilization of server, the resource of application The quantity of the server of utilization rate, the resource utilization of target service, target service, the quantity of high load server, low-load The quantity of server, the quantity of medium loads server, resource utilization history maximum value, resource utilization history minimum value.
In any of the above-described technical solution, it is preferable that calculate target service according to weighted value and the resource utilization of application Resource utilization the step of, specifically include:According to preset formula, target is calculated according to weighted value and the resource utilization of application The resource utilization of business, wherein preset formula isA is the resource utilization of target service, XiFor The resource utilization of application, aiFor weighted value, n is the quantity of application, and M is the quantity for the server that target service includes.
In any of the above-described technical solution, it is preferable that weighted value is the quantitative value of the server where application.
According to a further aspect of the invention, it is proposed that a kind of computing device of the resource utilization of server, including:It obtains Unit is taken, cpu busy percentage, memory usage, network utilization and disk utilization for obtaining server;Computing unit, For according to cpu busy percentage, memory usage, network utilization, disk utilization, the resource utilization of calculation server.
The resource of the computing device of the resource utilization of server provided by the invention, server is divided into four classes, i.e. CPU moneys Source, memory source, Internet resources, disk resource, in summary the utilization rate of four class resources obtain the resource utilization of server, The resources utilization degree that each server can effectively be weighed out obtains the resource consumption situation of server, for server Carry out rational resource planning and using offer reference.
According to a further aspect of the invention, it is proposed that a kind of computing device of the resource utilization of application, including:It obtains Unit is utilized for obtaining cpu busy percentage, memory usage, network of each server at application place in preset number of days Rate and disk utilization;Computing unit, for calculate separately each server in preset number of days the average value of cpu busy percentage, The average value of the average value of memory usage, the average value of network utilization, disk utilization, and by multiple average values most Resource utilization of the big value as server;Or by each server in preset number of days cpu busy percentage, memory usage, net Resource utilization of the maximum value as server in network utilization rate, disk utilization;And calculate the resource of Servers-all The average value of utilization rate, and using average value as the resource utilization of application.
In the computing device of the resource utilization of application provided by the invention, using i.e. program, each application is likely to be at In one or more server, the resource utilization of server can integrate cpu resource, memory source, Internet resources, disk The utilization rate of resource obtains, be specifically as follows using the maximum value of this utilization rate average value of four classes resource in preset number of days as The resource utilization of the server, can also be using the maximum value of this utilization rate of four classes resource in preset number of days as the service The resource utilization of device.Further, by the way that the average resource of the Servers-all at place will be applied to be used as the application Resource utilization, can effectively weigh out the resources utilization degree of each application, the resource consumption situation being applied, really It protects administrator or operation maintenance personnel and rational resource planning and use is carried out to application.
According to a further aspect of the invention, it is proposed that a kind of computing device of the resource utilization of business, feature exist In, including:First acquisition unit, for obtaining cpu busy percentage, memory of each server at application place in preset number of days Utilization rate, network utilization and disk utilization;Computing unit, for calculating separately each server CPU in preset number of days The average value of the average value of utilization rate, the average value of memory usage, the average value of network utilization, disk utilization, and will Resource utilization of the maximum value as server in multiple average values;Or CPU is utilized in preset number of days by each server Resource utilization of the maximum value as server in rate, memory usage, network utilization, disk utilization;And it calculates The average value of the resource utilization of Servers-all, and using average value as the resource utilization of application;Second acquisition unit is used In the weighted value that acquisition is each applied;Computing unit is additionally operable to calculate target industry according to weighted value and the resource utilization of application The resource utilization of business.
Include at least one in the computing device of the resource utilization of business provided by the invention, under the service line of each business A application, one or more servers where each application.When needing to obtain the resource utilization of a certain target service, first The resource utilization for each server for including is calculated under the target service, and the resource utilization of server can integrate CPU moneys Source, memory source, Internet resources, disk resource utilization rate obtain, be specifically as follows this four classes resource in preset number of days Utilization rate average value resource utilization of the maximum value as the server, can also be by this four classes resource in preset number of days Utilization rate resource utilization of the maximum value as the server.Further, as the Servers-all where any application Resource utilization resource utilization of the average value as the application, it is last according to the resource utilization and its power each applied The resource utilization of target service is calculated in weight values.Technical solution using the present invention can effectively weigh out each clothes Be engaged in device, each application, each business resources utilization degree, obtain server, application, business resource consumption situation, be right Server, application, business carry out rational resource planning and using offer reference.
According to a further aspect of the invention, it is proposed that a kind of computer readable storage medium is stored thereon with computer Program realizes the calculating of the resource utilization of the server such as any of the above-described technical solution when computer program is executed by processor The step of method;Or the step of such as computational methods of the resource utilization of the application of any of the above-described technical solution;Or such as above-mentioned The step of computational methods of the resource utilization of the business of one technical solution, therefore the computer readable storage medium includes above-mentioned Whole advantageous effects of the method for any technical solution, repeat no more.
The additional aspect and advantage of the present invention will become apparent in following description section, or practice through the invention Recognize.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination following accompanying drawings to embodiment Obviously and it is readily appreciated that, wherein:
Fig. 1 shows the flow chart of the computational methods of the resource utilization of the server of one embodiment of the present of invention;
Fig. 2 shows the flow charts of the computational methods of the resource utilization of the server of an alternative embodiment of the invention;
Fig. 3 shows the flow chart of the computational methods of the resource utilization of the application of one embodiment of the present of invention;
Fig. 4 shows the flow chart of the computational methods of the resource utilization of the application of an alternative embodiment of the invention;
Fig. 5 shows the flow chart of the computational methods of the resource utilization of the business of one embodiment of the present of invention;
Fig. 6 shows the flow chart of the computational methods of the resource utilization of the business of an alternative embodiment of the invention;
Fig. 7 shows the schematic diagram of the service line of the specific embodiment of the present invention;
Fig. 8 shows the schematic diagram of the computing device of the resource utilization of the server of one embodiment of the present of invention;
Fig. 9 shows the schematic diagram of the computing device of the resource utilization of the application of one embodiment of the present of invention;
Figure 10 shows the schematic diagram of the computing device of the resource utilization of the application of an alternative embodiment of the invention;
Figure 11 shows the schematic diagram of the computing device of the resource utilization of the business of one embodiment of the present of invention;
Figure 12 shows the schematic diagram of the computing device of the resource utilization of the business of an alternative embodiment of the invention.
Specific implementation mode
To better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Mode is applied the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not limited to following public affairs The limitation for the specific embodiment opened.
In the embodiment of first aspect present invention, it is proposed that a kind of computational methods of the resource utilization of server, Fig. 1 Show the flow chart of the computational methods of the resource utilization of the server of one embodiment of the present of invention, wherein this method packet It includes:
Step 102, cpu busy percentage, memory usage, network utilization and the disk utilization of server are obtained;
Step 104, according to cpu busy percentage, memory usage, network utilization, disk utilization, the money of calculation server Source utilization rate.
The resource of the computational methods of the resource utilization of server provided by the invention, server is divided into four classes, i.e. CPU moneys Source, memory source, Internet resources, disk resource, in summary the utilization rate of four class resources obtain the resource utilization of server, The resources utilization degree that each server can effectively be weighed out obtains the resource consumption situation of server, for server Carry out rational resource planning and using offer reference.
Fig. 2 shows the flow chart of the computational methods of the resource utilization of the server of an alternative embodiment of the invention, Wherein, this method includes:
Step 202, cpu busy percentage, memory usage, network utilization and the disk utilization of server are obtained;
Step 204, according to cpu busy percentage, memory usage, network utilization, disk utilization, the money of calculation server Source utilization rate;
Step 206, by the resource utilization of server compared with the first predetermined threshold value and the second predetermined threshold value, wherein first Predetermined threshold value is more than the second predetermined threshold value;
Step 208, determine that server is high load service when the resource utilization of server is more than the first predetermined threshold value Device;Determine that server is low-load server when the resource utilization of server is less than the second predetermined threshold value;When server Resource utilization is more than or equal to the second predetermined threshold value and is less than or equal to determine that server takes for medium loads when the first predetermined threshold value Business device.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out the clothes Business device is high load, medium loads or low-load, it is ensured that administrator or operation maintenance personnel can preferably grasp server resource and make With situation, wherein the high load i.e. ability of the server resource can not supporting business further development, the medium loads i.e. clothes The loading condition of business device is moderate, and the low-load i.e. server resource uses insufficient.
Preferably, the step of obtaining cpu busy percentage, memory usage, network utilization and the disk utilization of server, It specifically includes:Obtain cpu busy percentage, memory usage, network utilization and disk utilization of the server in preset number of days.
Preferably, according to cpu busy percentage, memory usage, network utilization, disk utilization, the money of calculation server The step of source utilization rate, specifically includes:Calculate separately the average value of cpu busy percentage in preset number of days, memory usage is averaged The average value of value, the average value of network utilization, disk utilization, and using the maximum value in multiple average values as server Resource utilization;Or by the maximum value in cpu busy percentage, memory usage, network utilization, disk utilization in preset number of days Resource utilization as server.
In this embodiment, number of days can be arranged in administrator or operation maintenance personnel, to obtain one week, two weeks or one of its needs Resource utilization situation in a month equal periods.Wherein, one day cpu busy percentage is preset quantity (e.g., 3) in the day The average value of cpu busy percentage peak value, one day memory usage are that the memory usage peak value of preset quantity is averaged in this day Value, one day network utilization are the average value of the network utilization peak value of preset quantity in this day, one day disk utilization For the average value of the disk utilization peak value of preset quantity in this day.Further, by four class resources of server in default day The utilization of resources of the maximum value of utilization rate as the server in the maximum value of utilization rate average value in number or four class resources Rate obtains the resource utilization of server by the utilization rate of in summary four class resources, can effectively weigh out each clothes The resources utilization degree of business device.
In the specific embodiment of the computational methods of the resource utilization of service-oriented device/virtual machine, server/virtual machine Resource be divided into four major class:CPU uses resource, memory source, network I/O resources, magnetic disc i/o resource.
The computational methods of the resource utilization of server/virtual machine are:Resource utilization=max of server/virtual machine (CPU ability values, memory power value, network capabilities value, disk ability value), i.e., directly take the maximum value in the above four classes ability value The resource utilization current as this server/virtual machine.The computational methods of the resource utilization of server/virtual machine may be used also Think:The average value of calculating CPU ability values, memory power value, network capabilities value, disk ability value, by the maximum in average value It is worth the resource utilization as server/virtual machine.Wherein, the calculating of CPU ability values:Using the utilization rate of CPU as its ability Value;The calculating of memory power value:Using the utilization rate of memory as its ability value;The calculating of network capabilities value:The ideal of network interface card Ability value uses the ratio of direct service traffics and the desired ability value of network interface card as its ability as benchmark (Gigabit Ethernet) Value;The calculating of disk ability value:Indicate that its ability value, %IOWait are all to be sampled at one using this index of %IOWait There is the time of a few percent there are unfinished I/O requests in phase.
For a server, resource utilization is eventually converted into a percentage index (load), will service The resource utilization of device and the ability benchmark (at least one high benchmark and a low benchmark) of setting are compared.If less than low Benchmark, then it is assumed that the resource of server uses insufficient;If being higher than high benchmark, then it is assumed that the ability of the resource of server can not The further development of supporting business.For example, showing resource utilization situation of a certain server in one week in table 1, wherein CPU, memory, network, disk average resource be respectively 31.2%, 50.8%, 0.64%, 41%, then maximum value Average value 50.8% is the resource utilization of the server.Or the maximum resource utilization rate of CPU, memory, network, disk point Not Wei 60%, 67%, 0.89%, 58%, then maximum value 67% be the server resource utilization.It should be noted that The method for obtaining the resource utilization of each index every day is:The value of highest three resource utilizations in selection daily, Then these three values are averaged, using the average value as the resource utilization of each index every day.
Table 1
In the embodiment of second aspect of the present invention, it is proposed that a kind of computational methods of the resource utilization of application, Fig. 3 show The flow chart of the computational methods of the resource utilization of the application of one embodiment of the present of invention is gone out, wherein this method includes:
Step 302, the resource utilization of each server where application is obtained;
Step 304, the average value of the resource utilization of Servers-all is calculated, and using average value as the resource of application profit With rate.
In the computational methods of the resource utilization of application provided by the invention, using i.e. program, each application is likely to be at In one or more server, pass through the money that the average resource of the Servers-all at place will be applied to be used as the application Source utilization rate can effectively weigh out the resources utilization degree of each application, the resource consumption situation being applied, it is ensured that pipe Reason person or operation maintenance personnel carry out rational resource planning and use to application.
Fig. 4 shows the flow chart of the computational methods of the resource utilization of the application of an alternative embodiment of the invention, In, this method includes:
Step 402, the resource utilization of each server where application is obtained;
Step 404, the average value of the resource utilization of Servers-all is calculated, and using average value as the resource of application profit With rate;
Step 406, by the resource utilization of each server compared with the first predetermined threshold value and the second predetermined threshold value, wherein First predetermined threshold value is more than the second predetermined threshold value;The server that resource utilization is more than to the first predetermined threshold value is determined as high load Server, the server that resource utilization is less than to the second predetermined threshold value are determined as low-load server;Resource utilization is big In being determined as medium loads server equal to the second predetermined threshold value and less than or equal to the server of the first predetermined threshold value;
Step 408, according to the resource utilization of the application, resource utilization of server, the quantity of high load server, low Quantity, the quantity of medium loads server of loaded server build tables of data, and tables of data are shown.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out high negative Carry server, medium loads server, low-load server, it is ensured that administrator or operation maintenance personnel can preferably grasp server money Source service condition.
Further, by the number of the resource utilization of obtained server, the resource utilization of application, high load server In the information storages to tables of data such as amount, the quantity of low-load server, the quantity of medium loads server, and shown, energy It is enough intuitive, clearly give expression to resource utilization, it is ensured that administrator or operation maintenance personnel according to information in the tables of data effectively Adjustresources distribute.
It should be noted that by the resource utilization of each server compared with the first predetermined threshold value and the second predetermined threshold value The step of, it can be carried out in the either step after the resource utilization for calculating each server, for example, can calculate It is directly compared after the step of going out the resource utilization of each server, or in the resource utilization for calculating application It is compared after step.
Preferably, the step of obtaining the resource utilization of each server where application, specifically includes:It obtains using institute Cpu busy percentage, memory usage, network utilization and disk utilization of each server in preset number of days;Respectively Calculate the average value of cpu busy percentage in preset number of days, the average value of memory usage, the average value of network utilization, disk profit With the average value of rate, and using the maximum value in multiple average values as the resource utilization of server;Or by CPU in preset number of days Resource utilization of the maximum value as server in utilization rate, memory usage, network utilization, disk utilization.
In the embodiment of third aspect present invention, it is proposed that a kind of computational methods of the resource utilization of business, business Including at least one application, Fig. 5 shows the stream of the computational methods of the resource utilization of the business of one embodiment of the present of invention Cheng Tu, wherein this method includes:
Step 502, the resource utilization of the server where each application, and the utilization of resources according to server are obtained Rate calculates the resource utilization each applied;
Step 504, the weighted value each applied is obtained, target service is calculated according to weighted value and the resource utilization of application Resource utilization.
Include at least one in the computational methods of the resource utilization of business provided by the invention, under the service line of each business A application, one or more servers where each application.When needing to obtain the resource utilization of a certain target service, first The resource utilization of each server is calculated, the application is then calculated as the resource utilization of the server where any application Resource utilization, the last utilization of resources that target service is calculated according to the resource utilization each applied and its weighted value Rate.Technical solution using the present invention can effectively weigh out each server, each apply, the resource of each business profit With degree, server, application, the resource use of business or Expenditure Levels are obtained, are to be carried out rationally to server, application, business Resource planning and using provide reference.
Wherein, the weighted value each applied can be configured, can according to application where number of servers, application make Weighted value is set with frequency, using information such as durations, more there is specific aim to the acquisition of service resources service condition.For example, It is 3 that the weighted value of the application, which is arranged, if being 3 if the server where application, is arranged if the server where application is 1 The weighted value of the application is 1.
Fig. 6 shows the flow chart of the computational methods of the resource utilization of the business of an alternative embodiment of the invention, In, this method includes:
Step 602, obtain the resource utilization of the server where each application, and by the resource utilization of server with First predetermined threshold value and the second predetermined threshold value compare, wherein the first predetermined threshold value is more than the second predetermined threshold value;By resource utilization Server more than the first predetermined threshold value is determined as high load server, and resource utilization is less than to the service of the second predetermined threshold value Device is determined as low-load server;Resource utilization is more than or equal to the second predetermined threshold value and less than or equal to the first predetermined threshold value Server is determined as medium loads server;
Step 604, the resource utilization each applied is calculated according to the resource utilization of server;
Step 606, the weighted value each applied is obtained, target service is calculated according to weighted value and the resource utilization of application Resource utilization;
Step 608, according to utilization rate information architecture tables of data, and tables of data is shown;Wherein, utilization rate packet Include following one kind or combinations thereof:The resource utilization of server, the resource utilization of application, the resource utilization of target service, The quantity of the server of target service, the quantity of high load server, the quantity of low-load server, medium loads server Quantity, resource utilization history maximum value, resource utilization history minimum value.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out high negative Carry server, medium loads server, low-load server, it is ensured that administrator or operation maintenance personnel can preferably grasp server money Source service condition, wherein the high load i.e. ability of the server resource can not supporting business further development, medium loads are The loading condition of the server is moderate, and the low-load i.e. server resource uses insufficient.
Further, by the resource utilization of obtained server, the resource utilization of application, the resource of target service profit With the quantity of the server of rate, target service, the quantity of high load server, the quantity of low-load server, medium loads clothes In the information storages to tables of data such as quantity, resource utilization history maximum value, the resource utilization history minimum value of business device, go forward side by side Row display, can intuitively, clearly give expression to resource utilization, it is ensured that administrator or operation maintenance personnel are believed according in the tables of data Effectively adjustresources distribute breath.
It should be noted that by the resource utilization of each server compared with the first predetermined threshold value and the second predetermined threshold value The step of, it can be carried out in the either step after the resource utilization for calculating each server, for example, can calculate It is directly compared after the step of going out the resource utilization of each server, or in the resource utilization for calculating application It is compared, then is compared after the step of calculating the resource utilization of target service after step.
Preferably, the resource utilization of the server where each application, and the utilization of resources according to server are obtained Rate calculates the step of resource utilization each applied, and specifically includes:The server at each application place is obtained in preset number of days Interior cpu busy percentage, memory usage, network utilization, disk utilization;Calculate separately cpu busy percentage in preset number of days The average value of average value, the average value of memory usage, the average value of network utilization, disk utilization, and will be multiple average Resource utilization of the maximum value as server in value;Or it is cpu busy percentage, memory usage, network in preset number of days is sharp Use the maximum value in rate, disk utilization as the resource utilization of server;Calculate the resource profit of the server where application With the average value of rate, and using average value as the resource utilization of application.
In this embodiment, number of days can be arranged in administrator or operation maintenance personnel, to obtain one week, two weeks or one of its needs Resource utilization situation in a month equal periods.Wherein, one day cpu busy percentage is preset quantity (e.g., 3) in the day The average value of cpu busy percentage peak value, one day memory usage are that the memory usage peak value of preset quantity is averaged in this day Value, one day network utilization are the average value of the network utilization peak value of preset quantity in this day, one day disk utilization For the average value of the disk utilization peak value of preset quantity in this day.Further, by four class resources of server in default day The utilization of resources of the maximum value of utilization rate as the server in the maximum value of utilization rate average value in number or four class resources Rate.Further, by the average value of the resource utilization of the Servers-all where application as the resource utilization of the application, The resource utilization for integrating each server ensures the accuracy weighed to the resource utilization of application.
Wherein, using the desired ability of network interface card as benchmark, with the ratio of direct service traffics and the desired ability of network interface card As network utilization, disk utilization is indicated using this index of %IOWait, %IOWait is a sampling period Inside there is the time of a few percent to have unfinished I/O (Input/Output, input or output) request.
Preferably, the step of resource utilization of target service being calculated according to weighted value and the resource utilization of application, tool Body includes:According to preset formula, the resource utilization of target service is calculated according to weighted value and the resource utilization of application, In, preset formula isA is the resource utilization of target service, XiFor the resource utilization of application, ai For weighted value, n is the quantity of application, and M is the quantity for the server that target service includes.
In this embodiment, target service is calculated according to the resource utilization of each application and its corresponding weighted value Resource utilization realizes the accurately monitoring to service resources service condition, is conducive to effective O&M to business.Wherein, each The weighted value of application can be configured, can according to application where number of servers, the frequency of use of application, use duration etc. Weighted value is arranged in information, more has specific aim to the acquisition of service resources service condition.
In service-oriented and the specific embodiment of the resource utilization computational methods of application, Fig. 7 shows the present invention's The schematic diagram of the service line of one specific embodiment, wherein business 1 includes using 1 and applying 2, using having 2 servers under 1, That is server 1 and server 2 only have 1 server, i.e. server 3 using 2 times.The resource utilization of application is where it The average value of the resource utilization of server.Further, the resource utilization that the business 1 is calculated using weight method, this The number of servers where application under business 1 is as weighted value, then it is 2 to apply 1 weight, and the weight using 2 is 1, respectively It is multiplied by the resource utilization of each application, may finally obtain the resource utilization of business 1.Finally can according to above setting into Row calculates, and also according to the hierarchical relationship of application, realizes following data informations at different levels, achievees the purpose that assist O&M, number It is believed that breath is as follows:
Server 1:Resource utilization is 50%;
Server 2:Resource utilization is 30%;
Server 3:Resource utilization is 80%;
First predetermined threshold value is 70%, and the second predetermined threshold value is 40%, then resource utilization is more than the first predetermined threshold value High load server is server 3, then the low-load server that resource utilization is less than the second predetermined threshold value is server 2;
Using 1 resource utilization=(resource utilization of resource utilization+server 2 of server 1)/2=40%; Using resource utilization=80% of 2 resource utilization=server 3;
Weight is arranged:It is 2 to be arranged using 1 weight, and the weight using 2 is 1;
The resource utilization of business 1=(applying 2 resource utilization × 1 using 1 resource utilization × 2+)/3= 53.3%.
In summary, it can be deduced that the resource utilization of each business, and it is under the jurisdiction of the negative of all devices under the business Carry situation.By monitoring to related data can calculate the number of devices of current high load in real time, can by historical record To inquire with the historical high in period the last period and minimum load value, tables of data is established, it is as shown in table 2, more intuitive to provide Reference.It should be noted that may include the more information in addition to shown in table 2 in tables of data.
Table 2
In the embodiment of fourth aspect present invention, it is proposed that a kind of computing device of the resource utilization of server, Fig. 8 Show the schematic diagram of the computing device 80 of the resource utilization of the server of one embodiment of the present of invention, wherein the device 80 include:
Acquiring unit 802, cpu busy percentage, memory usage, network utilization and disk for obtaining server utilize Rate;Computing unit 804, for according to cpu busy percentage, memory usage, network utilization, disk utilization, calculation server Resource utilization.
The resource of the computing device 80 of the resource utilization of server provided by the invention, server is divided into four classes, i.e. CPU Resource, memory source, Internet resources, disk resource, in summary the utilization rate of four class resources obtain the utilization of resources of server Rate can effectively weigh out the resources utilization degree of each server, obtain the resource consumption situation of server, for service Device carries out rational resource planning and using offer reference.
Preferably, acquiring unit 802 are specifically used for cpu busy percentage, memory of the acquisition server in preset number of days and utilize Rate, network utilization and disk utilization.
Preferably, computing unit 804, specifically for calculating separately the average value of cpu busy percentage in preset number of days, memory profit Make with the average value of rate, the average value of the average value of network utilization, disk utilization, and by the maximum value in multiple average values For the resource utilization of server;Or by cpu busy percentage, memory usage, network utilization, disk utilization in preset number of days In resource utilization of the maximum value as server.
In this embodiment, number of days can be arranged in administrator or operation maintenance personnel, to obtain one week, two weeks or one of its needs Resource utilization situation in a month equal periods.Wherein, one day cpu busy percentage is preset quantity (e.g., 3) in the day The average value of cpu busy percentage peak value, one day memory usage are that the memory usage peak value of preset quantity is averaged in this day Value, one day network utilization are the average value of the network utilization peak value of preset quantity in this day, one day disk utilization For the average value of the disk utilization peak value of preset quantity in this day.Further, by four class resources of server in default day The utilization of resources of the maximum value of utilization rate as the server in the maximum value of utilization rate average value in number or four class resources Rate obtains the resource utilization of server by the utilization rate of in summary four class resources, can effectively weigh out each clothes The resources utilization degree of business device.
Preferably, computing unit 802 are additionally operable to preset the resource utilization of server and the first predetermined threshold value and second Threshold value comparison, wherein the first predetermined threshold value is more than the second predetermined threshold value;When the resource utilization of server is more than the first default threshold Determine that server is high load server when value;Server is determined when the resource utilization of server is less than the second predetermined threshold value For low-load server;When the resource utilization of server is more than or equal to the second predetermined threshold value and is less than or equal to the first predetermined threshold value When determine server be medium loads server.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out the clothes Business device is high load, medium loads or low-load, it is ensured that administrator or operation maintenance personnel can preferably grasp server resource and make With situation, wherein the high load i.e. ability of the server resource can not supporting business further development, the medium loads i.e. clothes The loading condition of business device is moderate, and the low-load i.e. server resource uses insufficient.
In the embodiment of fifth aspect present invention, it is proposed that a kind of computing device of the resource utilization of application, Fig. 9 show The schematic diagram of the computing device 90 of the resource utilization of the application of one embodiment of the present of invention is gone out, wherein the device 90 wraps It includes:
Acquiring unit 902, for obtaining cpu busy percentage, memory of each server at application place in preset number of days Utilization rate, network utilization and disk utilization;
Computing unit 904, for calculating separately each server average value of cpu busy percentage, memory in preset number of days The average value of the average value of utilization rate, the average value of network utilization, disk utilization, and by the maximum value in multiple average values Resource utilization as server;Or cpu busy percentage, memory usage, network are sharp in preset number of days by each server Use the maximum value in rate, disk utilization as the resource utilization of server;And calculate the utilization of resources of Servers-all The average value of rate, and using average value as the resource utilization of application.
In the computing device 90 of the resource utilization of application provided by the invention, using i.e. program, each application may be located In one or more server, the resource utilization of server can integrate cpu resource, memory source, Internet resources, magnetic The utilization rate of disk resource obtains, and is specifically as follows and makees the maximum value of this utilization rate average value of four classes resource in preset number of days It, can also be using the maximum value of this utilization rate of four classes resource in preset number of days as the clothes for the resource utilization of the server The resource utilization of business device.Further, it is answered by the way that the average resource of the Servers-all at place will be applied to be used as this Resource utilization can effectively weigh out the resources utilization degree of each application, the resource consumption situation being applied, Ensure that administrator or operation maintenance personnel carry out rational resource planning and use to application.
Figure 10 shows the signal of the computing device 100 of the resource utilization of the application of an alternative embodiment of the invention Figure, wherein the device 100 includes:
Acquiring unit 102, for obtaining cpu busy percentage, memory of each server at application place in preset number of days Utilization rate, network utilization and disk utilization;
Computing unit 104, for calculating separately each server average value of cpu busy percentage, memory in preset number of days The average value of the average value of utilization rate, the average value of network utilization, disk utilization, and by the maximum value in multiple average values Resource utilization as server;Or cpu busy percentage, memory usage, network are sharp in preset number of days by each server Use the maximum value in rate, disk utilization as the resource utilization of server;And calculate the utilization of resources of Servers-all The average value of rate, and using average value as the resource utilization of application;
Comparing unit 106 is additionally operable to the resource utilization of each server and the first predetermined threshold value and the second default threshold Value compares, wherein the first predetermined threshold value is more than the second predetermined threshold value;Resource utilization is more than to the server of the first predetermined threshold value It is determined as high load server, the server that resource utilization is less than to the second predetermined threshold value is determined as low-load server;It will Resource utilization is more than or equal to the second predetermined threshold value and is determined as medium loads clothes less than or equal to the server of the first predetermined threshold value Business device;
Display unit 108, for the resource utilization, the resource utilization of server, high load server according to application Quantity, the quantity of low-load server, the quantity of medium loads server build tables of data;And tables of data is shown Show.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out high negative Carry server, medium loads server, low-load server, it is ensured that administrator or operation maintenance personnel can preferably grasp server money Source service condition.Further, by the resource utilization of obtained server, the resource utilization of application, high load server The information storages to tables of data such as quantity, the quantity of low-load server, the quantity of medium loads server in, and shown Show, can intuitively, clearly give expression to resource utilization, it is ensured that administrator or operation maintenance personnel have according to information in the tables of data The adjustresources distribution of effect ground.
In the embodiment of sixth aspect present invention, it is proposed that a kind of computing device of the resource utilization of business, business Including at least one application, Figure 11 shows the computing device 110 of the resource utilization of the business of one embodiment of the present of invention Schematic diagram, wherein the device 110 includes:
First acquisition unit 112, for obtains application place cpu busy percentage of each server in preset number of days, Memory usage, network utilization and disk utilization;
Computing unit 114, for calculating separately each server average value of cpu busy percentage, memory in preset number of days The average value of the average value of utilization rate, the average value of network utilization, disk utilization, and by the maximum value in multiple average values Resource utilization as server;Or cpu busy percentage, memory usage, network are sharp in preset number of days by each server Use the maximum value in rate, disk utilization as the resource utilization of server;And calculate the utilization of resources of Servers-all The average value of rate, and using average value as the resource utilization of application;
Second acquisition unit 116, for obtaining the weighted value each applied;
Computing unit 114 is additionally operable to calculate the utilization of resources of target service according to weighted value and the resource utilization of application Rate.
Include extremely in the computing device 110 of the resource utilization of business provided by the invention, under the service line of each business A few application, each application place or a multiple server.When needing to obtain the resource utilization of a certain target service, The resource utilization of each server is calculated first, and the resource utilization of server can integrate cpu resource, memory source, net Network resource, the utilization rate of disk resource obtain, and are specifically as follows this utilization rate average value of four classes resource in preset number of days Resource utilization of the maximum value as the server, can also be by the maximum of this utilization rate of four classes resource in preset number of days It is worth the resource utilization as the server.Further, as the resource utilization of the Servers-all where any application Resource utilization of the average value as the application, it is last that mesh is calculated according to the resource utilization each applied and its weighted value The resource utilization of mark business.Technical solution using the present invention, can effectively weigh out each server, each application, The resources utilization degree of each business, obtain server, application, business resource use or Expenditure Levels, for server, answer Rational resource planning is carried out with, business and using providing reference.
Number of days can be arranged in administrator or operation maintenance personnel, to obtain the periods such as one week, two weeks or one month of its needs Interior resource utilization situation.Wherein, one day cpu busy percentage is the cpu busy percentage peak of preset quantity (e.g., 3) in the day The average value of value, one day memory usage are the average value of the memory usage peak value of preset quantity in this day, one day net Network utilization rate is the average value of the network utilization peak value of preset quantity in this day, and one day disk utilization is to be preset in the day The average value of the disk utilization peak value of quantity.
The weighted value each applied can be configured, can according to application where number of servers, application using frequency Weighted value is arranged using information such as durations in rate, more has specific aim to the acquisition of service resources service condition.If for example, answering With the server at place be 3 weighted values that the application is then set it is 3, this, which is arranged, if the server where application is 1 answers Weighted value is 1.
Figure 12 shows the signal of the computing device 120 of the resource utilization of the business of an alternative embodiment of the invention Figure, wherein the device 120 includes:
First acquisition unit 122, for obtains application place cpu busy percentage of each server in preset number of days, Memory usage, network utilization and disk utilization;
Computing unit 124, for calculating separately each server average value of cpu busy percentage, memory in preset number of days The average value of the average value of utilization rate, the average value of network utilization, disk utilization, and by the maximum value in multiple average values Resource utilization as server;Or cpu busy percentage, memory usage, network are sharp in preset number of days by each server Use the maximum value in rate, disk utilization as the resource utilization of server;And calculate the utilization of resources of Servers-all The average value of rate, and using average value as the resource utilization of application;
Second acquisition unit 126, for obtaining the weighted value each applied;
Computing unit 124 is additionally operable to calculate the utilization of resources of target service according to weighted value and the resource utilization of application Rate;
Comparing unit 128 is additionally operable to the resource utilization of server and the first predetermined threshold value and the second predetermined threshold value ratio Compared with wherein the first predetermined threshold value is more than the second predetermined threshold value;The server that resource utilization is more than to the first predetermined threshold value determines For high load server, the server that resource utilization is less than to the second predetermined threshold value is determined as low-load server;By resource Utilization rate is more than or equal to the second predetermined threshold value and is determined as medium loads server less than or equal to the server of the first predetermined threshold value;
Display unit 130, for according to utilization rate information architecture tables of data;And tables of data is shown;Wherein, sharp Include following one kind or combinations thereof with rate information:The resource utilization of server, the resource utilization of application, the money of target service It is the quantity of the server of source utilization rate, target service, the quantity of high load server, the quantity of low-load server, moderate negative Carry quantity, resource utilization history maximum value, the resource utilization history minimum value of server.
In this embodiment, it by the way that threshold value is arranged, is compared with the resource utilization of server, so that it is determined that going out high negative Carry server, medium loads server, low-load server, it is ensured that administrator or operation maintenance personnel can preferably grasp server money Source service condition, wherein the high load i.e. ability of the server resource can not supporting business further development, medium loads are The loading condition of the server is moderate, and the low-load i.e. server resource uses insufficient.Wherein, the desired ability of network interface card is made On the basis of, use the ratio of the desired ability of direct service traffics and network interface card as network utilization, using %IOWait this Index indicates disk utilization, and %IOWait is to have the time of a few percent to have unfinished I/O within a sampling period Request.
Further, by the resource utilization of obtained server, the resource utilization of application, the resource of target service profit With the quantity of the server of rate, target service, the quantity of high load server, the quantity of low-load server, medium loads clothes In the information storages to tables of data such as quantity, resource utilization history maximum value, the resource utilization history minimum value of business device, go forward side by side Row display, can intuitively, clearly give expression to resource utilization, it is ensured that administrator or operation maintenance personnel are believed according in the tables of data Effectively adjustresources distribute breath.
Preferably, computing unit 124 are specifically used for according to preset formula, according to the resource utilization of weighted value and application Calculate the resource utilization of target service, wherein preset formula isA is the resource profit of target service With rate, XiFor the resource utilization of application, aiFor weighted value, n is the quantity of application, and M is the number for the server that target service includes Amount.
In this embodiment, target service is calculated according to the resource utilization of each application and its corresponding weighted value Resource utilization realizes the accurately monitoring to service resources service condition, is conducive to effective O&M to business.Wherein, each The weighted value of application can be configured, can according to application where number of servers, the frequency of use of application, use duration etc. Weighted value is arranged in information, more has specific aim to the acquisition of service resources service condition.
In the embodiment of seventh aspect present invention, it is proposed that a kind of computer readable storage medium is stored thereon with meter Calculation machine program is realized such as the server of above-mentioned any embodiment, application, business when computer program is executed by processor The step of computational methods of resource utilization, therefore the computer readable storage medium includes the resource profit of any of the above-described embodiment With whole advantageous effects of the computational methods of rate, repeat no more.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc. Mean that particular features, structures, materials, or characteristics described in conjunction with this embodiment or example are contained at least one reality of the present invention It applies in example or example.In the present specification, schematic expression of the above terms are not necessarily referring to identical embodiment or reality Example.Moreover, description particular features, structures, materials, or characteristics can in any one or more of the embodiments or examples with Suitable mode combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (14)

1. a kind of computational methods of the resource utilization of server, which is characterized in that including:
Obtain cpu busy percentage, memory usage, network utilization and the disk utilization of the server;
According to the cpu busy percentage, the memory usage, the network utilization, the disk utilization, the clothes are calculated The resource utilization of business device.
2. the computational methods of the resource utilization of server according to claim 1, which is characterized in that described in the acquisition It the step of cpu busy percentage of server, memory usage, network utilization and disk utilization, specifically includes:
Obtain the cpu busy percentage of the server in preset number of days, the memory usage, the network utilization and The disk utilization.
3. the computational methods of the resource utilization of server according to claim 2, which is characterized in that described in the basis Cpu busy percentage, the memory usage, the network utilization, the disk utilization calculate the resource profit of the server It the step of with rate, specifically includes:
Calculate separately the average value of the cpu busy percentage in the preset number of days, the average value of the memory usage, the net The average value of the average value of network utilization rate, the disk utilization, and using the maximum value in multiple average values as described in The resource utilization of server;Or
The cpu busy percentage, the memory usage, the network utilization, the disk in the preset number of days are utilized Resource utilization of the maximum value as the server in rate.
4. the computational methods of the resource utilization of server according to any one of claim 1 to 3, which is characterized in that Further include:
By the resource utilization of the server compared with the first predetermined threshold value and the second predetermined threshold value, wherein described first is default Threshold value is more than second predetermined threshold value;
Determine that the server is high load service when the resource utilization of the server is more than first predetermined threshold value Device;Determine that the server is low-load service when the resource utilization of the server is less than second predetermined threshold value Device;It is true when the resource utilization of the server is more than or equal to second predetermined threshold value and is less than or equal to the first predetermined threshold value The fixed server is medium loads server.
5. a kind of computational methods of the resource utilization of application, which is characterized in that including:
The application is calculated using the computational methods of the resource utilization of server according to any one of claims 1 to 4 The resource utilization of each server at place;
The average value of the resource utilization of all servers is calculated, and using the average value as the resource of application profit With rate.
6. a kind of computational methods of the resource utilization of business, which is characterized in that the business includes at least one application, described Method includes:
It is calculated using the computational methods of the resource utilization of server as claimed any one in claims 1 to 3 each described Using the resource utilization of the server at place, and utilize the calculating for the resource utilization applied as claimed in claim 5 Method calculates the resource utilization of each application;
The weighted value for obtaining each application calculates the target according to the weighted value and the resource utilization of the application The resource utilization of business.
7. the computational methods of the resource utilization of business according to claim 6, which is characterized in that further include:
By the resource utilization of each server compared with the first predetermined threshold value and the second predetermined threshold value, wherein described first Predetermined threshold value is more than second predetermined threshold value;
The server that resource utilization is more than to first predetermined threshold value is determined as high load server, and resource utilization is small It is determined as low-load server in the server of second predetermined threshold value;Resource utilization is preset more than or equal to described second Threshold value and it is determined as medium loads server less than or equal to the server of the first predetermined threshold value.
8. the computational methods of the resource utilization of business according to claim 7, which is characterized in that further include:
It is shown according to utilization rate information architecture tables of data, and by the tables of data;
Wherein, the utilization rate information includes following one kind or combinations thereof:The resource utilization of the server, the application The quantity of the server of resource utilization, the resource utilization of the target service, the target service, the high load service The quantity of device, the quantity of the low-load server, the quantity of the medium loads server, resource utilization history are maximum Value, resource utilization history minimum value.
9. the computational methods of the resource utilization of the business according to any one of claim 6 to 8, which is characterized in that institute The step of resource utilization of the target service is calculated according to the resource utilization of the weighted value and the application is stated, specifically Including:
According to preset formula, the resource profit of the target service is calculated according to the resource utilization of the weighted value and the application With rate, wherein the preset formula isA is the resource utilization of the target service, XiIt is described The resource utilization of application, aiFor the weighted value, n is the quantity of the application, and M is the clothes that the target service includes The quantity of business device.
10. the computational methods of the resource utilization according to any one of claim 6 to 8, which is characterized in that the weight Value is the quantitative value of the server where the application.
11. a kind of computing device of the resource utilization of server, which is characterized in that including:
Acquiring unit, cpu busy percentage, memory usage, network utilization and disk utilization for obtaining the server;
Computing unit, for being utilized according to the cpu busy percentage, the memory usage, the network utilization, the disk Rate calculates the resource utilization of the server.
12. a kind of computing device of the resource utilization of application, which is characterized in that including:
Acquiring unit is utilized for obtaining cpu busy percentage, memory of each server where the application in preset number of days Rate, network utilization and disk utilization;
Computing unit, for calculate separately each server in the preset number of days average value of the cpu busy percentage, The average value of the average value of the memory usage, the average value of the network utilization, the disk utilization, and will be multiple Resource utilization of the maximum value as the server in the average value;Or by each server in the default day Maximum value conduct in number in the cpu busy percentage, the memory usage, the network utilization, the disk utilization The resource utilization of the server;And the average value of the resource utilization of all servers is calculated, and will be described flat Resource utilization of the mean value as the application.
13. a kind of computing device of the resource utilization of business, which is characterized in that the business includes at least one application, institute Stating device includes:
First acquisition unit, for obtaining cpu busy percentage, memory of each server where the application in preset number of days Utilization rate, network utilization and disk utilization;
Computing unit, for calculate separately each server in the preset number of days average value of the cpu busy percentage, The average value of the average value of the memory usage, the average value of the network utilization, the disk utilization, and will be multiple Resource utilization of the maximum value as the server in the average value;Or by each server in the default day Maximum value conduct in number in the cpu busy percentage, the memory usage, the network utilization, the disk utilization The resource utilization of the server;And the average value of the resource utilization of all servers is calculated, and will be described flat Resource utilization of the mean value as the application;
Second acquisition unit, the weighted value for obtaining each application;
The computing unit is additionally operable to calculate the target service according to the resource utilization of the weighted value and the application Resource utilization.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The computational methods of the resource utilization of server according to any one of claims 1 to 4 are realized when being executed by processor Step;Or the resource utilization applied as claimed in claim 5 computational methods the step of;Or as in claim 6 to 10 The step of computational methods of the resource utilization of any one of them business.
CN201810515985.XA 2018-05-25 2018-05-25 Computational methods, computing device and the computer readable storage medium of resource utilization Pending CN108733493A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810515985.XA CN108733493A (en) 2018-05-25 2018-05-25 Computational methods, computing device and the computer readable storage medium of resource utilization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810515985.XA CN108733493A (en) 2018-05-25 2018-05-25 Computational methods, computing device and the computer readable storage medium of resource utilization

Publications (1)

Publication Number Publication Date
CN108733493A true CN108733493A (en) 2018-11-02

Family

ID=63936122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810515985.XA Pending CN108733493A (en) 2018-05-25 2018-05-25 Computational methods, computing device and the computer readable storage medium of resource utilization

Country Status (1)

Country Link
CN (1) CN108733493A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046040A (en) * 2019-04-09 2019-07-23 厦门网宿有限公司 Distributed task scheduling processing method and system and storage medium
CN111597085A (en) * 2020-04-02 2020-08-28 北京邮电大学 Computing resource occupation computing method and device
CN112019583A (en) * 2019-05-31 2020-12-01 北京京东尚科信息技术有限公司 Method, device and storage medium for determining utilization rate of server cluster resources
CN112118275A (en) * 2019-06-20 2020-12-22 北京车和家信息技术有限公司 Overload processing method, Internet of things platform and computer readable storage medium
CN112783641A (en) * 2019-11-11 2021-05-11 马上消费金融股份有限公司 Service interface flow control method and device
CN113590260A (en) * 2021-06-30 2021-11-02 济南浪潮数据技术有限公司 Statistical calculation method, device and equipment for calculation resources and readable medium
CN113806089A (en) * 2021-09-17 2021-12-17 中国联合网络通信集团有限公司 Cluster load resource scheduling method and device, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331328A (en) * 2013-07-22 2015-02-04 中国电信股份有限公司 Virtual resource scheduling method and virtual resource scheduling device
CN104714851A (en) * 2015-03-30 2015-06-17 中国联合网络通信集团有限公司 Method and device for realizing resource distribution
CN105487930A (en) * 2015-12-01 2016-04-13 中国电子科技集团公司第二十八研究所 Task optimization scheduling method based on Hadoop
CN106933650A (en) * 2017-03-03 2017-07-07 北方工业大学 load management method and system of cloud application system
CN107124472A (en) * 2017-06-26 2017-09-01 杭州迪普科技股份有限公司 Load-balancing method and device, computer-readable recording medium
CN107273182A (en) * 2017-06-06 2017-10-20 武汉智云方达信息科技有限公司 A kind of resources of virtual machine dynamic expanding method and system
CN107436813A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 A kind of method and system of meta data server dynamic load leveling
US20180139148A1 (en) * 2016-11-15 2018-05-17 Vmware, Inc. Distributed Resource Scheduling Based on Network Utilization
CN108055292A (en) * 2017-10-30 2018-05-18 中国人民解放军空军工程大学 The optimization method that a kind of virtual machine is mapped to physical machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331328A (en) * 2013-07-22 2015-02-04 中国电信股份有限公司 Virtual resource scheduling method and virtual resource scheduling device
CN104714851A (en) * 2015-03-30 2015-06-17 中国联合网络通信集团有限公司 Method and device for realizing resource distribution
CN105487930A (en) * 2015-12-01 2016-04-13 中国电子科技集团公司第二十八研究所 Task optimization scheduling method based on Hadoop
US20180139148A1 (en) * 2016-11-15 2018-05-17 Vmware, Inc. Distributed Resource Scheduling Based on Network Utilization
CN106933650A (en) * 2017-03-03 2017-07-07 北方工业大学 load management method and system of cloud application system
CN107273182A (en) * 2017-06-06 2017-10-20 武汉智云方达信息科技有限公司 A kind of resources of virtual machine dynamic expanding method and system
CN107124472A (en) * 2017-06-26 2017-09-01 杭州迪普科技股份有限公司 Load-balancing method and device, computer-readable recording medium
CN107436813A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 A kind of method and system of meta data server dynamic load leveling
CN108055292A (en) * 2017-10-30 2018-05-18 中国人民解放军空军工程大学 The optimization method that a kind of virtual machine is mapped to physical machine

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046040A (en) * 2019-04-09 2019-07-23 厦门网宿有限公司 Distributed task scheduling processing method and system and storage medium
CN110046040B (en) * 2019-04-09 2021-11-16 厦门网宿有限公司 Distributed task processing method and system and storage medium
CN112019583A (en) * 2019-05-31 2020-12-01 北京京东尚科信息技术有限公司 Method, device and storage medium for determining utilization rate of server cluster resources
CN112118275A (en) * 2019-06-20 2020-12-22 北京车和家信息技术有限公司 Overload processing method, Internet of things platform and computer readable storage medium
CN112118275B (en) * 2019-06-20 2023-07-11 北京车和家信息技术有限公司 Overload processing method, internet of things platform and computer readable storage medium
CN112783641A (en) * 2019-11-11 2021-05-11 马上消费金融股份有限公司 Service interface flow control method and device
CN111597085A (en) * 2020-04-02 2020-08-28 北京邮电大学 Computing resource occupation computing method and device
CN113590260A (en) * 2021-06-30 2021-11-02 济南浪潮数据技术有限公司 Statistical calculation method, device and equipment for calculation resources and readable medium
CN113806089A (en) * 2021-09-17 2021-12-17 中国联合网络通信集团有限公司 Cluster load resource scheduling method and device, electronic equipment and readable storage medium
CN113806089B (en) * 2021-09-17 2023-06-27 中国联合网络通信集团有限公司 Cluster load resource scheduling method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108733493A (en) Computational methods, computing device and the computer readable storage medium of resource utilization
CN107196869B (en) The adaptive load balancing method, apparatus and system of Intrusion Detection based on host actual loading
CN103946831B (en) System and method of the selection that cost for template is perceived to supply shared resource
CN104038540B (en) Method and system for automatically selecting application proxy server
CN103455486B (en) The method and system of placement database
CN103401938B (en) Based on resource allocation system and the method thereof of traffic performance under distributed cloud framework
US8756441B1 (en) Data center energy manager for monitoring power usage in a data storage environment having a power monitor and a monitor module for correlating associative information associated with power consumption
US7467291B1 (en) System and method for calibrating headroom margin
CN110138732A (en) Response method, device, equipment and the storage medium of access request
CN106776005A (en) A kind of resource management system and method towards containerization application
US20120290725A1 (en) Dynamic Cost Model Based Resource Scheduling In Distributed Compute Farms
US20110072436A1 (en) Resource optimization for real-time task assignment in multi-process environments
CN108196788A (en) QoS index monitoring method, device, storage medium
CN107734052A (en) The load balancing container dispatching method that facing assembly relies on
CN108549583A (en) Big data processing method, device, server and readable storage medium storing program for executing
CN109800250A (en) The monitoring method and exploitation for energy information management system of garden energy information
CN108900626A (en) Date storage method, apparatus and system under a kind of cloud environment
CN109697637A (en) Object type determines method, apparatus, electronic equipment and computer storage medium
CN110348981A (en) Loan air control method and device, electronic equipment and computer readable storage medium
Tran et al. Reward-to-reduce: An incentive mechanism for economic demand response of colocation datacenters
CN103713852B (en) A kind of information processing method, service platform and electronic equipment
CN105264457B (en) energy consumption monitoring method and device
CN106209433B (en) Application system energy-efficient deployment device towards framework under a kind of cloud environment
CN112862319B (en) Order scheduling method, device, equipment and storage medium
CN107992951A (en) Capacity alarm method, system, memory and the electronic equipment of cloud management platform

Legal Events

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

Application publication date: 20181102

RJ01 Rejection of invention patent application after publication