Modifies the upper and lower limits of elastic PCUs, elastic sensitivity, and CPU scale-up and scale-down thresholds for an associated Search cluster, and enables or disables the feature based on the current status.
Operation description
Locates the associated Search cluster by using the DBClusterId of the parent PolarDB primary cluster. The DBClusterId parameter does not accept a Search cluster ID. Search serverless is independent of DB serverless. This operation does not synchronize with the configurations, enabling status, or orders of the database. You cannot call this operation to manage Search serverless for clusters that do not contain Search nodes.
Before you call this operation, you can use the Switchs parameter returned by DescribeSearchServerlessConf to determine the enabling status. Do not determine the status based only on the ScaleMin and ScaleMax values returned by the query.
Enabled: Only the specified fields are modified. Unspecified fields retain their original configurations. If you explicitly specify both ScaleMin=0 and ScaleMax=0, the feature is disabled.
Disabled: If you explicitly specify both ScaleMin=0 and ScaleMax=0, a success response is returned and the feature remains disabled. If you specify valid upper and lower limits that are not both 0, the feature is enabled. In this case, you must specify both ScaleMin and ScaleMax.
When the feature is enabled, the specified sensitivity and CPU scale-up and scale-down thresholds are applied. If these parameters are not specified, the default values of the Search enabling process are used.
The upper and lower limits represent the additional elastic PCUs beyond the defined specifications. Specifying only one value as 0 does not indicate a shutdown. If the console requires synchronization of the advanced configurations for the database and Search, you must invoke the two sets of operations separately and pass the same values. This operation does not perform automatic synchronization for the database.
A success response does not indicate that the node resources have been immediately adjusted. You can query the configurations again later.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the parent PolarDB primary cluster. This ID is used to locate the associated Search cluster and is not the Search cluster ID. This operation only manages Search and does not synchronize with DB serverless. |
pc-bp10gr51qasnl**** |
| ScaleMin |
string |
No |
The lower limit of additional elastic resources for a single node, in PCUs. This limit does not include defined specifications. The value must be a non-negative number, a multiple of 0.5, and less than or equal to ScaleMax. If the feature is enabled and this parameter is not specified, the original value is retained. If the feature is disabled and you want to enable it, you must specify both this parameter and ScaleMax. If you explicitly specify 0 for both this parameter and ScaleMax, a shutdown is performed if the feature is enabled, or the shutdown state is maintained if it is already in a shutdown state. |
0 |
| ScaleMax |
string |
No |
The upper limit of additional elastic resources for a single node, in PCUs. This limit does not include defined specifications. The value must be a non-negative number, a multiple of 0.5, greater than or equal to ScaleMin, and less than or equal to the TraditionalScaleMaxThreshold value returned by DescribeSearchServerlessConf. If the feature is enabled and this parameter is not specified, the original value is retained. If the feature is disabled and you want to enable it, you must specify both this parameter and ScaleMin. If you explicitly specify 0 for both this parameter and ScaleMin, a shutdown is performed if the feature is enabled, or the shutdown state is maintained if it is already in a shutdown state. |
16 |
| ServerlessRuleMode |
string |
No |
The elastic sensitivity of Search. Valid values: normal (standard) and flexible (sensitive). If the feature is enabled and this parameter is not specified, the original value is retained. If the feature is being enabled and this parameter is not specified, the default configurations of the Search enabling flow are used. This value is saved independently of the database, and automatic synchronization with the database is not performed. |
normal |
| ServerlessRuleCpuEnlargeThreshold |
integer |
No |
The CPU scale-up threshold, in percentage. The value must be an integer from 0 to 100. The value must be at least 30 percentage points higher than the CPU scale-down threshold. If the feature is enabled and this parameter is not specified, the original value is retained. If the feature is being enabled and this parameter is not specified, the default configurations of the Search enabling flow are used. The default value is 80. The threshold is evaluated based on the elastic rule window and does not indicate that the scale-up is immediately completed when the threshold is reached. |
80 |
| ServerlessRuleCpuShrinkThreshold |
integer |
No |
The CPU scale-down threshold, in percentage. The value must be an integer from 0 to 100. The value must be at least 30 percentage points lower than the CPU scale-up threshold. If the feature is enabled and this parameter is not specified, the original value is retained. If the feature is being enabled and this parameter is not specified, the default configurations of the Search enabling flow are used. The default value is 50. The threshold is evaluated based on the elastic rule window and does not indicate that the scale-down is immediately completed when the threshold is reached. |
50 |
If the feature is enabled, specify only the fields that you want to modify. If the feature is disabled and you want to enable it, you must specify both the upper and lower limits. If you explicitly specify 0/0, the feature is disabled or remains disabled based on the current enabling status.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The results returned for the request. |
||
| RequestId |
string |
The unique identifier of the request. This ID is used to locate the request and is not a background task ID. |
5E71541A-6007-4DCC-A38A-F872C31FEB45 |
Returns the RequestId of the request. You can call DescribeSearchServerlessConf to query the switch status and configurations.
Examples
Success response
JSON format
{
"RequestId": "5E71541A-6007-4DCC-A38A-F872C31FEB45"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.