doc-exports/docs/opengauss/api-ref/opengauss_api_0020.html
Wang , Deng Ke a96a12ecf1 openGauss API 20221109 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-14 16:40:26 +00:00

13 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 9.
  • The maximum number of shards is 256.

URI

  • Request example
    {
    	"expand_cluster": {
                    "shard":{
                           "count":"1"
                    }
    	}
    }

Response

  • Normal response
    Table 4 Parameter description

    Name

    Type

    Description

    job_id

    String

    Specifies the task ID.

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

    For details, see Abnormal Request Results.

Status Codes

For details, see Status Codes.

Error Codes

For details, see Error Codes.