Resource analysis

Updated at:

Resource analysis displays global resource consumption growth, distribution, and an overview of resource administration. This topic describes how to view global metrics, administration health, trend analysis, and project analysis.

Compute/Storage health scores are calculated

  • Storage health score: Each table starts with 100 points. Points are deducted for each hit on a general compute administration item. The scores are then weighted by table size and aggregated at the individual, project, or tenant level.

  • Compute health score: Each node starts with 100 points. Points are deducted for each hit on a general compute administration item. The final score is aggregated at the individual, project, or tenant level.

Administration object

Score metric

Scoring rule

Storage health score

The weight is calculated as: Total storage score of physical tables × 70% + Total storage score of logical tables × 30%.

Physical table

Single physical table score

The initial score is 100 points.

  • An empty physical table deducts 10 points.

  • Deprecating a physical table incurs a 40-point deduction.

  • An unmanaged physical table deducts 20 points.

  • A physical table with a long lifecycle deducts 10 points.

Total physical table score

Calculated as the weighted average of each physical table.

Note

The weight of a physical table is its storage size. The default size for an empty table is 1.

Logical table

Single logical table score

The initial score is 100 points.

  • An empty logical table deducts 20 points.

  • An empty, black-box materialized logical table deducts 30 points.

  • An abandoned logical table deducts 30 points.

  • An unmanaged logical table deducts 20 points.

Total logical table score

Calculated using the formula: POW(SUM(logical table detail score) / total logical table score, 4) / 1,000,000.

Compute health score

Total score calculation rule: POW(SUM(node detail score) / number of daily runs for production environment nodes, 4) / 1,000,000.

Task node

Single compute node score

The initial score is 100 points.

  • Data bloat deducts 10 points.

  • The deduction for data skew is calculated as: ((Maximum instance running time / Average instance running time - 2) × 0.5).

  • The deduction for node errors is calculated as: (POW(2, number of errors in 7 days - 1) - 1).

  • Importing to an empty table deducts 50 points.

  • Empty input deducts 50 points.

  • An unread output table deducts 50 points.

  • A brute-force scan deducts 50 points.

The formula is:

100 - Data bloat - Data skew - Node error - Empty table import - Empty input - Unread output table - Brute-force scan.

The calculation is as follows:

POW(GREATEST(0, 100 - all deductions), 4) / 1,000,000.

The resource analysis page

  1. On the Dataphin home page, choose Administration > Resource Administration from the top menu bar.

  2. In the navigation pane on the left, choose Resource Management > Resource Analysis to open the Resource Analysis Report page.

  3. You can view Dataphin global metrics (①), administration health (②), trend analysis (③), and project analysis (④).

    image

Global metrics

Global metrics include six indicators: Business Source Tables, Total Tasks, Total Tables, Total Projects, Total Developers, and Data Backflow Tables.

  • Business Source Tables: The number of sync tables where the source is a database engine (business source) and the target is a compute engine.

  • Total Tasks: The total number of task instances on the report date.

  • Total Tables: The total number of global data tables, including logical and physical tables in both developer and production projects.

  • Total Projects: The total number of global projects, including both production and developer projects.

  • Total Developers: The total number of members in the Dataphin member list.

  • Data Backflow Tables: The number of sync tables where the source is a compute engine and the target is a database engine (business source).

Administration health

Administration health consists of two components: Compute and Storage. The system filters out closed administration items, which are not included in the health score calculation.

  • Compute Health Score: The compute health score for the report date. The health score is evaluated based on the following tiers:

    • 85 or higher: The health level is High. A message is displayed: Good condition. Keep it up!

    • 60 to 84: The health level is Medium. A message is displayed: Barely passing. Please continue to improve.

    • Below 60: The health level is Low. A message is displayed: Not passing yet. Improve the score quickly.

  • Compute Consumption: The resources consumed in the compute administration realm. 1 CM represents the use of one CPU core for one minute, and 1 CU represents the use of one CPU core for one day. The calculation is as follows:

    • 1 core × 60 s = 1 CM -- Indicates that a single CPU core was used for one minute.

    • 24 h × 60 CM = 1 CU -- Indicates that a single CPU core was used for one day.

    • 1,000 CU = 1 KCU.

    The format is as follows:

    • For values under 1,000 CM, the unit is CM. For example, 987 CM.

    • For values over 1,000 CM, the unit is CU. For example, 1,200 CM = 0.83 CU.

    • For values over 1,000 CU, the unit is KCU. For example, 1,100 CU = 1.1 KCU.

    Note
    • Decimals are rounded to two places. You can use larger units for conversion.

    • Compute consumption is the actual CPU time used by underlying task operations. For example, if a task uses one CPU core and runs for one day, the compute consumption is 1 CU.

  • Storage Health Score: The storage health score for the report date.

  • Storage Consumption: The storage resources consumed in the administration realm.

  • Note

    Storage units are B, KB, MB, GB, TB, PB, EB, and ZB.

  • Projects to follow: The compute section lists the 10 projects with the lowest compute health scores. The storage section lists the 10 projects with the lowest storage health scores.

  • Individuals needing improvement: The compute section lists the 10 individuals with the lowest compute health scores. The storage section lists the 10 individuals with the lowest storage health scores.

Trend analysis

Trend analysis displays the data trends for global Storage and Compute over a specific period. This includes trends for storage consumption, compute health score, compute consumption, and storage health score. This helps you analyze data stability.image By default, trend analysis uses the report date selected at ① in the preceding figure to display global data trends for the last 30 days:

  • Click Storage next to Trend analysis to open the Storage Health Score page. By default, this page displays the 30-day trends for Storage Health Score and Storage Health Score (Average).

    Hover your mouse over a specific date to view the Storage Health Score (Average) for the last 7 days and the Storage Health Score for that date. You can compare the average score and the daily score to evaluate data stability. The smaller the difference, the better the stability. For example, as shown at ③ in the preceding figure, for January 18, 2023, the 7-day average storage health score is 71.41, and the score for that day is 71.38.

    If needed, you can select a date range at ② in the preceding figure to view the data trends for Storage Health Score and Storage Health Score (Average) for that period. For example, if you select the date range from December 30, 2022 to January 4, 2023, the trends for that period are displayed as shown in the following figure. When you hover your mouse over January 2, 2023, the storage health score for that day is 72.69, and the 7-day average score is 72.23.image

  • On the Storage Health Score page, click Storage Consumption in the upper-right corner. By default, the 30-day trends for Storage Consumption and Storage Consumption (Average) are displayed.image

    Note

    The data is displayed and interpreted in the same way as on the Storage Health Score page.

  • Click Compute next to Trend analysis to open the Compute Health Score page. By default, this page displays the 30-day trends for Compute Health Score and Compute Health Score (Average).

    Note

    The data is displayed and interpreted in the same way as on the Storage Health Score page.

  • On the Compute Health Score page, click Compute Consumption in the upper-right corner. By default, the 30-day trends for Compute Consumption and Compute Consumption (Average) are displayed.

    Note

    The data is displayed and interpreted in the same way as on the Storage Health Score page.

Project analysis

The project analysis module displays information for all projects, organized by project and business segment. This includes Project Name, Business Segment, Tasks, Tables, Compute Volume, Storage Size, Compute Score, Storage Score, Administrator, and Items to Administer.

You can quickly filter projects by entering a project name keyword in the search box. You can also click the icon and select an environment and business segment to view detailed information for a specific project.

  • Project Name: The name of the project.

  • Business Segment: The business segment to which the project belongs.

  • Tasks: The number of tasks in the production environment, including sync tasks and code tasks.

  • Tables: The number of tables in the project, including physical and logical tables.

  • Compute Volume: The total compute resources consumed by all task executions in the project. The unit is CU.

  • Storage Size: The total storage space used by all data tables in the project. For the MaxCompute engine, the storage size is based on triplicate replicas. For Hadoop-based engines, the storage size is based on a single-replica edition.

    Note

    A replica is a copy of data stored on a different node. Replicas provide storage redundancy to prevent data loss.

  • Compute Score: The compute health score at the project level.

  • Storage Score: The storage health score at the project level.

  • Administrator: The administrator of the current project.

  • Items to Administer: The number of objects that require administration.