doc-exports/docs/opengauss/api-ref/opengauss_api_1020.html
Ru, Li Yi d97aea4dd2 opengauss_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 09:04:21 +00:00

16 KiB

Adding Shards

Function

This API is used to add shards.

Intermittent disconnection occurs when shards are being added. Exercise caution when performing this operation.

Constraints

  • The shard growth increment ranges from 1 to 64.
  • The maximum number of shards is 256.

URI

  • Example request
    {
    	"expand_cluster": {
                    "shard":{
                           "count":1
                    }
                    
    	}
    }

Response

  • Normal response
    Table 4 Parameter description

    Name

    Type

    Description

    job_id

    String

    Task ID.

  • Example normal response
    • Example response
      {
      	"job_id": "2b414788a6004883a02390e2eb0ea227"
      }
  • Abnormal response

    For details, see Abnormal Request Results.

Status Code

Error Code

For details, see Error Codes.