tencentdb_serverless
tencentdb_serverless · TencentDB extension for per-database CPU resource isolation in serverless and multi-tenant workloads.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101180 | tencentdb_serverless | tencentdb_serverless | 1.0 | ADMIN | Unknown | C |
PostgreSQL · 14, 15, 16, 17, 18
Usage
Sources:
- Official TencentDB database resource-isolation guide
- Official TencentDB for PostgreSQL extension-version matrix
tencentdb_serverless is a TencentDB for PostgreSQL provider extension for per-database CPU resource limits in multi-tenant instances. It is installed and configured by Tencent Cloud support as part of the managed service; it is not a downloadable, portable PostgreSQL extension.
Enablement and Core Workflow
The official feature guide says to submit a support ticket to enable database resource isolation, install tencentdb_serverless, and set its service-managed parameters. It documents qualifying PostgreSQL 14, 15, and 16 kernel versions; consult the current service matrix for other versions. The feature currently applies to primary instances.
After Tencent Cloud confirms enablement, inspect the managed bounds and assign limits to every non-template database:
set_database_cpu_limit(database_name, min_cpu_cores, max_cpu_cores) sets the relative guaranteed minimum and absolute maximum. A maximum of -1 means no configured cap. The provider-managed GUCs describe the instance-wide allowable range and are for inspection, not direct user modification.
Reset one database or the whole instance configuration with:
Operational Notes
Limits take effect in real time, but the guide requires configuring every database for isolation to work as intended. Minimum CPU values are weights when total resources are constrained, not permanently dedicated cores. resource_limit_view includes memory columns that the guide marks reserved and currently unused.
Deleting a database removes its configuration automatically. Disabling the feature also requires a Tencent Cloud support ticket to reset parameters, clear limits, and remove the extension. Validate tenant SLOs under contention and follow the provider’s current kernel, privilege, failover, billing, and support rules.