Resource use evaluation method and device, equipment, medium and program product

By obtaining and evaluating the inefficient resources of storage and computing technical indicators, and calculating indicator evaluation values, the problem of single resource utilization of tenants is solved, comprehensive assessment and governance guidance of resource use is achieved, and resource waste and hardware investment are reduced. .

CN118550704APending Publication Date: 2024-08-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711359.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, a single indicator of tenant resource utilization cannot meet complex tenant application scenarios, and cannot effectively evaluate and improve tenant resource usage efficiency.

Method used

By obtaining storage and computing technical indicators, the indicator results are calculated according to the inefficient resource judgment conditions, and the indicator evaluation values ​​are calculated based on these results to evaluate resource usage efficiency.

Benefits of technology

It achieves a comprehensive and accurate assessment of tenant resource usage, provides precise guidance for resource management, and reduces resource waste and unnecessary hardware investment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550704A
    Figure CN118550704A
Patent Text Reader

Abstract

The invention provides a resource use evaluation method which can be applied to the technical field of big data. The resource use evaluation method comprises the steps that N technical indexes of a first user are acquired, N is a positive integer, and the N technical indexes comprise storage type technical indexes and calculation type technical indexes; calculating the N technical indexes according to low-efficiency resource judgment conditions in one-to-one correspondence with the N technical indexes to obtain N index results; and calculating an index evaluation value based on the N index results. The invention further provides a resource use evaluation device and equipment, a medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of big data technology, and more specifically to a resource use evaluation method, device, equipment, medium and program product. Background Art

[0002] Tenants are individuals, organizations or enterprises that store, process and analyze large amounts of data in a big data environment. When using big data services, you need to consider whether the tenant's resource usage is reasonable, and if the tenant's resource usage is unreasonable, take certain governance measures to ensure reasonable resource usage.

[0003] In the prior art, in order to determine whether tenant resources are used reasonably, resource evaluation is often performed through tenant resource utilization, and then certain governance measures are implemented based on the evaluation results of resource utilization. For example, if the management allocates more resources to a tenant, but the actual tenant usage is small, it is determined that the tenant has low resource utilization, and fewer resources are subsequently allocated. The single indicator of resource utilization is no longer able to meet the complex tenant application scenarios. A new resource usage evaluation method is urgently needed to evaluate tenant resource usage, which can help tenants improve the efficiency of resource usage. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a resource usage evaluation method, apparatus, device, medium and program product for improving tenant resource usage efficiency.

[0005] According to the first aspect of the present disclosure, a resource usage evaluation method is provided, characterized in that the method includes: obtaining N technical indicators of a first user, N is a positive integer, wherein the N technical indicators include storage-type technical indicators and computing-type technical indicators; calculating the N technical indicators according to inefficient resource judgment conditions corresponding one-to-one to the N technical indicators to obtain N indicator results; and calculating an indicator evaluation value based on the N indicator results.

[0006] According to an embodiment of the present disclosure, the N technical indicators are calculated according to the inefficient resource judgment conditions corresponding one-to-one to the N technical indicators to obtain N indicator results, including: for any technical indicator, obtaining the corresponding inefficient resource judgment condition; judging whether the technical indicator meets the inefficient resource judgment condition; and if the technical indicator meets the inefficient resource judgment condition, judging that the indicator result is an inefficient resource; or, if the technical indicator does not meet the inefficient resource judgment condition, judging that the indicator result is a non-inefficient resource.

[0007] According to an embodiment of the present disclosure, calculating the indicator evaluation value based on the N indicator results includes: allocating corresponding indicator cardinalities to the N indicator results to obtain N indicator cardinalities; and calculating the indicator evaluation value based on preset weights corresponding one to one to the N indicator cardinalities in combination with the N indicator cardinalities.

[0008] According to an embodiment of the present disclosure, corresponding indicator bases are allocated to the N indicator results to obtain N indicator bases, including: when the indicator result is an inefficient resource, a corresponding first indicator base is allocated; and when the indicator result is a non-inefficient resource, a corresponding second indicator base is allocated.

[0009] According to an embodiment of the present disclosure, the storage-type technical indicators include: the space occupied by uncleaned backup tables, the space occupied by spaces without lifecycle management, the space occupied by uncompressed spaces, the space occupied by redundant data, the space occupied by tables that have not been accessed for a long time, the number of fragmented tables, the space occupied by tilted tables, the space occupied by fragmented tables, and the space occupied by tables with less than a preset number of rows; and the computing-type technical indicators include: the proportion of computing consumption of the first inefficient query, the proportion of computing consumption of the second inefficient query, and low resource utilization.

[0010] According to an embodiment of the present disclosure, the determination of whether the technical indicator meets the inefficient resource determination condition includes: for the uncleared space occupancy of the backup table, determining whether the backup table exceeds a first preset time threshold; for the space occupancy without lifecycle management, determining whether the data table has lifecycle management; for the uncompressed space occupancy, determining whether the data table is in a preset compression format; for the redundant data storage space occupancy, determining whether the same data table exists; for the space occupancy of the long-term unaccessed table, determining whether the data table appears in a structured query statement within a first preset time period; for the number of fragmented tables, determining whether the average file size of the files in the data table is less than a preset file size threshold, and determining whether the ratio of the number of files in the data table to the number of partitions is greater than a first preset ratio threshold; for the tilted table space occupancy, determining whether the table tilt rate of the data table is greater than a first preset tilt rate threshold; for the fragmented table space occupancy, determining whether the ratio of the size of the data table to the number of files in the table is less than a second preset ratio threshold; and for the table space occupancy less than the preset number of rows, determining whether the number of rows in the data table is less than the preset number of rows threshold.

[0011] According to an embodiment of the present disclosure, the judging whether the technical indicators meet the inefficient resource judgment conditions also includes: for the first inefficient query computing consumption ratio, determining the first inefficient query statement; obtaining the first computing resource consumption of the first inefficient query statement; judging whether the first computing resource consumption exceeds the first preset resource consumption threshold; for the second inefficient query computing consumption ratio, determining the second inefficient query statement; obtaining the second computing resource consumption of the second inefficient query statement; judging whether the second computing resource consumption exceeds the second preset resource consumption threshold; and for the low resource utilization rate, judging whether the resource utilization lower than the preset resource utilization rate within a second preset time period is greater than the second preset time threshold.

[0012] According to an embodiment of the present disclosure, determining the first inefficient query statement includes: when the query statement satisfies at least one of the first inefficient query statement condition set, it is determined to be the first inefficient query statement, wherein the first inefficient query statement condition set includes: the output data of the query statement is greater than a preset multiple of the input data, and the execution time of the query statement exceeds the first preset execution time; the query statement is skewed, and the execution time exceeds the second preset execution time; the query statement contains a preset target keyword, and the execution time exceeds the third preset execution time; and the number of table partitions involved in the query statement exceeds a preset partition number threshold, and the execution time exceeds a fourth preset execution time.

[0013] According to an embodiment of the present disclosure, determining the second inefficient query statement includes: when the query statement satisfies at least one of the second inefficient query statement condition set, it is judged as the second inefficient query statement, wherein the second inefficient query statement condition set includes: the maximum disk placement of a single node corresponding to the query statement exceeds a preset disk placement threshold, and the execution time exceeds the fifth preset execution time; and the data skew ratio between the data nodes corresponding to the query statement exceeds the second preset skew rate threshold, and the execution time exceeds the sixth preset execution time.

[0014] A second aspect of the present disclosure provides a resource usage evaluation device, including: a technical indicator acquisition module, used to acquire N technical indicators of a first user, N is a positive integer, wherein the N technical indicators include storage-type technical indicators and computing-type technical indicators; an indicator result calculation module, used to calculate the N technical indicators according to inefficient resource judgment conditions corresponding to the N technical indicators one by one, to obtain N indicator results; and an indicator evaluation value calculation module, used to calculate an indicator evaluation value based on the N indicator results.

[0015] According to an embodiment of the present disclosure, the indicator result calculation module includes: a judgment condition acquisition unit, an inefficient indicator judgment unit and an indicator result calculation unit, the judgment condition acquisition unit is used to obtain the corresponding inefficient resource judgment condition for any technical indicator; the inefficient indicator judgment unit is used to judge whether the technical indicator meets the inefficient resource judgment condition; and the indicator result calculation unit is used to judge that the indicator result is an inefficient resource when the technical indicator meets the inefficient resource judgment condition; or, when the technical indicator does not meet the inefficient resource judgment condition, judge that the indicator result is a non-inefficient resource.

[0016] According to an embodiment of the present disclosure, the indicator evaluation value calculation module includes: an indicator cardinality allocation unit and an indicator evaluation value calculation unit, the indicator cardinality allocation unit is used to allocate corresponding indicator cardinalities to the N indicator results to obtain N indicator cardinalities; and the indicator evaluation value calculation unit is used to calculate the indicator evaluation value based on the preset weights corresponding one to one to the N indicator cardinalities and in combination with the N indicator cardinalities.

[0017] According to an embodiment of the present disclosure, the indicator cardinality allocation unit is specifically used to allocate a corresponding first indicator cardinality when the indicator result is an inefficient resource; and to allocate a corresponding second indicator cardinality when the indicator result is a non-inefficient resource.

[0018] According to an embodiment of the present disclosure, the storage-type technical indicators include: the space occupied by uncleaned backup tables, the space occupied by spaces without lifecycle management, the space occupied by uncompressed spaces, the space occupied by redundant data, the space occupied by tables that have not been accessed for a long time, the number of fragmented tables, the space occupied by tilted tables, the space occupied by fragmented tables, and the space occupied by tables with less than a preset number of rows; and the computing-type technical indicators include: the proportion of computing consumption of the first inefficient query, the proportion of computing consumption of the second inefficient query, and low resource utilization.

[0019] According to an embodiment of the present disclosure, the inefficiency index judgment unit is specifically used to, for the uncleared space occupancy of the backup table, determine whether the backup table exceeds a first preset time threshold; for the space occupancy without lifecycle management, determine whether the data table has lifecycle management; for the uncompressed space occupancy, determine whether the data table is in a preset compression format; for the redundant data storage space occupancy, determine whether the same data table exists; for the space occupancy of the long-term unaccessed table, determine whether the data table appears in a structured query statement within a first preset time period; for the number of fragmented tables, determine whether the average file size of the files in the data table is less than a preset file size threshold, and determine whether the ratio of the number of files in the data table to the number of partitions is greater than a first preset ratio threshold; for the tilted table space occupancy, determine whether the table tilt rate of the data table is greater than a first preset tilt rate threshold; for the fragmented table space occupancy, determine whether the ratio of the size of the data table to the number of files in the table is less than a second preset ratio threshold; and for the table space occupancy less than the preset number of rows, determine whether the number of rows in the data table is less than the preset number of rows threshold.

[0020] According to an embodiment of the present disclosure, the inefficiency index judgment unit is also specifically used to, for the first inefficient query computing consumption ratio, determine the first inefficient query statement; obtain the first computing resource consumption of the first inefficient query statement; judge whether the first computing resource consumption exceeds a first preset resource consumption threshold; for the second inefficient query computing consumption ratio, determine the second inefficient query statement; obtain the second computing resource consumption of the second inefficient query statement; judge whether the second computing resource consumption exceeds a second preset resource consumption threshold; and for the low resource utilization rate, judge whether the resource utilization lower than the preset resource utilization rate within a second preset time period is greater than a second preset time threshold.

[0021] According to an embodiment of the present disclosure, determining the first inefficient query statement includes: when the query statement satisfies at least one of the first inefficient query statement condition set, it is determined to be the first inefficient query statement, wherein the first inefficient query statement condition set includes: the output data of the query statement is greater than a preset multiple of the input data, and the execution time of the query statement exceeds the first preset execution time; the query statement is skewed, and the execution time exceeds the second preset execution time; the query statement contains a preset target keyword, and the execution time exceeds the third preset execution time; and the number of table partitions involved in the query statement exceeds a preset partition number threshold, and the execution time exceeds a fourth preset execution time.

[0022] According to an embodiment of the present disclosure, determining the second inefficient query statement includes: when the query statement satisfies at least one of the second inefficient query statement condition set, it is judged as the second inefficient query statement, wherein the second inefficient query statement condition set includes: the maximum disk placement of a single node corresponding to the query statement exceeds a preset disk placement threshold, and the execution time exceeds the fifth preset execution time; and the data skew ratio between the data nodes corresponding to the query statement exceeds the second preset skew rate threshold, and the execution time exceeds the sixth preset execution time.

[0023] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned resource usage evaluation method.

[0024] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned resource usage evaluation method.

[0025] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned resource usage evaluation method when executed by a processor.

[0026] In the embodiments of the present disclosure, in order to solve the technical problem of a single resource usage evaluation indicator, the embodiments of the present disclosure obtain multiple technical indicators starting from at least storage-type technical indicators and computing-type technical indicators, and generate corresponding indicator results for each technical indicator according to its corresponding judgment scheme of whether it is an inefficient indicator. Finally, an indicator evaluation value is formed by combining each indicator result, and the indicator evaluation value can be used to determine whether resource governance should be performed.

[0027] The embodiments of the present disclosure can achieve at least the following beneficial effects:

[0028] 1. Evaluate whether resources are wasted from the perspective of inefficient resources, i.e., resources that produce no value, or waste of resources due to unreasonable application use, and evaluate through indicators;

[0029] 2. Comprehensiveness: Involving multiple big data technology platforms, evaluated from the two dimensions of storage and computing;

[0030] 3. Feasibility: Based on the logic behind the indicators, by calculating the operational data, it is possible to evaluate whether the tenants’ resource usage is reasonable;

[0031] 4. Accurate evaluation: The proposed indicators and calculated results can be used as the content of subsequent inefficient resource management, providing accurate guidance for subsequent resource management;

[0032] 5. Cost savings: By evaluating whether the big data tenant resources are reasonable, we can better understand the tenants' resource usage, initiate guidance and governance, avoid resource waste caused by unreasonable resource usage by tenants, and reduce unnecessary hardware investment. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0034] Figure 1 The application scenario diagram of the resource use evaluation method according to the embodiment of the present disclosure is schematically shown;

[0035] Figure 2 A flowchart of a resource use evaluation method according to an embodiment of the present disclosure is schematically shown;

[0036] Figure 3 A flowchart of an indicator result calculation method according to an embodiment of the present disclosure is schematically shown;

[0037] Figure 4 A flowchart of a method for calculating an index evaluation value according to an embodiment of the present disclosure is schematically shown;

[0038] Figure 5 A schematic diagram showing a structural block diagram of a resource use evaluation device according to an embodiment of the present disclosure; and

[0039] Figure 6 A block diagram of an electronic device suitable for implementing a resource usage evaluation method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0041] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0042] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0043] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0044] In order to solve the technical problems existing in the prior art, an embodiment of the present invention provides a resource utilization evaluation method, characterized in that the method includes: obtaining N technical indicators of a first user, N is a positive integer, wherein the N technical indicators include storage-type technical indicators and computing-type technical indicators; calculating the N technical indicators according to inefficient resource judgment conditions corresponding one-to-one to the N technical indicators to obtain N indicator results; and calculating an indicator evaluation value based on the N indicator results.

[0045] In the embodiments of the present disclosure, in order to solve the technical problem of a single resource usage evaluation indicator, the embodiments of the present disclosure obtain multiple technical indicators starting from at least storage-type technical indicators and computing-type technical indicators, and generate corresponding indicator results for each technical indicator according to its corresponding judgment scheme of whether it is an inefficient indicator. Finally, an indicator evaluation value is formed by combining each indicator result, and the indicator evaluation value can be used to determine whether resource governance should be performed.

[0046] The embodiments of the present disclosure can achieve at least the following beneficial effects:

[0047] 1. Evaluate whether resources are wasted from the perspective of inefficient resources, i.e., resources that produce no value, or waste of resources due to unreasonable application use, and evaluate through indicators;

[0048] 2. Comprehensiveness: Involving multiple big data technology platforms, evaluated from the two dimensions of storage and computing;

[0049] 3. Feasibility: Based on the logic behind the indicators, by calculating the operational data, it is possible to evaluate whether the tenants’ resource usage is reasonable;

[0050] 4. Accurate evaluation: The proposed indicators and calculated results can be used as the content of subsequent inefficient resource management, providing accurate guidance for subsequent resource management;

[0051] 5. Cost savings: By evaluating whether the big data tenant resources are reasonable, we can better understand the tenants' resource usage, initiate guidance and governance, avoid resource waste caused by unreasonable resource usage by tenants, and reduce unnecessary hardware investment.

[0052] Figure 1 The application scenario diagram of the resource usage evaluation method according to an embodiment of the present disclosure is schematically shown.

[0053] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0054] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0055] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0056] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0057] It should be noted that the resource usage evaluation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the resource usage evaluation device provided in the embodiment of the present disclosure can generally be set in the server 105. The resource usage evaluation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the resource usage evaluation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0058] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0059] The following will be based on Figure 1 The scene described by Figure 2~Figure 4 The resource usage evaluation method of the disclosed embodiment is described in detail.

[0060] Figure 2 The flowchart of the resource usage evaluation method according to the embodiment of the present disclosure is schematically shown.

[0061] like Figure 2 As shown, the resource usage evaluation method of this embodiment includes operations S210 to S230, and the resource usage evaluation method can be executed by the server 105.

[0062] In operation S210, N technical indicators of the first user are obtained, where N is a positive integer, and the N technical indicators include storage technical indicators and computing technical indicators.

[0063] According to the dimensions of storage-related technical indicators and computing-related technical indicators, N technical indicators of a tenant are obtained from multiple different platforms respectively. The above N technical indicators are used to evaluate whether the tenant has inefficient resource usage. Among them, the storage-related technical indicators include one or more technical indicators, and the computing-related technical indicators include one or more technical indicators.

[0064] The above N technical indicators can be obtained from the technical indicators of the same user in different big data platforms. In a typical big data scenario, a series of big data inefficient resource technical indicators of a tenant on a big data batch platform (such as a distributed computing platform or a large-scale parallel processing database platform, an online analysis library, and a real-time computing technology platform) are obtained as the above N technical indicators.

[0065] According to an embodiment of the present disclosure, the storage-type technical indicators include: the space occupied by uncleaned backup tables, the space occupied by spaces without lifecycle management, the space occupied by uncompressed spaces, the space occupied by redundant data, the space occupied by tables that have not been accessed for a long time, the number of fragmented tables, the space occupied by tilted tables, the space occupied by fragmented tables, and the space occupied by tables with less than a preset number of rows; and the computing-type technical indicators include: the proportion of computing consumption of the first inefficient query, the proportion of computing consumption of the second inefficient query, and low resource utilization.

[0066] For storage technical indicators, the indicator introduction is as follows: Indicator introduction of uncleared space occupied by backup tables: backup tables are not cleaned up in time; Indicator introduction of space occupied without lifecycle management: no cleanup mechanism; Indicator introduction of uncompressed space occupied: data tables are not compressed or the compression rate is low; Indicator introduction of redundant data space occupied: the existence of identical tables; Indicator introduction of space occupied by tables that have not been accessed for a long time: they have not been accessed or called for a period of time; Indicator introduction of the number of fragmented tables: there are many small files under a single partition or too many partitions under a table; Indicator introduction of space occupied by skewed tables: unreasonable distribution key selection; Indicator introduction of space occupied by fragmented tables: there is unreleased space; Indicator introduction of space occupied by tables with less than the preset number of rows: the data volume is small and does not meet the business access specifications.

[0067] Among them, the technical indicators obtained from the distributed computing platform include: the space occupied by uncleared backup tables, the space occupied by tables without lifecycle management, the space occupied by uncompressed tables, the space occupied by redundant data, the space occupied by tables that have not been accessed for a long time, and the number of fragmented tables; the technical indicators obtained from the large-scale parallel processing database platform include: the space occupied by tilted tables and the space occupied by fragmented tables; the technical indicators obtained from the online analysis platform include: the space occupied by tables with less than the preset number of rows.

[0068] For computing technical indicators, the indicator introduction is as follows: First, the indicator introduction of the proportion of inefficient query computing consumption: resource consumption caused by non-standard writing in the distributed computing platform or unreasonable data provided by the upstream; Second, the indicator introduction of the proportion of inefficient query computing consumption: resource consumption caused by non-standard writing in the large-scale parallel processing database platform or unreasonable data provided by the upstream; Indicator introduction of low resource utilization: there are redundant applications for computing units, and the actual resource usage of the job is low.

[0069] Among them, the technical indicators obtained from the distributed computing platform include: the first inefficient query computing consumption ratio; the technical indicators obtained from the large-scale parallel processing database platform include: the second inefficient query computing consumption ratio; the technical indicators obtained from the real-time computing technology platform include: low resource utilization rate.

[0070] In operation S220, the N technical indicators are calculated according to the inefficient resource judgment conditions corresponding to the N technical indicators one by one, to obtain N indicator results.

[0071] Each technical indicator corresponds to its corresponding inefficient resource judgment condition, and the corresponding inefficient resource judgment condition can be used to judge whether the technical indicator is inefficient. The inefficient resource judgment condition integrates the calculation rules and / or judgment conditions of the corresponding technical indicator. Among them, the indicator result can be a quantitative result, for example, the calculated indicator result is a certain value; the indicator result can also be a qualitative result, for example, the calculated indicator result is an inefficient indicator or a non-inefficient indicator.

[0072] Figure 3 The flowchart of the indicator result calculation method according to the embodiment of the present disclosure is schematically shown.

[0073] like Figure 3 As shown, the indicator result calculation method of this embodiment includes operations S310 to S330, and operations S310 to S330 can at least partially execute the above-mentioned operation S220.

[0074] In operation S310, for any technical indicator, the corresponding inefficient resource judgment condition is obtained.

[0075] In operation S320, it is determined whether the technical indicator meets the inefficient resource determination condition.

[0076] Specifically, the inefficient resource judgment condition includes, for example, triggering certain inefficient events and judging them as inefficient indicators; the inefficient resource judgment condition includes, for example, judging certain quantitative indicators as inefficient indicators when they are lower than or higher than a certain threshold.

[0077] According to an embodiment of the present disclosure, the determination of whether the technical indicator meets the inefficient resource determination condition includes: for the uncleared space occupancy of the backup table, determining whether the backup table exceeds a first preset time threshold; for the space occupancy without lifecycle management, determining whether the data table has lifecycle management; for the uncompressed space occupancy, determining whether the data table is in a preset compression format; for the redundant data storage space occupancy, determining whether the same data table exists; for the space occupancy of the long-term unaccessed table, determining whether the data table appears in a structured query statement within a first preset time period; for the number of fragmented tables, determining whether the average file size of the files in the data table is less than a preset file size threshold, and determining whether the ratio of the number of files in the data table to the number of partitions is greater than a first preset ratio threshold; for the tilted table space occupancy, determining whether the table tilt rate of the data table is greater than a first preset tilt rate threshold; for the fragmented table space occupancy, determining whether the ratio of the size of the data table to the number of files in the table is less than a second preset ratio threshold; and for the table space occupancy less than the preset number of rows, determining whether the number of rows in the data table is less than the preset number of rows threshold.

[0078] For storage technical indicators, each technical indicator has its corresponding indicator judgment conditions and processing solutions, as shown below:

[0079] For example, for the backup table that has not been cleaned up, the backup table is marked with a suffix such as bak, and metadata is used to confirm whether there is a backup table that exceeds the time specified in the technical specification (i.e., the first preset time threshold). If exceeded, it is determined to be an inefficient resource, and a list is pulled out for recording, which includes the application to which the table belongs, the table name, and the storage space occupied.

[0080] For example, for the space occupancy without lifecycle management: when creating a table, clean up the historical partition data by configuring the lifecycle, and find out the tables without lifecycle configuration as inefficient resources by checking the configuration table. For the configured tables, find out the tables that do not meet the application specifications as inefficient resources. Pull out the table list of these tables for record, the list includes the application to which the table belongs, the table name, the storage space occupied, and the current lifecycle configuration.

[0081] For example, for the uncompressed space occupancy: the table should be stored in ORC (Optimized Row Columnar, a file format) format (i.e. the above preset compression format). If the table is in ORC format, it is an inefficient resource. Pull out the corresponding table list, including the application to which the table belongs, the table name, the storage space occupied, and the current storage format. Among them, if the table is in textfile format, it should be forcibly converted to ORC; if it is in rcfile format, it should be forcibly converted if it exceeds 200G.

[0082] For example, for the redundant data storage space occupancy: if the same table name appears and is stored in different libraries, the table metadata is compared. If there is no difference in the metadata and there is data lake data in the two tables with the same name, it is determined to be an inefficient resource, and the non-data lake application list table record is pulled out, including the application to which the table belongs, the table name, and the storage space occupancy.

[0083] For example, for the space occupied by tables that have not been accessed for a long time: according to the audit log, obtain the job execution SQL submitted to the cluster in the past quarter, and the input table list and output table list involved in the SQL. If a table in the cluster does not appear in the input table list, it indicates that the table has not been accessed for a long time and is an inefficient resource. Pull out the table list and record it. The table list includes the application to which the table belongs, the table name, and the storage space occupied.

[0084] For example, for the number of fragmented tables: obtain the number of files of the table from the metadata database. If the average file size of the table is <10M and the number of files / partitions is greater than 10, it is determined to be inefficient data, and a list is pulled out and recorded, including the application to which the table belongs, the table name, and the storage space occupied.

[0085] For example, regarding the space usage of the tilted table: in the audit log, if the table tilt rate exceeds 20%, it is considered a tilted table and an inefficient resource. A list is pulled out and recorded, including the application to which the table belongs, the table name, and the storage space usage.

[0086] For example, regarding the table space occupancy of the fragmented table: if the table is small but has many files, it is considered an inefficient resource, and a list is pulled out and recorded, including the application to which the table belongs, the table name, and the storage space occupancy.

[0087] For example, for the table space occupancy that is less than the preset number of rows: if the table data volume is less than 1 billion, it is considered an inefficient resource, and a list is pulled out and recorded, including the application to which the table belongs, the table name, and the storage space occupancy.

[0088] According to an embodiment of the present disclosure, the judging whether the technical indicators meet the inefficient resource judgment conditions also includes: for the first inefficient query computing consumption ratio, determining the first inefficient query statement; obtaining the first computing resource consumption of the first inefficient query statement; judging whether the first computing resource consumption exceeds the first preset resource consumption threshold; for the second inefficient query computing consumption ratio, determining the second inefficient query statement; obtaining the second computing resource consumption of the second inefficient query statement; judging whether the second computing resource consumption exceeds the second preset resource consumption threshold; and for the low resource utilization rate, judging whether the resource utilization lower than the preset resource utilization rate within a second preset time period is greater than the second preset time threshold.

[0089] Among them, the first inefficient query computing consumption ratio and the second inefficient query computing consumption ratio are to first determine whether it is an inefficient query statement (or called slow SQL). If it is determined to be an inefficient query statement, then determine whether its corresponding consumption ratio is too high. If it is too high, the inefficient query statement will be recorded for subsequent management.

[0090] Among them, low resource utilization is judged by checking the resource utilization ratio. The inefficient resource utilization is an evaluation scale for computing units. The object of evaluation is the computing unit. If the resource utilization ratio of a computing unit is lower than the threshold within a certain period of time, the computing unit is judged as, wherein the computing unit corresponds to the job one by one.

[0091] For calculation-related technical indicators, each technical indicator has its corresponding indicator judgment conditions and processing solutions, as shown below:

[0092] For example, for the first inefficient query computing consumption ratio: obtain the computing resource consumption of the SQL submitted by the application through the Yarn resource consumption table, calculate the slow SQL consumption ratio in the resource consumption of the job submitted by the application, and if the consumption ratio exceeds a certain threshold, it is determined to be an inefficient resource, and provide the specific SQL and job name.

[0093] For example, for the second inefficient query computing consumption ratio: obtain the computing resource consumption of the SQL submitted by the application, calculate the slow SQL consumption ratio in the resource consumption of the job submitted by the application, and if the consumption ratio exceeds a certain threshold, it is judged as an inefficient resource and needs to be recorded for subsequent governance, and provide the specific SQL and job name.

[0094] For example, for low resource usage: check the resource usage of the streaming job. If the resource usage ratio is not high within a certain period of time, it is considered a low computing unit. The management method is: consider adjusting the resource amount of the job, or manage it as a batch computing method. Provide a specific job name.

[0095] According to an embodiment of the present disclosure, determining the first inefficient query statement includes: when the query statement satisfies at least one of the first inefficient query statement condition set, it is determined to be the first inefficient query statement, wherein the first inefficient query statement condition set includes: the output data of the query statement is greater than a preset multiple of the input data, and the execution time of the query statement exceeds the first preset execution time; the query statement is skewed, and the execution time exceeds the second preset execution time; the query statement contains a preset target keyword, and the execution time exceeds the third preset execution time; and the number of table partitions involved in the query statement exceeds a preset partition number threshold, and the execution time exceeds a fourth preset execution time.

[0096] The first inefficient query statement condition set is a set of multiple determination conditions.

[0097] For example, in a distributed computing platform, if an SQL statement meets any of the following four conditions, it is considered slow SQL: 1) the output data is 100 times larger than the input data, and the execution time exceeds 1 hour; 2) the SQL statement may have data skew, and the execution time exceeds 30 minutes; 3) the DDL statement contains the CASCADE keyword, and the execution time exceeds 30 minutes; 4) the number of table partitions involved exceeds 400, and the execution time exceeds 1 hour.

[0098] According to an embodiment of the present disclosure, determining the second inefficient query statement includes: when the query statement satisfies at least one of the second inefficient query statement condition set, it is judged as the second inefficient query statement, wherein the second inefficient query statement condition set includes: the maximum disk placement of a single node corresponding to the query statement exceeds a preset disk placement threshold, and the execution time exceeds the fifth preset execution time; and the data skew ratio between the data nodes corresponding to the query statement exceeds the second preset skew rate threshold, and the execution time exceeds the sixth preset execution time.

[0099] The second inefficient query statement condition set is a set of multiple determination conditions.

[0100] For example, in a massively parallel processing database platform, if an SQL statement meets the following two conditions, it is considered to be a slow SQL statement: 1) the maximum disk size of a single node exceeds 10 GB, and the execution time exceeds 30 minutes; 2) the data skew ratio between data nodes during the calculation process exceeds 60%, and the execution time exceeds 30 minutes.

[0101] In operation S330, when the technical indicator meets the inefficient resource judgment condition, the indicator result is determined to be an inefficient resource; or, when the technical indicator does not meet the inefficient resource judgment condition, the indicator result is determined to be a non-inefficient resource.

[0102] Based on the inefficient resource judgment condition, inefficient resources can be screened out, and the inefficient resources can be used as indicator results to participate in the calculation of the indicator evaluation value.

[0103] In operation S230 , an index evaluation value is calculated based on the N index results.

[0104] Among them, the indicator evaluation value is used to issue a governance signal when it exceeds a preset governance threshold.

[0105] The indicator evaluation value can be a set for each indicator result. For example, indicator result 1 is an inefficient resource, indicator result 0 is a non-inefficient resource, and so on. Then for the set of indicator results, when the indicator result is 1, the corresponding governance logic is enabled.

[0106] The indicator evaluation value can also be a specific value calculated by comprehensively calculating the results of N indicators. Then, for the indicator evaluation value, as long as it is greater than a certain governance threshold, the subsequent governance operation will be started to achieve batch governance of multiple inefficient resources.

[0107] Taking the governance cost into consideration, inefficient resources do not need to be governed immediately when they appear. Some slightly inefficient resources can be ignored. Therefore, a comprehensive calculation method can be adopted to integrate the results of N indicators to comprehensively calculate the specific value of the indicator evaluation value.

[0108] Figure 4 The flowchart of the method for calculating the index evaluation value according to the embodiment of the present disclosure is schematically shown.

[0109] like Figure 4 As shown, the index evaluation value calculation method of this embodiment includes operations S410 to S420, and the operations S410 to S420 can at least partially execute the above-mentioned operation S230.

[0110] In operation S410, corresponding indicator cardinalities are allocated to the N indicator results to obtain N indicator cardinalities.

[0111] According to an embodiment of the present disclosure, corresponding indicator bases are allocated to the N indicator results to obtain N indicator bases, including: when the indicator result is an inefficient resource, a corresponding first indicator base is allocated; and when the indicator result is a non-inefficient resource, a corresponding second indicator base is allocated.

[0112] Specifically, a cardinality may be assigned to each indicator result. For example, when the indicator result is an inefficient resource, the assigned cardinality is 1 (corresponding to the first indicator cardinality); and when the indicator result is a non-inefficient resource, the assigned cardinality is 0 (corresponding to the second indicator cardinality).

[0113] In operation S420, based on preset weights corresponding to the N indicator cardinalities one by one, the indicator evaluation value is calculated in combination with the N indicator cardinalities.

[0114] Specifically, the index evaluation value can be calculated comprehensively by combining the N index bases in a weighted summation manner. For those relatively important inefficient resources, a higher weight can be assigned to ensure that these inefficient resources can be managed immediately; for those inefficient resources with relatively high management costs or insignificant inefficient resources, a lower weight can be assigned to avoid frequent management of these inefficient resources.

[0115] In the embodiments of the present disclosure, in order to solve the technical problem of a single resource usage evaluation indicator, the embodiments of the present disclosure obtain multiple technical indicators starting from at least storage-type technical indicators and computing-type technical indicators, and generate corresponding indicator results for each technical indicator according to its corresponding judgment scheme of whether it is an inefficient indicator. Finally, an indicator evaluation value is formed by combining each indicator result, and the indicator evaluation value can be used to determine whether resource governance should be performed.

[0116] The embodiments of the present disclosure can achieve at least the following beneficial effects:

[0117] 1. Evaluate whether resources are wasted from the perspective of inefficient resources, i.e., resources that produce no value, or waste of resources due to unreasonable application use, and evaluate through indicators;

[0118] 2. Comprehensiveness: Involving multiple big data technology platforms, evaluated from the two dimensions of storage and computing;

[0119] 3. Feasibility: Based on the logic behind the indicators, by calculating the operational data, it is possible to evaluate whether the tenants’ resource usage is reasonable;

[0120] 4. Accurate evaluation: The proposed indicators and calculated results can be used as the content of subsequent inefficient resource management, providing accurate guidance for subsequent resource management;

[0121] 5. Cost savings: By evaluating whether the big data tenant resources are reasonable, we can better understand the tenants' resource usage, initiate guidance and governance, avoid resource waste caused by unreasonable resource usage by tenants, and reduce unnecessary hardware investment.

[0122] Based on the above resource use evaluation method, the present disclosure also provides a resource use evaluation device. Figure 5The device is described in detail.

[0123] Figure 5 The structure block diagram of the resource use evaluation device according to an embodiment of the present disclosure is schematically shown.

[0124] like Figure 5 As shown, the resource use evaluation device 500 of this embodiment includes a technical indicator acquisition module 510, an indicator result calculation module 520 and an indicator evaluation value calculation module 530.

[0125] The technical indicator acquisition module 510 is used to acquire N technical indicators of the first user, where N is a positive integer, wherein the N technical indicators include storage technical indicators and computing technical indicators. In one embodiment, the technical indicator acquisition module 510 can be used to perform the operation S210 described above, which will not be repeated here.

[0126] The indicator result calculation module 520 is used to calculate the N technical indicators according to the inefficient resource judgment conditions corresponding to the N technical indicators to obtain N indicator results. In one embodiment, the indicator result calculation module 520 can be used to perform the operation S220 described above, which will not be repeated here.

[0127] The index evaluation value calculation module 530 is used to calculate the index evaluation value based on the N index results. In one embodiment, the index evaluation value calculation module 530 can be used to perform the operation S230 described above, which will not be described in detail here.

[0128] According to an embodiment of the present disclosure, the indicator result calculation module includes: a judgment condition acquisition unit, an inefficient indicator judgment unit and an indicator result calculation unit, the judgment condition acquisition unit is used to obtain the corresponding inefficient resource judgment condition for any technical indicator; the inefficient indicator judgment unit is used to judge whether the technical indicator meets the inefficient resource judgment condition; and the indicator result calculation unit is used to judge that the indicator result is an inefficient resource when the technical indicator meets the inefficient resource judgment condition; or, when the technical indicator does not meet the inefficient resource judgment condition, judge that the indicator result is a non-inefficient resource.

[0129] According to an embodiment of the present disclosure, the indicator evaluation value calculation module includes: an indicator cardinality allocation unit and an indicator evaluation value calculation unit, the indicator cardinality allocation unit is used to allocate corresponding indicator cardinalities to the N indicator results to obtain N indicator cardinalities; and the indicator evaluation value calculation unit is used to calculate the indicator evaluation value based on the preset weights corresponding one to one to the N indicator cardinalities and in combination with the N indicator cardinalities.

[0130] According to an embodiment of the present disclosure, the indicator cardinality allocation unit is specifically used to allocate a corresponding first indicator cardinality when the indicator result is an inefficient resource; and to allocate a corresponding second indicator cardinality when the indicator result is a non-inefficient resource.

[0131] According to an embodiment of the present disclosure, the storage-type technical indicators include: the space occupied by uncleaned backup tables, the space occupied by spaces without lifecycle management, the space occupied by uncompressed spaces, the space occupied by redundant data, the space occupied by tables that have not been accessed for a long time, the number of fragmented tables, the space occupied by tilted tables, the space occupied by fragmented tables, and the space occupied by tables with less than a preset number of rows; and the computing-type technical indicators include: the proportion of computing consumption of the first inefficient query, the proportion of computing consumption of the second inefficient query, and low resource utilization.

[0132] According to an embodiment of the present disclosure, the inefficiency index judgment unit is specifically used to, for the uncleared space occupancy of the backup table, determine whether the backup table exceeds a first preset time threshold; for the space occupancy without lifecycle management, determine whether the data table has lifecycle management; for the uncompressed space occupancy, determine whether the data table is in a preset compression format; for the redundant data storage space occupancy, determine whether the same data table exists; for the space occupancy of the long-term unaccessed table, determine whether the data table appears in a structured query statement within a first preset time period; for the number of fragmented tables, determine whether the average file size of the files in the data table is less than a preset file size threshold, and determine whether the ratio of the number of files in the data table to the number of partitions is greater than a first preset ratio threshold; for the tilted table space occupancy, determine whether the table tilt rate of the data table is greater than a first preset tilt rate threshold; for the fragmented table space occupancy, determine whether the ratio of the size of the data table to the number of files in the table is less than a second preset ratio threshold; and for the table space occupancy less than the preset number of rows, determine whether the number of rows in the data table is less than the preset number of rows threshold.

[0133] According to an embodiment of the present disclosure, the inefficiency index judgment unit is also specifically used to, for the first inefficient query computing consumption ratio, determine the first inefficient query statement; obtain the first computing resource consumption of the first inefficient query statement; judge whether the first computing resource consumption exceeds a first preset resource consumption threshold; for the second inefficient query computing consumption ratio, determine the second inefficient query statement; obtain the second computing resource consumption of the second inefficient query statement; judge whether the second computing resource consumption exceeds a second preset resource consumption threshold; and for the low resource utilization rate, judge whether the resource utilization lower than the preset resource utilization rate within a second preset time period is greater than a second preset time threshold.

[0134] According to an embodiment of the present disclosure, determining the first inefficient query statement includes: when the query statement satisfies at least one of the first inefficient query statement condition set, it is determined to be the first inefficient query statement, wherein the first inefficient query statement condition set includes: the output data of the query statement is greater than a preset multiple of the input data, and the execution time of the query statement exceeds the first preset execution time; the query statement is skewed, and the execution time exceeds the second preset execution time; the query statement contains a preset target keyword, and the execution time exceeds the third preset execution time; and the number of table partitions involved in the query statement exceeds a preset partition number threshold, and the execution time exceeds a fourth preset execution time.

[0135] According to an embodiment of the present disclosure, determining the second inefficient query statement includes: when the query statement satisfies at least one of the second inefficient query statement condition set, it is judged as the second inefficient query statement, wherein the second inefficient query statement condition set includes: the maximum disk placement of a single node corresponding to the query statement exceeds a preset disk placement threshold, and the execution time exceeds the fifth preset execution time; and the data skew ratio between the data nodes corresponding to the query statement exceeds the second preset skew rate threshold, and the execution time exceeds the sixth preset execution time.

[0136] In the embodiments of the present disclosure, in order to solve the technical problem of a single resource usage evaluation indicator, the embodiments of the present disclosure obtain multiple technical indicators starting from at least storage-type technical indicators and computing-type technical indicators, and generate corresponding indicator results for each technical indicator according to its corresponding judgment scheme of whether it is an inefficient indicator. Finally, an indicator evaluation value is formed by combining each indicator result, and the indicator evaluation value can be used to determine whether resource governance should be performed.

[0137] The embodiments of the present disclosure can achieve at least the following beneficial effects:

[0138] 1. Evaluate whether resources are wasted from the perspective of inefficient resources, i.e., resources that produce no value, or waste of resources due to unreasonable application use, and evaluate through indicators;

[0139] 2. Comprehensiveness: Involving multiple big data technology platforms, evaluated from the two dimensions of storage and computing;

[0140] 3. Feasibility: Based on the logic behind the indicators, by calculating the operational data, it is possible to evaluate whether the tenants’ resource usage is reasonable;

[0141] 4. Accurate evaluation: The proposed indicators and calculated results can be used as the content of subsequent inefficient resource management, providing accurate guidance for subsequent resource management;

[0142] 5. Cost savings: By evaluating whether the big data tenant resources are reasonable, we can better understand the tenants' resource usage, initiate guidance and governance, avoid resource waste caused by unreasonable resource usage by tenants, and reduce unnecessary hardware investment.

[0143] According to an embodiment of the present disclosure, any multiple modules of the technical indicator acquisition module 510, the indicator result calculation module 520, and the indicator evaluation value calculation module 530 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the technical indicator acquisition module 510, the indicator result calculation module 520, and the indicator evaluation value calculation module 530 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the technical indicator acquisition module 510, the indicator result calculation module 520 and the indicator evaluation value calculation module 530 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.

[0144] Figure 6 A block diagram of an electronic device suitable for implementing a resource usage evaluation method according to an embodiment of the present disclosure is schematically shown.

[0145] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0146] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0147] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0148] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0149] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0150] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.

[0151] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0152] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0153] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0154] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0155] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0156] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0157] The embodiments of the present disclosure are described above. However, these embodiments are only for the purpose of illustration and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A resource utilization evaluation method, It is characterized in that The method comprises: Acquire N technical indicators of the first user, where N is a positive integer, wherein the N technical indicators include storage technical indicators and computing technical indicators; Calculating the N technical indicators according to the inefficient resource judgment conditions corresponding to the N technical indicators to obtain N indicator results; and Based on the N indicator results, an indicator evaluation value is calculated.

2. The method according to claim 1, It is characterized in that The calculating the N technical indicators according to the inefficient resource judgment conditions corresponding to the N technical indicators one by one to obtain N indicator results includes: For any technical indicator, obtain the corresponding inefficient resource judgment condition; Determining whether the technical indicator meets the inefficient resource determination condition; and When the technical indicator meets the inefficient resource judgment condition, the indicator result is determined to be an inefficient resource; or, when the technical indicator does not meet the inefficient resource judgment condition, the indicator result is determined to be a non-inefficient resource.

3. The method according to claim 2, It is characterized in that The calculating the indicator evaluation value based on the N indicator results includes: Allocating corresponding indicator cardinalities to the N indicator results to obtain N indicator cardinalities; and Based on the preset weights corresponding one to one to the N indicator cardinalities, the indicator evaluation value is calculated in combination with the N indicator cardinalities.

4. The method according to claim 3, It is characterized in that The step of allocating corresponding indicator bases to the N indicator results to obtain N indicator bases includes: When the indicator result is an inefficient resource, allocating a corresponding first indicator base; and In the case where the indicator result is a non-inefficient resource, a corresponding second indicator base is allocated.

5. The method according to any one of claims 2 to 4, It is characterized in that in, The storage technical indicators include: space occupied by uncleared backup tables, space occupied by tables without lifecycle management, space occupied by uncompressed tables, space occupied by redundant data, space occupied by tables not accessed for a long time, number of fragmented tables, space occupied by tilted tables, space occupied by fragmented tables, and space occupied by tables with less than a preset number of rows; and The computing technical indicators include: the first inefficient query computing consumption ratio, the second inefficient query computing consumption ratio and the low resource utilization rate.

6. The method according to claim 5, It is characterized in that The determining whether the technical indicator meets the inefficient resource determination condition includes: For the uncleared space occupied by the backup table, determining whether the backup table exceeds a first preset time threshold; For the space occupation without lifecycle management, determine whether the data table has lifecycle management; For the uncompressed space occupancy, determining whether the data table is in a preset compression format; For the redundant storage space occupied by the data, determining whether there is an identical data table; For the space occupation of the table not accessed for a long time, determining whether the data table appears in a structured query statement within a first preset time period; For the number of fragmentation tables, determining whether an average file size of files in the data table is less than a preset file size threshold, and determining whether a ratio of the number of files to the number of partitions in the data table is greater than a first preset ratio threshold; For the tilted table space occupancy, determining whether a table tilt rate of the data table is greater than a first preset tilt rate threshold; For the table space occupancy of the fragment table, determining whether the ratio of the size of the data table to the number of files in the table is less than a second preset ratio threshold; and For the table space occupancy that is less than the preset number of rows, it is determined whether the number of rows in the data table is less than the preset row number threshold.

7. The method according to claim 6, It is characterized in that The determining whether the technical indicator meets the inefficient resource determination condition further includes: For the first inefficient query computing consumption ratio, determine the first inefficient query statement; obtain the first computing resource consumption of the first inefficient query statement; determine whether the first computing resource consumption exceeds a first preset resource consumption threshold; For the second inefficient query computing consumption ratio, determine the second inefficient query statement; obtain the second computing resource consumption of the second inefficient query statement; determine whether the second computing resource consumption exceeds a second preset resource consumption threshold; and For the low resource usage rate, it is determined whether the resource usage amount is lower than the preset resource usage rate within a second preset time period by more than a second preset time threshold.

8. The method according to claim 7, It is characterized in that The determining the first inefficient query statement includes: When the query statement satisfies at least one of the first inefficient query statement conditions, it is determined to be the first inefficient query statement. Wherein, the first inefficient query statement condition set includes: The output data of the query statement is greater than a preset multiple of the input data, and the execution time of the query statement exceeds a first preset execution time; The query statement is skewed, and the execution time exceeds the second preset execution time; The query statement contains a preset target keyword, and the execution time exceeds a third preset execution time; and The number of table partitions involved in the query statement exceeds a preset partition number threshold, and the execution time exceeds a fourth preset execution time.

9. The method according to claim 7, It is characterized in that The determining the second inefficient query statement includes: When the query statement satisfies at least one of the second inefficient query statement conditions, it is determined to be the second inefficient query statement. The second inefficient query statement condition set includes: The maximum number of disks flushed to a single node corresponding to the query statement exceeds the preset disk flushing threshold, and the execution time exceeds the fifth preset execution time; and The data skew ratio between the data nodes corresponding to the query statement exceeds the second preset skew rate threshold, and the execution time exceeds the sixth preset execution time.

10. A resource utilization evaluation device, It is characterized in that The device comprises: A technical indicator acquisition module, used to acquire N technical indicators of the first user, where N is a positive integer, wherein the N technical indicators include storage technical indicators and computing technical indicators; an indicator result calculation module, used to calculate the N technical indicators according to the inefficient resource judgment conditions corresponding to the N technical indicators one by one, to obtain N indicator results; and The indicator evaluation value calculation module is used to calculate the indicator evaluation value based on the N indicator results.

11. An electronic device, include: one or more processors; a storage device for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.