cpu_quota_concurrency specifies the maximum concurrency allowed for each CPU quota of a tenant.
Note
The value range of this parameter is changed from [1,10] to [1,20] in OceanBase Database V4.2.0 and later.
| Property | Description |
|---|---|
| Type | Double-precision floating-point number |
| Default value | 4 |
| Value range | [1,20] |
| Effective upon OBServer node restart | No |
The number of threads that can be concurrently handled by a tenant is controlled by two parameters: cpu_quota_concurrency and workers_per_cpu_quota. The two parameters must meet the following condition:
workers_per_cpu_quota > cpu_quota_concurrency
workers_per_cpu_quotaspecifies the maximum number of worker threads that a tenant can allocate to each CPU.For more information about workers_per_cpu_quota, see workers_per_cpu_quota.
cpu_quota_concurrencyspecifies the number of active worker threads of the tenant on each CPU, that is, the number of concurrent worker threads.Note
When the physical machine has sufficient CPU resources, you can set
cpu_quota_concurrencyto a large value. If the physical machine has insufficient CPU resources, you can setcpu_quota_concurrencyto a small value to avoid risks.