Server utilization rate calculation method and device
By combining the resource data performance of the server and the business environment, the real usage indicators are calculated and multi-dimensional analysis is performed, which solves the problem in the existing technology that a single resource indicator cannot fully reflect the server utilization, and improves the accuracy and flexibility of the server utilization calculation. performance, supporting more accurate resource recycling and redistribution.
Patent Information
- Application Number
- CN202411027703.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-29
AI Technical Summary
The existing server utilization calculation method relies on a single resource indicator and cannot fully reflect the overall operating status and resource utilization of the server, resulting in low calculation accuracy and affecting the accuracy of recycling and redistribution.
By determining the target calculation rules of the server, combining resource data performance and business environment, calculating the real usage indicator set, and using multi-dimensional analysis methods, such as weighted average, hierarchical analysis or fuzzy comprehensive evaluation, to comprehensively evaluate the server utilization.
It improves the accuracy and comprehensiveness of server utilization calculations, enhances the flexibility and pertinence of calculations, reduces deviations caused by data anomalies, and supports more accurate recycling and redistribution decisions.
Smart Images

Figure CN118860656A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a method and device for calculating server utilization. Background Art
[0002] With the continuous evolution of computer technology and the advent of the era of cloud computing and big data, the rational use and effective management of server resources have become the key to reducing operating costs and ensuring service quality. On the one hand, in order to improve performance and ensure server stability, it is necessary to optimize and adjust servers with high utilization. On the other hand, in order to save enterprise costs and avoid wasting server resources, it is also necessary to recycle and redistribute servers with low utilization.
[0003] At present, in addition to manual calculation of hardware performance and actual usage, traditional server utilization calculation methods mainly rely on monitoring more important single resource indicators to determine the level of server utilization. However, the inventors found that there is a problem: there are multiple resource indicators in server operation, and a single resource indicator cannot fully reflect the overall operation status and resource utilization of the server, ignoring the interaction between resources and the impact of the business environment on resource demand. That is, it is difficult to provide accurate and comprehensive utilization analysis based on a single resource indicator, which in turn affects the accuracy of server utilization calculation, especially affecting the subsequent recovery and redistribution of servers with too low utilization. Summary of the invention
[0004] In view of the above problems, the present application provides a server utilization calculation method and device, the main purpose of which is to provide accurate and comprehensive utilization analysis for the server and improve the accuracy of server utilization calculation.
[0005] In order to solve the above technical problems, this application proposes the following solutions:
[0006] In a first aspect, the present application provides a method for calculating server utilization, the method comprising:
[0007] Determine a target calculation rule corresponding to the server, wherein the target calculation rule is set according to resource data representation and business environment of the server;
[0008] Calculating a real usage indicator set corresponding to the server, where the real usage indicator set is an indicator set determined according to a resource fluctuation law of the server;
[0009] The actual usage indicator set is analyzed according to the target calculation rule to obtain the comprehensive utilization rate corresponding to the server.
[0010] In a second aspect, the present application provides a server utilization calculation device, the device comprising:
[0011] A determination unit, used to determine a target calculation rule corresponding to the server, wherein the target calculation rule is determined according to resource data representation and business environment of the corresponding server;
[0012] A calculation unit, used to calculate a real usage indicator set corresponding to the server, wherein the real usage indicator set is an indicator set determined according to a resource fluctuation law of the server;
[0013] The analyzing unit is used to analyze the real usage indicator set of the computing unit according to the target computing rule of the determining unit to obtain the comprehensive utilization rate corresponding to the server.
[0014] In order to achieve the above-mentioned purpose, according to the third aspect of the present application, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the server utilization calculation method of the above-mentioned first aspect.
[0015] In order to achieve the above-mentioned purpose, according to a fourth aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the server utilization calculation method of the above-mentioned first aspect is executed when the program is running.
[0016] By means of the above technical scheme, a server utilization calculation method and device provided by the present application is to first determine the target calculation rule corresponding to the server when it is necessary to calculate the utilization of the server. The target calculation rule is set according to the resource data performance and business environment of the server. Then, the real usage indicator set corresponding to the server is calculated. The real usage indicator set is a set of indicators determined according to the resource fluctuation law of the server. Finally, the real usage indicator set is analyzed according to the target calculation rule to obtain the comprehensive utilization rate corresponding to the server. Through the technical solution provided by the present application, it is possible to determine the target calculation rules according to the resource data performance and business environment of the server, so that the subsequent utilization calculation can meet the actual usage of different servers, thereby enhancing the flexibility and pertinence of the calculation. The actual usage indicator set is a set of indicators determined based on the resource fluctuation law of the server, which enables the subsequent calculation to not only use the usage of multiple resource indicators, but also combine the dynamic fluctuation law of resource usage, thereby avoiding the deviation caused by data anomalies. In other words, the target calculation rules are used to conduct a comprehensive analysis of the actual usage indicator set, thereby realizing a multi-dimensional comprehensive evaluation of server utilization. Compared with the previous utilization calculation that relies on a single resource indicator, it can analyze server utilization more accurately and comprehensively, improve the accuracy of server utilization calculation, and effectively provide support for the subsequent recovery and redistribution of servers with too low utilization.
[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0019] Figure 1 A flow chart of a method for calculating server utilization provided by an embodiment of the present application is shown;
[0020] Figure 2 A flow chart of another method for calculating server utilization provided by an embodiment of the present application is shown;
[0021] Figure 3 A block diagram showing a composition of a server utilization calculation device provided by an embodiment of the present application is shown;
[0022] Figure 4 A block diagram showing the composition of another server utilization calculation device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0024] At present, in addition to manual calculation of hardware performance and actual usage, traditional server utilization calculation methods mainly rely on monitoring more important single resource indicators to determine the level of server utilization. However, there are many resource indicators in server operation, such as memory, disk, network, CPU, etc. These resource indicators represent the resource usage status of the server in different aspects. Therefore, a single resource indicator cannot fully reflect the overall operation status and resource utilization of the server, and ignores the interaction between resources and the impact of the business environment on resource demand. That is, it is difficult to provide accurate and comprehensive utilization analysis based on a single resource indicator, which in turn affects the accuracy of server utilization calculation, especially affecting the subsequent recovery and redistribution of servers with too low utilization.
[0025] After research, the inventor found that the calculation of server utilization should be a dynamic and flexible process, and it is necessary to avoid ignoring the interaction between resources and the impact of the business environment on resource demand by calculating the utilization of a single resource indicator. Therefore, the corresponding calculation rules can be set in combination with the resource data performance of the server, the business environment to which it belongs, etc., and a set of real usage indicators can be determined using the law of resource fluctuations. The utilization rate is comprehensively analyzed through the calculation rules and this set of real usage indicators to obtain a comprehensive utilization rate that is closer to the actual usage of the server. In this way, not only can the subsequent utilization calculation be consistent with the actual usage of different servers, but it also combines the dynamic fluctuation law of resource usage, avoids the deviation caused by data anomalies, and realizes a multi-dimensional comprehensive evaluation of server utilization, which can more accurately and comprehensively analyze server utilization and improve the accuracy of server utilization calculation.
[0026] In this regard, the embodiment of the present application provides a method for calculating server utilization, which can provide accurate and comprehensive utilization analysis for the server and improve the accuracy of server utilization calculation. The execution subject of this embodiment is a server management system or management device, including but not limited to a data center management system, a cloud platform management system, a performance analysis tool, and a device for operating the management system. The specific execution steps are as follows: Figure 1 As shown, at least steps 101-103 are included.
[0027] 101. Determine a target calculation rule corresponding to the server.
[0028] In this embodiment, the target calculation rule is set according to the resource data performance and business environment of the corresponding server. It should be noted that the resource data performance is used to characterize the resource usage of the server during operation, specifically referring to whether there are abnormal resource usage of resource indicators such as the server's CPU, memory, disk and network. The business environment is divided based on the operating environment in which the server is located during operation and the business needs of the business carried. For the operating environment, such as pre-release, simulation, and test environment middleware (redis, mq, kafka) or services, it can be defined as a normal environment, and production environment middleware or services (oa, mail, gitlab) can be special environments. Business needs are used to characterize the resource stability requirements of the server carrying different businesses. Businesses such as payment settlement and online services that need to maintain high availability and continuity can be defined as critical businesses, while businesses with low requirements for availability and continuity can be defined as ordinary businesses.
[0029] Since the resource data performance and business environment corresponding to different servers may be different, in order to adapt the calculation rules to the actual usage of the server, thereby ensuring the accuracy of the subsequent utilization calculation, the relevant information of the server can be collected first, including but not limited to historical resource indicators (such as CPU, memory, disk and network, etc.), attribute tags (such as environment type tags, business type tags, cluster belonging tags, etc.), etc., and then the specific numerical conditions of each resource indicator in the historical resource indicators are analyzed, and the business environment to which the server belongs is determined by analyzing the attribute tags, and a targeted calculation rule is set for the server according to the analysis results. Specifically, the corresponding relationship between the resource data performance and the business environment and the preset calculation rules can be constructed, or a corresponding relationship table between the resource data performance and the business environment and the preset calculation rules can be maintained, that is, a quick determination can be made through the corresponding relationship or table lookup. A pre-trained rule engine can also be deployed, which obtains the analysis results by analyzing the real-time resource data and business environment, and calculates the degree of fit with the preset calculation rules based on the analysis results, thereby realizing dynamic adjustment of the target calculation rules.
[0030] For example, for ordinary servers with relatively stable resource usage and environment type labels of test environment, the weighted average rule may be used as the target calculation rule to calculate the utilization rate; for special servers with relatively stable resource usage and business attribute labels of carrying key business, the hierarchical analysis rule may be used as the target calculation rule to comprehensively evaluate their utilization rate; and for servers with large fluctuations in resource usage (such as abnormal values and null values), whether they are ordinary servers or special servers, the fuzzy comprehensive evaluation rule may be used as the target calculation rule to comprehensively evaluate their utilization rate. By determining the target calculation rule in this way, the subsequent utilization calculation can be made consistent with the actual usage of different servers, and for servers with different resource data performance and business environments, corresponding target calculation rules can also be set, thereby enhancing the flexibility and pertinence of the calculation.
[0031] 102. Calculate the actual usage indicator set corresponding to the server.
[0032] In this embodiment, the real usage indicator set is an indicator set determined according to the resource fluctuation law of the server. The indicator set includes but is not limited to indicators such as CPU usage, memory usage, disk I / O, and network traffic. In order to make the real usage indicator set conform to the real usage of the server, the fluctuation law of the resource indicator data within the preset period can be analyzed first. The preset period can be customized by the user according to the needs. It can be calculated by statistical methods, such as obtaining the daily peak value of each resource indicator collected in minutes on a weekly basis, and calculating the average peak value and 95% percentile of the peak value, and then taking the average peak value of the weekly peak value or the maximum value of the 95% percentile on a monthly basis to form the real usage indicator set. It can also be analyzed by existing data analysis and mining technologies, such as time series analysis, trend analysis, etc. The fluctuation law of resource indicator data is analyzed, and this embodiment does not limit this. Determining the real usage indicator set by the resource fluctuation law can eliminate the short-term fluctuation impact of each resource indicator, identify the long-term fluctuation trend, and capture the highest pressure point of each resource indicator, so that the real usage indicator set can reflect the actual consumption of server resources, while taking into account the volatility of resource use, avoiding the deviation caused by data anomalies, and improving the effectiveness of the real usage indicator set.
[0033] 103. Analyze the actual usage indicator set according to the target calculation rules to obtain the corresponding comprehensive utilization rate of the server.
[0034] Since the target calculation rule has been determined in step 101 and the real index has been obtained in step 102, the target calculation rule can be used to analyze the real usage index set to obtain the comprehensive utilization rate. Specifically, the real usage index set can be weighted according to the target calculation rule. According to the target calculation rule, the corresponding weight is assigned to each resource index for quantitative calculation to obtain the score or weight score of each resource index. All the weighted real usage index set scores are accumulated or integrated according to a specific algorithm to calculate the comprehensive utilization rate of the server, thus realizing a multi-dimensional comprehensive evaluation of the server utilization rate. The comprehensive utilization rate can objectively, accurately and comprehensively reflect the resource utilization rate of the server throughout the life cycle or the specified time period.
[0035] Based on the above Figure 1It can be seen from the implementation method that, through the above technical scheme, a server utilization calculation method provided by the present application is that when it is necessary to calculate the utilization of the server, first determine the target calculation rule corresponding to the server, the target calculation rule is set according to the resource data performance and business environment of the server, and then calculate the actual usage indicator set corresponding to the server. The actual usage indicator set is an indicator set determined according to the resource fluctuation law of the server. Finally, the actual usage indicator set is analyzed according to the target calculation rule to obtain the comprehensive utilization rate corresponding to the server. Through the technical solution provided by the present application, it is possible to determine the target calculation rules according to the resource data performance and business environment of the server, so that the subsequent utilization calculation can meet the actual usage of different servers, thereby enhancing the flexibility and pertinence of the calculation. The actual usage indicator set is a set of indicators determined based on the resource fluctuation law of the server, which enables the subsequent calculation to not only use the usage of multiple resource indicators, but also combine the dynamic fluctuation law of resource usage, thereby avoiding the deviation caused by data anomalies. In other words, the target calculation rules are used to conduct a comprehensive analysis of the actual usage indicator set, thereby realizing a multi-dimensional comprehensive evaluation of server utilization. Compared with the previous utilization calculation that relies on a single resource indicator, it can analyze server utilization more accurately and comprehensively, improve the accuracy of server utilization calculation, and effectively provide support for the subsequent recovery and redistribution of servers with too low utilization.
[0036] Further, the preferred embodiment of the present application is in the above Figure 1 Based on this, a detailed description of the process of calculating server utilization is given. The specific steps are as follows Figure 2 As shown, steps 201-209 are included:
[0037] 201. Determine resource data performance of the server according to resource indicator data of the server within a preset period.
[0038] Among them, resource data performance includes data anomalies and data normality, and data anomalies are used to characterize the presence of abnormal values and / or null values in resource indicator data. In this step, the preset period can also be customized by the user according to needs, such as one month, one quarter, etc. First, various resource indicator data of the server are continuously collected within the preset period, including but not limited to key resource indicators such as CPU, memory, disk, network, etc. Then, the collected resource indicator data is preliminarily screened to identify whether there are data anomalies (such as values exceeding the physical upper limit of resource indicators) and data null values (such as data missing due to server failure or network interruption). If so, the resource data performance is confirmed as data anomalies, and the subsequent step 202 is executed. Otherwise, the resource data performance is confirmed as normal data. Then the subsequent step 203 is executed.
[0039] 202. Use fuzzy comprehensive evaluation method as the target calculation rule.
[0040] As can be seen from step 201, if the resource data shows data anomalies, it means that the resource usage is complex or fluctuates greatly. At this time, fuzzy comprehensive evaluation rules can be used as target calculation rules. For example, fuzzy membership functions can be used to process abnormal values and perform fuzzy evaluation and comprehensive scoring on resource usage.
[0041] 203. Determine the business environment of the server according to the attribute tag of the server.
[0042] Among them, the business environment includes a general environment and a special environment, and the special environment is used to characterize the production environment or the environment for executing key business. In this step, various attribute labels of the server are collected through the system background or management platform, including but not limited to server type, purpose, deployment service, department, cluster affiliation, geographical location and other information, so as to identify the business environment to which the server belongs. According to the server attribute label, the business environment of the server is divided into a general environment and a special environment. For example, a general environment usually refers to a pre-release environment, a test environment, or a production environment that carries non-critical business. A special environment refers to a production environment that carries critical business or has special requirements for stability and resource allocation. Normally, for servers with critical business or special requirements for stability and resource allocation, corresponding identification will be set in their attribute labels.
[0043] As can be seen from step 201, if the resource data is normal, it means that the fluctuation of resource usage is relatively stable. At this time, the weighted average rule can be used to assign dynamic weights according to the importance of each resource indicator and calculate the comprehensive utilization rate; or the hierarchical analysis rule can be used to determine the comprehensive utilization rate of the server according to the hierarchy and weight relationship of the evaluation indicators.
[0044] Since the weighted average rule is applicable to situations where the problem is relatively simple and the weights can be clearly set, while the hierarchical analysis rule is applicable to situations where the problem is complex, requires comprehensive consideration of multiple dimensions, and there is a mutual influence relationship between factors. Therefore, combined with the business environment, it is specifically divided into the following two situations:
[0045] Case 1:
[0046] For servers without special business or functional attributes, such as servers in pre-release, simulation, and test environments, their resource usage is relatively stable, with small fluctuations, and their resource requirements, business importance, and impact range are relatively clear. Using the weighted average method to calculate server utilization is more intuitive and simple. For example, weights are assigned according to the importance of each resource indicator (such as CPU, memory, disk, network, etc.), and then the actual value of each resource indicator is multiplied by the corresponding weight for weighted summation to obtain a concise comprehensive utilization value.
[0047] Case 2:
[0048] For servers in production environments or servers that perform key business, their resource usage is often more complicated, with higher requirements for resource allocation, stability, reliability, etc., and may involve decision factors at multiple levels. For example, core data servers, key business servers, etc., that is, their utilization calculation needs to be combined with factors such as the importance of the server in the entire business chain, service level, and dependency between resources. It is more appropriate to use the hierarchical analysis method, which can pre-build a hierarchical model, which is built according to the mutual influence relationship and logical hierarchy between each indicator in the real usage indicator set. For example, first define "server comprehensive utilization rate" as the highest target layer of the hierarchical model, and then define "CPU", "memory", "disk", "network" and other factors that affect the comprehensive utilization rate of the server as sub-goals to form a sub-goal layer. Finally, determine the mutual influence relationship and logical hierarchy between each sub-goal based on business needs, IT operation and maintenance practices, server technology principles or historical resource usage data. For example, CPU usage may affect memory usage, and increased network traffic may lead to an increase in disks, etc. By constructing a judgment matrix and calculating the weight vector, various resource indicators are comprehensively evaluated and compared, and ultimately a more comprehensive and detailed comprehensive utilization rate is obtained.
[0049] Through this differentiated methodology, the most suitable utilization calculation method can be used for servers in different business environments, which not only simplifies the calculation process in general environments, but also enables more detailed and comprehensive analysis and evaluation of servers in special environments, thereby improving the accuracy and applicability of subsequent utilization calculations.
[0050] 204. Use the weighted average rule as the target calculation rule.
[0051] When the data is normal and the business environment is normal, the weighted average rule is used as the target calculation rule to facilitate subsequent calculation of the comprehensive utilization rate.
[0052] 205. Use hierarchical analysis rules as target calculation rules.
[0053] When the data is normal and the business environment is a special environment, the hierarchical analysis rules are used as the target calculation rules to facilitate the subsequent calculation of the comprehensive utilization rate.
[0054] 206. Analyze the fluctuation pattern of resource indicator data within the preset period.
[0055] In this step, the fluctuation law is used to characterize the highest resource pressure point corresponding to each resource indicator data determined based on the dynamic change characteristics of each indicator data of the server within a preset period. The preset period can also be customized by the user according to the needs, such as one month, one quarter, etc., which can be the same as the preset period in the aforementioned step 201, or it can be different. For the analysis of the fluctuation law, a statistical method is specifically used: according to one week as a cycle, the various resource indicator data of the server are continuously collected in units of minutes, including CPU, memory, disk, network, etc. At the end of each day, the peak value of each resource indicator of the day is determined. For each week's data, the resource indicator peak value of each day within seven days is averaged to obtain the average peak value of the resource indicator in the week, so as to smooth out the daily fluctuations and better reflect the typical level of resource use. The weekly peak average values of a month are integrated together, and the maximum value of the weekly peak average value is selected from them. The maximum value can not only reduce the impact of short-term fluctuations, but also more accurately reflect the long-term trend, and also reflect the highest resource pressure point faced by the server in the month. Therefore, it is used as the real usage indicator of the resource indicator of the server in the month. In order to perform the subsequent step 207. In addition to taking the average peak value, the 95th or 99th percentile can also be used to replace the average peak value.
[0056] For example, assuming that the preset period is one month, taking CPU usage as an example, assuming that the CPU usage data of the server in a certain month is as follows:
[0057] Week 1: The CPU peak usage from Monday to Sunday was 80%, 82%, 85%, 81%, 83%, 84%, 86% respectively;
[0058] Week 2: The CPU peak usage from Monday to Sunday was 82%, 84%, 86%, 83%, 85%, 87%, 88% respectively;
[0059] Week 3: The CPU peak usage from Monday to Sunday was 85%, 87%, 89%, 86%, 88%, 89%, 90% respectively;
[0060] Week 4: Peak CPU usage from Monday to Sunday were 87%, 89%, 90%, 88%, 90%, 91%, 92% respectively.
[0061] Assuming the average peak value is used, through statistics, the average peak values from the first week to the fourth week are added and averaged in units of weeks, and are 84%, 86%, 89% and 90% respectively. The largest average peak value is selected as the real usage indicator of the CPU usage rate in that month, that is, the average peak value of the fourth week is selected as 90% as the largest average peak value, so 90% is determined to be the real usage indicator of the server CPU usage rate in that month.
[0062] Assuming that the 95th percentile is used, for each week, the CPU usage at the 95th percentile needs to be found. The 95th percentile represents that 95% of the CPU peak usage is lower than or equal to this value. Since there are 7 days of CPU peak usage per week, the 95th percentile usually falls in the second to last position after the data is sorted (because the 95% position is approximately 0.95*7=6.65, and the integer position closest to 6.65 is usually taken, that is, the value before the 7th position). Through statistics, the 95th percentiles from the first week to the fourth week after sorting are 86%, 88%, 90% and 92%. The largest 95th percentile is selected as the real usage indicator of the CPU usage in that month, that is, the average peak of the fourth week is selected as 92% as the largest average peak, so 92% is determined as the real usage indicator of the server CPU usage in that month.
[0063] 207. Integrate resource indicator data according to fluctuation rules to obtain a set of real usage indicators.
[0064] It should be noted that the real usage indicator set includes at least memory, disk, network, and CPU. Since the aforementioned step 206 is to calculate at least the real usage indicators such as memory, disk, network, and CPU separately, in this step, at least these four real usage indicators are put into one set to form a real usage indicator set including at least four indicators.
[0065] Furthermore, before executing steps 206-207, since the resource indicator data within the preset period may have data anomalies, errors are likely to occur if the actual usage indicator set is calculated at this time. Therefore, in order to ensure the accuracy of calculating the actual usage indicator set, specifically, before calculating the actual usage indicator set corresponding to the server, the steps also include: if it is a data anomaly, the abnormal values and / or null values in the resource indicator data are interpolated and filled according to the preset indicator conversion rules. The preset indicator conversion rules include any one or a combination of the following: abnormal values are interpolated and filled according to the theoretical upper limit value, null values are ignored when the server is in an abnormal operating state, and null values are interpolated and filled according to the estimated value calculated according to the previous and next valid values when the server is in a normal operating state.
[0066] In practical applications, the theoretical upper limit value is used to represent the theoretical extreme value of the resource indicator, such as the theoretical upper limit value of CPU usage is 100%.
[0067] For outliers, replace them with the theoretical upper limit, which is 100%. For example, if the CPU usage recorded at a certain moment is 120%, this value is adjusted to 100% when calculating the actual usage indicator.
[0068] For the processing of null values: first determine whether the server is in an abnormal operating state at the time, such as server downtime, restart or maintenance; if it is in an abnormal operating state, then the missing data during this period can be regarded as invalid data, which can be ignored and not included in the calculation of the real usage index; if the server is in a normal operating state when the null value data is generated, the null value can be processed by interpolation filling method. For example, linear interpolation, spline interpolation or other appropriate interpolation algorithms can be used to calculate an estimated value based on the valid values before and after the null value to replace the null value.
[0069] For example, assume that the CPU data of the server in a preset period is:
[0070] 10:00 - 90%; 10:15 - data missing (null value); 10:30 - 95%; 10:45 - data missing (null value); 11:00 - 110% (outlier); 11:15 - 85%.
[0071] For the abnormal value 110% at 11:00, it is replaced with the theoretical upper limit value 100%; for the data loss (null value) at 10:15 and 10:45, if the server is in normal operation at these two time points, interpolation can be used to fill in. For example, through linear interpolation, the CPU usage at these two time points is estimated based on the previous and next valid values, which are approximately (90% + 95%) / 2 = 92.5% and (95% + 85%) / 2 = 90%, respectively. If the server is not operating normally at these two time points, these two data are ignored.
[0072] 208. Analyze the actual usage indicator set according to the target calculation rule to obtain the corresponding comprehensive utilization rate of the server.
[0073] This step is combined with the description of step 104 in the above method, and the same content is not repeated here. It should be noted that since the target calculation rule may refer to one of the fuzzy comprehensive evaluation method, the weighted average method or the hierarchical analysis method, the corresponding situations of the three calculation rules are described below:
[0074] Case 1: The target calculation rule is a fuzzy comprehensive evaluation rule; the actual usage indicator set is analyzed according to the target calculation rule to obtain the corresponding comprehensive utilization rate of the server, including: using a preset fuzzy membership function to map each indicator in the actual usage indicator set to obtain the membership corresponding to each indicator; performing fuzzy operation on the membership corresponding to each indicator to obtain the corresponding comprehensive utilization rate of the server.
[0075] Among them, the preset fuzzy membership function is used to map specific values to different levels or categories in the fuzzy set. When setting the fuzzy membership function, it is necessary to predefine the fuzzy evaluation index set, the comment level and the form of the design membership function. For example, a fuzzy set used to describe the server resource utilization is determined, such as the comment set can be defined as {very low, low, medium, high, very high}, and the form of the membership function includes but is not limited to a triangular membership function, a trapezoidal membership function, a Gaussian membership function, etc.
[0076] Taking the triangle membership function as an example, for the CPU indicator, a membership function corresponding to a five-level fuzzy comment set is set:
[0077] Very low: When the CPU is less than 30%, the membership is 1, and decreases linearly to 0 between 30% and 40%;
[0078] Low: When the CPU is between 30% and 50%, the membership increases from 0 to 1, and decreases linearly to 0 between 50% and 60%;
[0079] Middle: The membership increases from 0 to 1 when the CPU is between 50% and 70%, and then decreases to 0 between 70% and 80%;
[0080] High: The membership increases from 0 to 1 when the CPU is between 70% and 90%, and then decreases to 0 between 90% and 100%;
[0081] Very high: When the CPU is greater than or equal to 90%, the membership is 1.
[0082] If the current CPU usage is 75%:
[0083] The membership at the "low", "very low" and "very high" comment levels is 0, and the membership at the "medium" and "high" comment levels is calculated by the function: membership "medium" = 1-(75-70) / (80-75) = 1-0.5 = 0.5, membership "high" = 1-(75-70) / (80-75) = 1-0.5 = 0.5. According to the membership value and weight of each resource indicator, the fuzzy weighted sum or other fuzzy operation methods are used to obtain the fuzzy comment set and membership vector of the server comprehensive utilization rate, and finally converted into a clear comprehensive utilization rate through the defuzzification method.
[0084] For example, suppose there is a database server running in a production environment. The server runs normally for most of the month, but due to business peaks and some abnormal events (such as sudden large-scale query requests, data migration tasks, etc.), resource usage data in some time periods is abnormal. Among them, the indicators are set as: CPU, memory, disk, network; the corresponding fuzzy evaluation indicator set and comment set: CPU: {very low, relatively low, general, relatively high, very high}; memory: {very low, relatively low, general, relatively high, very high}; disk: {very low, relatively low, general, relatively high, very high}; {very low, relatively low, general, relatively high, very high}; preset fuzzy evaluation function: for CPU, because the usage rate is generally between 30% and 80% under normal circumstances, but in a few days at the beginning of the month, due to the sudden business peak, the CPU usage rate reaches more than 100%, that is, this part of the data is regarded as an abnormal value, and a fuzzy evaluation of "very high" is given to it. There are similar situations for memory, disk and network. The fuzzy evaluation is set according to the actual usage and threshold. The weight distribution is: CPU weight 0.4; memory weight 0.3; disk weight 0.2; network weight 0.1.
[0085] For abnormal values, such as the case where the CPU is 110%, it is assigned a membership degree under the comment of "very high" according to the actual situation, for example, 0.9. For data in other normal time periods, the corresponding fuzzy comment membership is also assigned. The fuzzy comment membership of all indicators is multiplied by the weight and then summed to obtain the comprehensive fuzzy evaluation of the server in that month. The fuzzy evaluation is converted into a specific value through a suitable defuzzification method (such as the centroid method or the maximum membership method), which is the comprehensive utilization rate of the server under abnormal data conditions. In the case of abnormal data, the usage of server resources is comprehensively considered to more accurately evaluate the utilization rate of the server.
[0086] Case 2: The target calculation rule is the weighted average rule; the actual usage indicator set is analyzed according to the target calculation rule to obtain the comprehensive utilization rate of the server, including: determining the weight coefficient corresponding to each indicator according to the importance of each indicator in the actual usage indicator set; performing weighted calculation on the actual value of each indicator and the weight coefficient corresponding to each indicator to obtain the comprehensive utilization rate of the server.
[0087] Among them, the importance is used to characterize the relative contribution of each indicator to the overall resource consumption of the server. It usually needs to be comprehensively judged based on factors such as business needs, server roles, resource scarcity, and the impact of resources on server performance. For example: for CPU-intensive applications, the weight of CPU utilization may be higher; for memory-sensitive services, the weight of memory utilization will increase accordingly; for servers that frequently read and write large files, the weight of disk I / O may be larger; for servers with frequent network transmission, the weight of network traffic may dominate. The weight coefficient can be set through expert experience and actual observation data. By combining this weight coefficient, the utilization of the server can be quantitatively evaluated under comprehensive consideration of the use of various resources.
[0088] For example, suppose there is an ordinary web server whose metrics include CPU usage, memory usage, disk usage, and network bandwidth usage. Assume that the preset weights are CPU-30%, memory-30%, disk-20%, and network-20%. The data collected this week shows that the CPU usage is 70% on average, the memory usage is 80% on average, the disk usage is 50% on average, and the network bandwidth usage is 60% on average;
[0089] Then, comprehensive utilization rate = 0.3*0.7+0.3*0.8+0.2*0.5+0.2*0.6=0.67. That is, the comprehensive utilization rate of the Web server this week is about 67%.
[0090] Case three: The target calculation rule is a hierarchical analysis rule; the actual usage indicator set is analyzed according to the target calculation rule to obtain the corresponding comprehensive utilization rate of the server, including: constructing a judgment matrix using a preset hierarchical structure model and the importance of each indicator in the actual usage indicator set; calculating the weight coefficient corresponding to each indicator according to the judgment matrix; performing weighted operation on the actual value of each indicator and the weight coefficient corresponding to each indicator to obtain the corresponding comprehensive utilization rate of the server.
[0091] Among them, the hierarchical model is constructed according to the mutual influence relationship and logical hierarchy between each indicator in the real usage indicator set, and the importance is used to characterize the relative contribution of each indicator to the overall resource consumption of the server. Specifically, since the final output of the hierarchical model is the comprehensive utilization rate of the server, and the real usage indicator set includes at least CPU, memory, disk, network, etc., which are all key resource indicators that affect the comprehensive utilization rate of the server. Therefore, "comprehensive utilization rate of the server" is defined as the highest target layer of the hierarchical model, and "CPU", "memory", "disk" and "network" that affect the comprehensive utilization rate of the server are defined as sub-goals to form a sub-goal layer. The mutual influence relationship and logical hierarchy between each indicator can be determined according to business needs, IT operation and maintenance practices, server technical principles or historical resource usage data. For example, according to the business type, business characteristics and resource requirements carried by the server, the role and status of each resource indicator in the business operation are analyzed, and excessive CPU usage may cause increased memory pressure, and increased network traffic may increase disk I / O. The hierarchical model is constructed through the mutual influence relationship and logical hierarchy between each indicator. For each indicator in the sub-goal layer, a judgment matrix for pairwise comparison is constructed according to its relative contribution to the overall resource consumption of the server. The 1-9 scaling method is used specifically. For example, for CPU and memory, the two are compared at the level of equal importance, slightly important, obviously important, and very important, and the comparison results are filled in the matrix. The judgment matrix is usually an n*n matrix (n is the number of indicators). The maximum eigenvalue of the judgment matrix and the corresponding eigenvector are calculated. The normalized result of the eigenvector is the weight coefficient of each indicator. Multiply the actual value of each actual usage indicator by its corresponding weight coefficient, and then sum the weighted values to obtain the comprehensive utilization rate of the server. A comprehensive evaluation of server resource utilization is achieved from a multi-dimensional and multi-level perspective.
[0092] For example, assuming there is a core database server, its evaluation indicators, in addition to the above-mentioned CPU, memory, disk and network, also need to consider multi-dimensional indicators such as service response time, transaction processing capability, data security, etc. The hierarchical analysis method first constructs a multi-level evaluation model, that is, a hierarchical structure model, for example: the first level: the overall comprehensive performance of the server (comprehensive utilization rate); the second level: core resources (CPU, memory, disk, network); the third level: service quality (response time, transaction processing capability).
[0093] Assume that the calculation of weight coefficients has been completed, among which: CPU weight 0.4; memory weight 0.3; disk 0.2; network weight 0.1; response time weight 0.3; transaction processing capacity weight 0.7; and the actual usage indicators are: CPU 70%; memory 80%; disk 60%; network 50%; service response time score 80%; transaction processing capacity score 90%.
[0094] Then, CPU weighted score: 0.4*70% = 28%; memory weighted score: 0.3*80% = 24%; disk weighted score: 0.2*60% = 12%; network weighted score: 0.1*50% = 5%; response time weighted score: 0.3*80% = 24%; transaction processing capacity weighted score: 0.7*90% = 63%; server comprehensive utilization = 28% + 24% + 12% + 5% + 24% + 63% = 156%. Because the comprehensive utilization should not exceed 100%, it needs to be normalized, dividing 156% by the total weight (calculated as 2.0 in this example), and the server comprehensive utilization is about 78%.
[0095] 209. If the comprehensive utilization rate is lower than the preset low utilization rate threshold, the server is determined to be a low utilization rate server, and it is determined whether to trigger a low utilization rate alarm instruction according to the business environment.
[0096] The preset low utilization threshold is used to represent the threshold set according to business needs or operation and maintenance strategies, such as 30%, 20%, etc. When the comprehensive utilization of the server is lower than the preset low utilization threshold, it will be identified as a low utilization server. In order to improve the timeliness of knowing low utilization servers, when the comprehensive utilization is lower than the preset threshold, it is determined whether to trigger the low utilization alarm instruction according to the business environment. Specifically:
[0097] When the business environment is a normal environment, a low utilization alarm instruction is triggered;
[0098] When the business environment is a special environment, the low utilization alarm instruction is not triggered or the low utilization alarm instruction is triggered when the preset conditions are met. For example, the preset conditions are non-business peak hours or no impact on existing services. Through this implementation method, the stability and continuity of key businesses can be ensured, and additional risks caused by optimizing resources at critical moments, resulting in business interruption or performance degradation, can be avoided, while sufficient flexibility is reserved to cope with emergencies or potential growth in resource demand.
[0099] The alarm instruction includes detailed information such as the server name, current comprehensive utilization, preset low utilization threshold, and specific time when the alarm occurs. The corresponding alarm methods include sending email notifications to operation and maintenance personnel, displaying alarm prompts on the monitoring platform, SMS or phone notifications, etc. This embodiment does not limit this. After receiving the alarm, the operation and maintenance personnel can promptly analyze the reasons for the low utilization of the server and formulate improvement measures, such as resource recovery, downgrade or merger, etc., to reduce unnecessary waste of resources.
[0100] Furthermore, in order to visualize or compare the comprehensive utilization rate of the server and related resource indicators, specifically, the comprehensive utilization rate and actual usage indicators of the server are visualized according to the display requirements to obtain the resource chart of the server. Among them, the display requirements include single display, combined display, comparative display, etc., and the corresponding display templates can be pre-set. The visualization tools include but are not limited to Grafana, Zabbix, Prometheus, Kibana, Tableau or Excel. In the resource chart of the server, for the comprehensive utilization rate, a line chart, a bar chart or a pie chart can be created to show the trend of changes over time, or the proportion at a certain moment. For the actual usage indicators, sub-charts are created to show the change curves of each indicator over time, which can be line charts, area charts, etc., so as to observe the relationship and trend between different indicators.
[0101] Furthermore, as a response to the above Figure 1-2 The implementation of the method embodiment shown in the figure, the embodiment of the present application provides a server utilization calculation device, which is used to provide accurate and comprehensive utilization analysis for the server, and improve the accuracy of server utilization calculation. The embodiment of the device corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 3 As shown, the device comprises:
[0102] A determination unit 31, used to determine a target calculation rule corresponding to the server, wherein the target calculation rule is determined according to resource data representation and business environment of the corresponding server;
[0103] A calculation unit 32, used to calculate a real usage indicator set corresponding to the server, wherein the real usage indicator set is an indicator set determined according to a resource fluctuation law of the server;
[0104] The analyzing unit 33 is used to analyze the real usage indicator set of the calculating unit 32 according to the target calculation rule of the determining unit 31 to obtain the comprehensive utilization rate corresponding to the server.
[0105] Further, such as Figure 4 As shown, the determining unit 31 includes:
[0106] A first determination module 311 is used to determine the resource data performance of the server according to the resource indicator data of the server within a preset period, wherein the resource data performance includes data anomaly and data normality, and the data anomaly is used to indicate that an abnormal value and / or a null value appear in the resource indicator data;
[0107] A first processing module 312, configured to use a fuzzy comprehensive evaluation rule as the target calculation rule if the first determining module 312 determines that the resource data exhibits the data anomaly;
[0108] The second processing module 313 is configured to use a weighted average rule or a hierarchical analysis rule as the target calculation rule if the first determining module 311 determines that the resource data is normal.
[0109] Further, such as Figure 4 As shown, the device also includes:
[0110] A second determination module 314 is used to determine the business environment of the server according to the attribute tag of the server before the second processing module 313, wherein the business environment includes a common environment and a special environment, and the special environment is used to characterize a production environment or an environment for executing key business;
[0111] The second processing module 313 is specifically used to:
[0112] If it is the common environment, the weighted average rule is used as the target calculation rule;
[0113] If it is the special environment, the hierarchical analysis rule is used as the target calculation rule.
[0114] Further, such as Figure 4 As shown, the device also includes:
[0115] The conversion unit 34 is used to interpolate and fill the abnormal value and / or the null value in the resource indicator data according to a preset indicator conversion rule if the data is abnormal before the calculation unit 32, and the preset indicator conversion rule includes any one of the following items or a combination: the abnormal value is interpolated and filled according to the theoretical upper limit value, the null value is ignored when the server is in an abnormal operating state, and the null value is interpolated and filled according to the estimated value calculated according to the previous and next valid values when the server is in a normal operating state.
[0116] Further, such as Figure 4 As shown, the calculation unit 32 includes:
[0117] An acquisition module 321 is used to acquire the fluctuation pattern of the resource indicator data within the preset period;
[0118] The processing module 322 is used to integrate the resource indicator data according to the fluctuation law of the acquisition module 321 to obtain the real usage indicator set.
[0119] Further, such as Figure 4 As shown, the target calculation rule is the fuzzy comprehensive evaluation rule; the analysis unit 33 includes:
[0120] A mapping module 331 is used to map each indicator in the real usage indicator set using a preset fuzzy membership function to obtain the membership corresponding to each indicator;
[0121] The first calculation module 332 is used to perform fuzzy calculation on the membership degree corresponding to each of the indicators of the mapping module 331 to obtain the comprehensive utilization rate corresponding to the server.
[0122] Further, such as Figure 4 As shown, the target calculation rule is the weighted average rule; the analysis unit 33 includes:
[0123] A determination module 333, configured to determine a weight coefficient corresponding to each indicator according to the importance of each indicator in the real usage indicator set, wherein the importance is used to characterize the relative contribution of each indicator to the overall resource consumption of the server;
[0124] The processing module 334 is used to perform weighted calculation on the actual value of each of the indicators and the weight coefficient corresponding to each of the indicators in the determination module 333 to obtain the comprehensive utilization rate corresponding to the server.
[0125] Further, such as Figure 4 As shown, the target calculation rule is the hierarchical analysis rule; the analysis unit 33 includes:
[0126] A construction module 335 is used to construct a judgment matrix using a preset hierarchical model and the importance of each indicator in the real usage indicator set, wherein the hierarchical model is constructed according to the mutual influence relationship and logical hierarchy between each indicator in the real usage indicator set, and the importance is used to characterize the relative contribution of each indicator to the overall resource consumption of the server;
[0127] A second calculation module 336, used to calculate the weight coefficient corresponding to each of the indicators according to the judgment matrix of the construction module 336;
[0128] The third calculation module 337 is used to perform weighted calculation on the actual value of each of the indicators and the weight coefficient corresponding to each of the indicators of the second calculation module 336 to obtain the comprehensive utilization rate corresponding to the server.
[0129] Further, such as Figure 4 As shown, the device also includes:
[0130] The processing unit 35 is used to determine that the server is a low-utilization server if the comprehensive utilization is lower than a preset low-utilization threshold, and determine whether to trigger a low-utilization alarm instruction according to the business environment.
[0131] Further, such as Figure 4 As shown, the actual usage indicator set includes at least memory, disk, network, and CPU.
[0132] Furthermore, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The server utilization calculation method described in .
[0133] Furthermore, the embodiment of the present application also provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 The server utilization calculation method described in .
[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0137] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of implementation of the application.
[0138] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0143] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0144] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0145] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0146] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0147] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0148] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for calculating server utilization, characterized in that: The method comprises: Determine a target calculation rule corresponding to the server, wherein the target calculation rule is set according to resource data representation and business environment of the server; Calculating a real usage indicator set corresponding to the server, where the real usage indicator set is an indicator set determined according to a resource fluctuation law of the server; The actual usage indicator set is analyzed according to the target calculation rule to obtain the comprehensive utilization rate corresponding to the server.
2. The method according to claim 1, characterized in that Determine the target calculation rules corresponding to the server, including: Determine the resource data performance of the server according to the resource indicator data of the server within a preset period, wherein the resource data performance includes data abnormality and data normality, and the data abnormality is used to indicate that an abnormal value and / or a null value appear in the resource indicator data; If the data is abnormal, the fuzzy comprehensive evaluation rule is used as the target calculation rule; If the data is normal, the weighted average rule or the hierarchical analysis rule is used as the target calculation rule.
3. The method according to claim 2, characterized in that Before using the weighted average method or the analytic hierarchy process as the target calculation rule, the method further includes: Determine the business environment of the server according to the attribute tag of the server, wherein the business environment includes a general environment and a special environment, wherein the special environment is used to characterize a production environment or an environment for executing key business; If it is the common environment, the weighted average rule is used as the target calculation rule; If it is the special environment, the hierarchical analysis rule is used as the target calculation rule.
4. The method according to claim 2, characterized in that: Before calculating the actual usage indicator set corresponding to the server, the method further includes: If the data is abnormal, the abnormal value and / or the empty value in the resource indicator data is interpolated and filled according to the preset indicator conversion rule, and the preset indicator conversion rule includes any one of the following items or combinations: the abnormal value is interpolated and filled according to the theoretical upper limit value, the empty value is ignored when the server is in an abnormal operating state, and the empty value is interpolated and filled according to the estimated value calculated according to the previous and next valid values when the server is in a normal operating state.
5. The method according to claim 4, characterized in that The actual usage indicator set corresponding to the computing server includes: Analyzing the fluctuation pattern of the resource indicator data within the preset period; The resource indicator data is integrated according to the fluctuation law to obtain the real usage indicator set.
6. The method according to any one of claims 2 and 3, characterized in that The actual usage indicator set is analyzed according to the target calculation rule to obtain a comprehensive utilization rate corresponding to the server, including: Using a preset fuzzy membership function to map each indicator in the real usage indicator set, obtaining the membership corresponding to each indicator, and performing fuzzy operation on the membership corresponding to each indicator to obtain the comprehensive utilization rate corresponding to the server; or, Determine the weight coefficient corresponding to each indicator according to the importance of each indicator in the real usage indicator set, and perform weighted calculation on the actual value of each indicator and the weight coefficient corresponding to each indicator to obtain the comprehensive utilization rate corresponding to the server; or, A judgment matrix is constructed using a preset hierarchical model and the importance of each indicator in the real usage indicator set, and the weight coefficient corresponding to each indicator is calculated according to the judgment matrix. The actual value of each indicator and the weight coefficient corresponding to each indicator are weighted to obtain the comprehensive utilization rate corresponding to the server.
7. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If the comprehensive utilization is lower than a preset low utilization threshold, the server is determined to be a low utilization server, and it is determined whether to trigger a low utilization alarm instruction based on the business environment.
8. A server utilization calculation device, characterized in that: The device comprises: A determination unit, used to determine a target calculation rule corresponding to the server, wherein the target calculation rule is determined according to resource data representation and business environment of the corresponding server; A calculation unit, used to calculate a real usage indicator set corresponding to the server, wherein the real usage indicator set is an indicator set determined according to a resource fluctuation law of the server; The analyzing unit is used to analyze the real usage indicator set of the computing unit according to the target computing rule of the determining unit to obtain the comprehensive utilization rate corresponding to the server.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the server utilization calculation method according to any one of claims 1 to 7.
10. A processor, characterized in that: The processor is used to run a program, wherein the program executes the server utilization calculation method according to any one of claims 1 to claim 7 when running.
Citation Information
Cited By
Intelligent cost compiling and auditing method based on artificial intelligence in communication network
CN119417170A
