All Products
Search
Document Center

AnalyticDB:Limits

Last Updated:Mar 28, 2026

AnalyticDB for MySQL enforces the following limits to maintain cluster stability and security.

Naming limits

Most naming rules apply to all object types. Unless a rule below specifies otherwise:

  • Names can contain letters, digits, and underscores (_).

  • Names cannot contain single quotation marks ('), double quotation marks ("), exclamation points (!), or spaces.

ObjectConstraint
Database nameUp to 64 characters. Must start with a lowercase letter. Cannot contain consecutive underscores (__). Cannot be analyticdb (reserved for the built-in database).
Table nameUp to 127 characters. Must start with a letter or underscore (_). Cannot be an SQL reserved keyword.
Column nameUp to 127 characters. Must start with a letter or underscore (_). Cannot be an SQL reserved keyword.
Index nameUp to 64 characters.
Account name2–16 characters (clusters earlier than V3.1.9.4) or 2–64 characters (V3.1.9.4 and later). Must start with a lowercase letter and end with a lowercase letter or digit. Can contain lowercase letters, digits, and underscores (_).
Password8–32 characters. Must include at least three of the following: uppercase letters, lowercase letters, digits, and special characters (! @ # ¥ % ^ & * ( ) _ + - =).

Quota limits

CategoryLimitDefaultAdjustableNotes
ClusterMax clusters per Alibaba Cloud account30YesSubmit a ticket to increase.
ClusterMax scaling operations (scale-in, scale-out, upgrade, downgrade) per cluster per day12No
DatabaseMax databases per cluster2,048No
StorageMax disk usage before alert (Data Warehouse Edition, reserved mode)80%NoThe system sends up to four alert notifications per contact per day when this threshold is exceeded.
StorageMax disk usage before cluster lock (Data Warehouse Edition, reserved mode)90%NoThe system locks the cluster and denies write requests. Up to four alert notifications per contact per day.
StorageMax hot data per elastic I/O unit (EIU) (Data Warehouse Edition, elastic mode)8 TBNoThe system locks the cluster and denies write requests. To resolve, scale out elastic I/O resources.
StorageMax hot data per set of reserved storage resources (Data Lakehouse Edition)8 TBNoThe system locks the cluster and denies write requests. To resolve, scale up reserved storage resources.
StorageMax hot data per set of reserved resources (Enterprise Edition or Basic Edition)8 TBNoThe system locks the cluster and denies write requests. To resolve, scale up reserved resources.
AccountMax standard accounts per cluster256No
ConnectionMax connections per cluster (recommended)50,000NoActual capacity varies by cluster specifications. Low-specification clusters may not support high connection counts.
WhitelistMax IP whitelists per cluster50No
WhitelistMax IP addresses per whitelist1,000No
WhitelistMax IP addresses across all whitelists per cluster25,000No
TableMax partitions per cluster102,400NoApplies to all tables combined. If exceeded, you cannot create partitioned tables. Run the query below to check current usage.
TableMax internal tables (Enterprise Edition or Basic Edition)80000 / ⌈Number of shards / Number of sets of reserved resources⌉YesTo increase: scale up reserved resources (Enterprise Edition). Basic Edition does not support increasing this limit.
TableMax internal tables (Data Lakehouse Edition or Data Warehouse Edition, elastic mode)[80000 / ⌈Number of shards / Number of EIUs⌉] × 2YesTo increase: scale up reserved storage resources (Data Lakehouse Edition); increase the number of EIUs (Data Warehouse Edition, elastic mode).
TableMax internal tables (Data Warehouse Edition, reserved mode, 1–20 node groups)80000 / ⌈Number of shards / Number of node groups⌉YesTo increase: add more node groups.
TableMax external tables per cluster500,000No
TableMax columns per table4,096No
TableMax comment length per table1,024 charactersNo
TableDefault column length127 characters
ColumnMax comment length per column1,024 charactersNo
ColumnMax field length per column16 MBNo
RowMax row write size16 MBNo
PartitionMax data entries per partition per shard2.1 billionNo
QueryMax columns per query1,024No
QueryMax items in each WHERE clause256No
QueryMax conditions in each IN operator2,000YesTo increase, run SET adb_config MAX_IN_ITEMS_COUNT=3000;. Higher values increase query complexity and may affect performance.

Formula notes for internal table limits:

  • Enterprise Edition: sets of reserved resources = reserved resource nodes / 3

  • Basic Edition: sets of reserved resources = reserved resource nodes

  • Data Lakehouse Edition: EIUs = reserved storage resources / 24 ACUs (AnalyticDB Capacity Units)

  • Data Warehouse Edition in elastic mode: EIUs = number of sets of elastic I/O resources

To check the total partition count across all tables, run:

SELECT SUM(partition_count) FROM INFORMATION_SCHEMA.KEPLER_META_TABLES
WHERE table_engine_name IN ('CSTORE', 'XUANWU', 'XUANWU_V2');

Timeout limits

OperationTimeout (ms)
Create a cluster600,000
Delete a cluster300,000
Scale up a cluster600,000
Create a database10,000
Delete a database10,000
Create a table or view10,000
Delete a table or view10,000
Truncate a table60,000
Add a column10,000
Remove a column60,000
Update a column60,000
Perform a single query1,800,000
Insert data300,000
INSERT SELECT FROM, INSERT UPDATE FROM, INSERT DELETE FROM86,400,000

Query timeout: When a query exceeds the timeout, the system ends it. Configure the timeout using the QUERY_TIMEOUT parameter or the query_timeout hint.

The system checks for query timeouts every 1,000 milliseconds. Set query_timeout to a value greater than 1,000 milliseconds, or the hint may not take effect.

INSERT timeout: When an INSERT statement exceeds the timeout, the system ends it. Configure the timeout using the INSERT_SELECT_TIMEOUT parameter or the insert_select_timeout hint.

FAQ

Does the cluster shard count apply per table?

Yes. If a cluster has 32 shards, each table in that cluster has 32 shards.

How do I find the shard count for my cluster?

Run the following statement:

SELECT count(1) FROM information_schema.kepler_meta_shards;

The shard count is set when the cluster is created. You can change the shard count only for Data Warehouse Edition clusters — it cannot be changed for Enterprise Edition, Basic Edition, or Data Lakehouse Edition clusters.

The following tables map cluster specifications to shard counts.

Enterprise Edition, Basic Edition, Data Lakehouse Edition, and Data Warehouse Edition in elastic mode

Sets of reserved resources or EIUsShards
0–164
2–364
4–796
8–15256
16–31384
32–63512
≥641,024

Notes:

  • Enterprise Edition: sets of reserved resources = reserved resource nodes / 3

  • Basic Edition: sets of reserved resources = reserved resource nodes

  • Data Lakehouse Edition: EIUs = reserved storage resources / 24 ACUs

Data Warehouse Edition in reserved mode

Node groupsShards
116
2–364
4–796
8–15236
16–31384
32–63512
>641,024