AnalyticDB for MySQL allows you to view the total data size, cold data size, hot data size, index data size, number of partitions, and node disk usage of a cluster or table on the Storage Overview page.
View the data size of a cluster
In the Storage Overview section, you can view the following metrics of the current cluster: Total Data Size, Hot Data Size, Cold Data Size, and Data Growth (including Last 24 Hours and Daily Last Week).
Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster that you want to manage and click the cluster ID.
In the left-side navigation pane, choose
.In the Storage Overview section, view the Total Data Size, Hot Data Size, Cold Data Size, and Data Growth metrics.
Category
Metric
Description
Total Data Size
Total Data Size
The total data size of all tables in the AnalyticDB for MySQL cluster.
Hot Data Size
The hot data size of all tables in the AnalyticDB for MySQL cluster.
NoteFor more information about hot data, see Separation of hot and cold data storage.
Cold Data Size
The cold data size of all tables in the AnalyticDB for MySQL cluster.
NoteAnalyticDB for MySQL Data Warehouse Edition (V3.0) clusters in reserved mode do not support separation of hot and cold data storage. For these clusters, the cold data size is not displayed.
For more information about cold data, see Separation of hot and cold data storage.
Hot Data Size
NoteEach table of an AnalyticDB for MySQL cluster contains multiple partitions, such as hot data partitions and cold data partitions. The Total Data Size parameter of each partition is divided into the following data types: Table Record, Regular Index, Primary Key Index, and Other.
Table Record
The data size of hot partitions in all tables of the AnalyticDB for MySQL cluster, excluding data of the Regular Index or Primary Key Index type.
Regular Index
The data size of regular indexes in hot partitions of all tables of the AnalyticDB for MySQL cluster.
NoteWhen you create a table in an AnalyticDB for MySQL cluster, a full-column index is created by default. If indexes contain large amounts of data, you can delete specific idle indexes to reduce the data size. For more information, see Schema optimization.
Primary Key Index
The data size of primary key indexes in hot partitions of all tables of the AnalyticDB for MySQL cluster.
NoteIf specific primary key indexes contain large amounts of data, you can find the tables that contain the primary key indexes in the Table Storage Information section and optimize the indexes. For information about the Table Storage Information section, see the "View the data size of a table" section of this topic.
Other
The size of metadata and temporary data in hot partitions of all tables of the AnalyticDB for MySQL cluster.
Cold Data Size
NoteEach table of an AnalyticDB for MySQL cluster contains multiple partitions, such as hot data partitions and cold data partitions. The Total Data Size parameter of each partition is divided into the following data types: Table Record, Regular Index, Primary Key Index, and Other.
Table Record
The data size of cold partitions in all tables of the AnalyticDB for MySQL cluster, excluding data of the Regular Index or Primary Key Index type.
Regular Index
The data size of regular indexes in cold partitions of all tables of the AnalyticDB for MySQL cluster.
NoteWhen you create a table in an AnalyticDB for MySQL cluster, a full-column index is created by default. If indexes contain large amounts of data, you can delete specific idle indexes to reduce the data size. For more information, see Schema optimization.
Primary Key Index
The data size of primary key indexes in cold partitions of all tables of the AnalyticDB for MySQL cluster.
NoteIf specific primary key indexes contain large amounts of data, you can find the tables that contain the primary key indexes in the Table Storage Information section and optimize the indexes. For information about the Table Storage Information section, see the "View the data size of a table" section of this topic.
Other
The size of metadata and temporary data in cold partitions of all tables of the AnalyticDB for MySQL cluster.
Data Growth
Last 24 Hours
The growth of the total data size of the AnalyticDB for MySQL cluster within the last 24 hours.
Formula:
Data growth within the last 24 hours = Data size collected at the current time - Data size collected 24 hours ago
.Daily Last Week
The daily growth of the total data size of the AnalyticDB for MySQL cluster within the last week.
Formula:
Daily growth within the last week = (Data size collected at the current time - Data size collected at the same time seven days ago)/7
.
View the data size and disk usage of nodes
In the Storage Trend section, you can view the data size and disk usage of nodes within a specific period of time.
Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster that you want to manage and click the cluster ID.
In the left-side navigation pane, choose
.View the data size and disk usage of nodes within a specific period of time. You can select a time range from the drop-down list in the Storage Trend section. You can also drag the pointer in the Total Data Size or Node Disk Usage chart to select a time range.
ImportantYou can view storage information within the last 30 days. You can select a time range of up to seven days to view the storage information.
Compared with AnalyticDB for MySQL Data Warehouse Edition (V3.0) in elastic mode for Cluster Edition and AnalyticDB for MySQL Data Lakehouse Edition (V3.0), the metrics displayed in the Total Data Size chart for AnalyticDB for MySQL Data Warehouse Edition (V3.0) in reserved mode include only Total Data Size, Average Data Size of Nodes, and Maximum Data Size of Nodes. This is because AnalyticDB for MySQL Data Warehouse Edition (V3.0) in reserved mode does not support separation of hot and cold data storage.Total Data Size
Elastic mode for Cluster Edition and Data Lakehouse Edition (V3.0)
Category
Metric
Description
Total Data Size
Average Hot Data Size of Nodes
The average hot data size of all storage nodes in the AnalyticDB for MySQL cluster.
Maximum Hot Data Size of Nodes
The maximum hot data size of all storage nodes in the AnalyticDB for MySQL cluster.
Hot Data Size
The hot data size of all tables in the AnalyticDB for MySQL cluster.
Cold Data Size
The cold data size of all tables in the AnalyticDB for MySQL cluster.
Node Disk Usage
Average Disk Usage
The average disk usage of all storage nodes in the AnalyticDB for MySQL cluster.
Maximum Disk Usage
The maximum disk usage of all storage nodes in the AnalyticDB for MySQL cluster.
Formula:
Maximum disk usage = Maximum node storage/(Maximum hot data size of an EIU/0.9) × 100%
.ImportantThe maximum node storage is measured in GB.
The data storage can be automatically scaled in AnalyticDB for MySQL Data Warehouse Edition (V3.0) in elastic mode for Cluster Edition and AnalyticDB for MySQL Data Lakehouse Edition (V3.0), but the hot data size of an elastic I/O unit (EIU) is limited to 8 TB. When you calculate the maximum disk usage, you must use a value of 8000 GB.
For example, if the maximum hot data size of nodes is 8000 GB, the maximum disk usage is calculated by using the following formula: 8000/(8000/0.9) × 100% = 90%.
Disk Usage Threshold (90%)
If the maximum disk usage of the AnalyticDB for MySQL cluster exceeds the disk usage threshold (90%), the cluster is locked. After the cluster is locked, you can query data from the cluster and cannot write data to the cluster.
We recommend that you log on to the CloudMonitor console and set the maximum disk usage threshold to 80%. This allows you to handle issues in a timely manner and prevent the cluster from being locked. For more information, see Create an alert rule.
Reserved mode
Category
Metric
Description
Total Data Size
Total Data Size
The total data size of all tables in the AnalyticDB for MySQL cluster.
Average Data Size of Nodes
The average data size of all storage nodes in the AnalyticDB for MySQL cluster.
Maximum Data Size of Nodes
The maximum data size of all storage nodes in the AnalyticDB for MySQL cluster.
Node Disk Usage
Average Disk Usage
The average disk usage of all storage nodes in the AnalyticDB for MySQL cluster.
Maximum Disk Usage
The maximum disk usage of all storage nodes in the AnalyticDB for MySQL cluster.
Formula:
Maximum disk usage = (Maximum storage of node groups/Storage of each node group) × 100%
.NoteThe maximum storage of node groups and the storage of each node group are measured in GB.
For example, you purchase two node groups. The storage of each node group is 200 GB. The total data size of all tables in the cluster is 140 GB, including 60 GB in one node group and 80 GB in the other node group. In this case, the maximum disk usage is calculated by using the following formula: (80/200) × 100% = 40%.
Disk Usage Threshold (90%)
If the maximum disk usage of the AnalyticDB for MySQL cluster exceeds the disk usage threshold (90%), the cluster is locked. After the cluster is locked, you can query data from the cluster and cannot write data to the cluster.
We recommend that you log on to the CloudMonitor console and set the maximum disk usage threshold to 80%. This allows you to handle issues in a timely manner and prevent the cluster from being locked. For more information, see Create an alert rule.
View the data size of a table
In the Table Storage Information section, you can view the storage information of each table, such as the Total Data Size, Hot Data Size, Cold Data Size, and Regular Index metrics.
Log on to the AnalyticDB for MySQL console. In the upper-left corner of the console, select a region. In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster that you want to manage and click the cluster ID.
In the left-side navigation pane, choose
.In the Table Storage Information section, view table metrics such as Total Data Size, Hot Data Size, Cold Data Size, Table Rows, and Partitions.
Metric
Description
Database
The name of the database.
Table Name
The name of the table.
Storage Percentage
The percentage of the total data size of the table to the total data size of the cluster.
Formula:
Storage percentage = (Total data size of the table/Total data size of the cluster) × 100%
.Total Data Size
The total data size of the table. The total data size can be calculated by using one of the following formulas:
Formula 1:
Total data size = Hot data size + Cold data size
.Formula 2:
Total data size = Data size of table records + Data size of regular indexes + Data size of primary key indexes + Data size of other data
.
Hot Data Size
The data size of all hot partitions in the table, including data of the Table Record, Regular Index, Primary Key Index, and Other types.
Cold Data Size
The data size of all cold partitions in the table, including data of the Table Record, Regular Index, Primary Key Index, and Other types.
Table Record
The data size of all partitions in the table, excluding data of the Regular Index or Primary Key Index type.
Regular Index
The data size of regular indexes in all partitions of the table.
Primary Key Index
The data size of the primary key index in all partitions of the table.
Other
The size of metadata and temporary data in all partitions of the table.
Table Rows
The number of rows in the table.
Partitions
The number of partitions in the table.
Related operations
Operation | Description |
Queries the storage overview of an AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster. | |
Queries the table statistics of an AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster. | |
Queries the performance data of an AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster. |