PolarDB PostgreSQL版的所有节点规格均为独享型节点。独享型节点是指该节点独占所分配到的CPU、内存、存储和I/O资源,而非与其他节点共享资源,因此性能更加稳定可靠。
PolarDB PostgreSQL版目前提供以下规格的节点供您选择。
节点规格 | CPU和内存数 | 最大存储容量 | 最大连接数1 | 内网带宽 | 最大IOPS | I/O带宽 |
---|---|---|---|---|---|---|
polar.pg.x4.medium | 2核 8 GB | 5 TB | 800 | 1 Gbps | 16,000 | 1 Gbps |
polar.pg.x4.large | 4核 16 GB | 10 TB | 1600 | 10 Gbps | 64,000 | 4 Gbps |
polar.pg.x4.xlarge | 8核 32 GB | 10 TB | 3,200 | 10 Gbps | 128,000 | 8 Gbps |
polar.pg.x8.xlarge | 8核 64 GB | 30 TB | 3,200 | 10 Gbps | 160,000 | 10 Gbps |
polar.pg.x8.2xlarge | 16核 128 GB | 50 TB | 12,800 | 10 Gbps | 256,000 | 16 Gbps |
polar.pg.x8.4xlarge | 32核 256 GB | 50 TB | 25,600 | 10 Gbps | 384,000 | 24 Gbps |
polar.pg.x8.8xlarge | 64核 512 GB | 100 TB | 36,000 | 10 Gbps | 409,600 | 24 Gbps |
polar.pg.x8.12xlarge | 88核 710 GB | 100 TB | 36,000 | 25 Gbps | 512,000 | 32 Gbps |
节点规格 | CPU和内存数 | 最大存储容量 | 内网带宽 | 最大IOPS | I/O带宽 |
---|---|---|---|---|---|
polar.pg.x4.medium | 2核 8 GB | 5 TB | 1 Gbps | 16,000 | 1 Gbps |
polar.pg.x4.large | 4核 16 GB | 10 TB | 10 Gbps | 64,000 | 4 Gbps |
polar.pg.x4.xlarge | 8核 32 GB | 10 TB | 10 Gbps | 128,000 | 8 Gbps |
polar.pg.x8.xlarge | 8核 64 GB | 30 TB | 10 Gbps | 160,000 | 10 Gbps |
polar.pg.x8.2xlarge | 16核 128 GB | 50 TB | 10 Gbps | 256,000 | 16 Gbps |
polar.pg.x8.4xlarge | 32核 256 GB | 50 TB | 10 Gbps | 384,000 | 24 Gbps |
polar.pg.x8.8xlarge | 64核 512 GB | 100 TB | 10 Gbps | 409,600 | 24 Gbps |
polar.pg.x8.12xlarge | 88核 710 GB | 100 TB | 25 Gbps | 512,000 | 32 Gbps |
最大连接数
- PolarDB PostgreSQL版最大连接数是系统允许的最大连接数,当数据库并发用户超过该连接数后,会导致新连接无法建立或者连接超时。
业务系统不同,每个连接消耗的内存资源不同,导致数据库实际能达到的最大连接不同。
- 查询当前系统配置的最大连接数。
show max_connections;
- 查询当前实际连接数。
select count(1) from pg_stat_activity;
- 请关注业务和数据库实际情况,建议连接数不超过以下的建议值。
建议值公式:
LEAST({DBInstanceClassMemory/11MB}, 5000)
。 - 如果应用程序需要更大的连接数,请选择具有更大内存的数据库集群。