Connection Pool Parameters

When a connection pool is used to access the database, database connections are established and then stored in the memory as objects during system running. When you need to access the database, no new connection is established. Instead, an existing idle connection is selected from the connection pool. After you finish accessing the database, the database does not disable the connection but puts it back into the connection pool. The connection can be used for the next access request.

min_pool_size

Parameter description: Specifies the minimum number of connections between a CN's connection pool and another CN/DN.

Type: POSTMASTER

Value range: an integer ranging from 1 to 65535

Default value: 1

max_pool_size

Parameter description: Specifies the maximum number of connections between a CN's connection pool and another CN/DN.

Type: POSTMASTER

Value range: an integer ranging from 1 to 65535

Default value: 800

persistent_datanode_connections

Parameter description: Specifies whether to release the connection for the current session.

Type: USERSET

Value range: Boolean

Default value: off

max_coordinators

Parameter description: Specifies the maximum number of CNs in a cluster.

Type: POSTMASTER

Value range: an integer ranging from 2 to 40

Default value: 40

max_datanodes

Parameter description: Specifies the maximum number of DNs in a cluster.

Type: POSTMASTER

Value range: an integer ranging from 2 to 65535

Default value: 4096

cache_connection

Parameter description: Specifies whether to reclaim the connections of a connection pool.

Type: SIGHUP

Value range: Boolean

Default value: on

enable_force_reuse_connections

Parameter description: Specifies whether a session forcibly reuses a new connection.

Type: BACKEND

Value range: Boolean

Default value: off

Session connection parameter. Users are not advised to configure this parameter.

enable_pooler_parallel

Parameter description: Specifies whether a CN's connection pool can be connected in parallel mode.

Type: SIGHUP

Value range: Boolean

Default value: on