All Products
Search
Document Center

PolarDB:Limits

Last Updated:Mar 28, 2026

PolarDB for MySQL enforces resource limits based on node specifications, along with a set of fixed constraints. Use this page to plan cluster sizing, avoid file or connection errors, and understand unsupported features before you encounter them in production.

Resource limits by node specification

Connection limits apply per node, not per cluster. Adding read-only nodes does not increase the connection limit for any individual node. To increase connections, change the cluster specifications.

Cluster Edition (Dedicated)

Node typeCPU and memoryFile system memoryMax filesMax connections
polar.mysql.x4.medium2 cores, 8 GB800 MB1,024,0006,000
polar.mysql.x4.large4 cores, 16 GB1,300 MB2,048,0008,000
polar.mysql.x4.xlarge8 cores, 32 GB2,400 MB4,096,00010,000
polar.mysql.x8.xlarge8 cores, 64 GB3,500 MB6,144,00016,000
polar.mysql.x8.2xlarge16 cores, 128 GB10,240 MB20,480,00032,000
polar.mysql.x8.4xlarge32 cores, 256 GB10,240 MB20,480,00064,000
polar.mysql.x8.8xlarge64 cores, 512 GB10,240 MB20,480,00064,000
polar.mysql.x8.12xlarge88 cores, 710 GB10,240 MB20,480,000100,000

Cluster Edition (General-purpose)

Node typeCPU and memoryFile system memoryMax filesMax connections
polar.mysql.g2.medium2 cores, 4 GB800 MB1,024,0001,800
polar.mysql.g4.medium2 cores, 8 GB800 MB1,024,0002,000
polar.mysql.g2.large4 cores, 8 GB1,300 MB2,048,0003,000
polar.mysql.g4.large4 cores, 16 GB1,300 MB2,048,0006,000
polar.mysql.g2.xlarge8 cores, 16 GB1,300 MB2,048,0006,000
polar.mysql.g4.xlarge8 cores, 32 GB2,400 MB4,096,00010,000
polar.mysql.g4.2xlarge16 cores, 64 GB3,500 MB6,144,00016,000
polar.mysql.g4.4xlarge32 cores, 128 GB10,240 MB20,480,00032,000

Column definitions:

  • File system memory: The memory the file system uses when the cluster reaches its storage limit during normal read and write operations. Normal operations exclude stress testing and Data Definition Language (DDL) operations on large tables. If the cluster has not reached its storage limit, actual file system memory usage is lower than this value.

  • Max files: The total count across user files, database system files (approximately 100), and log files. Run SHOW POLAR LOGS to check the current log file count. A non-partitioned table uses one file; a partitioned table uses N+1 files, where N is the number of partitions. If you reach the file limit, the following error is returned:

    ERROR 3017 (HY000): Too many files. PolarDB only supports 2048 files every 10GB disk size. Please drop some tables/databases before creating new tables

    To resolve this, drop unused tables or upgrade the cluster specifications.

  • Max connections: Applies to a single node. See the note above for how to increase this limit.

Storage and naming limits

CategoryLimitAdjustable
Maximum data volume per table64 TBNo
Maximum number of databases10,000 (no hard limit; actual maximum depends on cluster specifications and max files)Yes — upgrade specifications to increase the effective limit
Maximum number of tables per databaseNo hard limit (consistent with MySQL behavior); InnoDB supports up to 4 billion tables, but available storage determines the practical limitYes — upgrade specifications to increase storage
Table name lengthUp to 64 letters and digits, or 50 Chinese charactersNo
A 10 GB disk provides a maximum of 2,048 inodes, and each inode corresponds to one file. The number of tables a cluster can hold is ultimately constrained by this file limit. A non-partitioned table uses one file; a partitioned table uses N+1 files, where N is the number of partitions.

Unsupported features

FeatureStatus
Serializable isolation levelNot supported
SuperusersNot supported

FAQ

Does adding read-only nodes increase the connection limit?

No. The connection limit is determined by node specifications, not by the number of read-only nodes. To increase the limit, change the cluster specifications.

Does PolarDB support superusers?

No. Superusers are not supported.