All Products
Search
Document Center

PolarDB:EnableSearchServerless

Last Updated:Nov 30, 2026

Enables steady-state Serverless for the associated Search cluster and sets the upper and lower limits of additional elastic PCUs per node.

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.

You must specify both ScaleMin and ScaleMax. The upper and lower limits specify the additional elastic PCUs beyond the defined specifications and do not include the defined specifications.

  • If both ScaleMin and ScaleMax are set to 0, the operation returns a success response without enabling Search Serverless. If Search Serverless is already enabled, this call does not disable it.

  • If the valid upper and lower limits are not both 0, the enabling operation is submitted. You can also specify the sensitivity, CPU scale-up threshold, and CPU scale-down threshold.

  • To modify the configurations after Search Serverless is enabled, call ModifySearchServerlessConf. To disable it, call DisableSearchServerless.

A success response does not indicate that the node resources are immediately adjusted. You can call DescribeSearchServerlessConf to query the enabling status and configurations of Search Serverless.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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

Yes

The lower limit of additional elastic resources per Search node, in PCUs. This limit does not include the defined specifications. The value must be a non-negative number and a multiple of 0.5, and cannot be greater than ScaleMax. You must specify this parameter together with ScaleMax. If both are set to 0, the enabling operation is not performed.

0

ScaleMax

string

Yes

The upper limit of additional elastic resources per Search node, in PCUs. This limit does not include the defined specifications. The value must be a non-negative number and a multiple of 0.5, not less than ScaleMin, and not greater than the TraditionalScaleMaxThreshold value returned by DescribeSearchServerlessConf. You must specify this parameter together with ScaleMin. If both are set to 0, the enabling operation is not performed.

16

ServerlessRuleMode

string

No

The elastic sensitivity of Search. Valid values: normal (standard) and flexible (sensitive). If you do not specify this parameter, the default configurations of the Search enabling flow are used. This value is saved independently of the database and is not subject to automatic synchronization with the database.

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 you do not specify this parameter, the default configurations of the Search enabling flow are used, and the default value is 80. The threshold is evaluated based on the elastic rule window and does not indicate that the scale-up is completed immediately after 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 you do not specify this parameter, the default configurations of the Search enabling flow are used, and the default value is 50. The threshold is evaluated based on the elastic rule window and does not indicate that the scale-down is completed immediately after the threshold is reached.

50

Use the ID of the parent PolarDB primary cluster and specify both the upper and lower limits of elastic PCUs. If both limits are set to 0, the enabling operation is not performed.

Response elements

Element

Type

Description

Example

object

The result returned for this request.

RequestId

string

The unique identifier of the request. This identifier is used to locate the request and is not a background task ID.

5E71541A-6007-4DCC-A38A-F872C31FEB45

Returns the RequestId of the request. To query the enabling status and configurations, call DescribeSearchServerlessConf.

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.