server_cpu_quota_max

2026-02-03 08:48:38  Updated

Note

This parameter is available starting with V2.2.50.

Description

server_cpu_quota_max specifies the maximum CPU quota available to the system.

Privilege requirements

  • Query the parameter

    The sys tenant and all user tenants can query this parameter by using the SHOW PARAMETERS statement or the GV$OB_PARAMETERS view.

  • Modify the parameter

    Only the sys tenant can modify this parameter. User tenants cannot modify this parameter.

Attributes

Attribute Description
Type Double
Default value 0

Note

  • For V4.0.0, the default value changes from 5 to 1.
  • For V4.2.1, the default value changes from 1 to 0.
Value range [0, 16]

Note

  • For V4.0.0, the value range changes from [0, 16] to [1, 16].
  • For V4.2.1, the value range changes from [1, 16] to [0, 16].
Modifiable Yes. You can use the ALTER SYSTEM SET statement to modify the parameter.
Effective upon OBServer node restart No. The setting takes effect immediately.

Note

For V4.1.0, the effective mode changes from restart to immediate.

Considerations

When the value is 0, the system adaptively adjusts the maximum CPU quota based on the cpu_count value of the server:

  1. If cpu_count is less than 8, the server_cpu_quota_max value is adaptively adjusted to 1.
  2. If 8 ≤ cpu_count < 16, the server_cpu_quota_max value is adaptively adjusted to 2.
  3. If 16 ≤ cpu_count < 32, the server_cpu_quota_max value is adaptively adjusted to 3.
  4. If cpu_count is 32 or more, the server_cpu_quota_max value is adaptively adjusted to 4.

Examples

Adaptively adjust the maximum CPU quota.

obclient> ALTER SYSTEM SET server_cpu_quota_max=0;

Contact Us