Splits a shard in the readwrite state.
Operation description
Usage notes
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
- Each shard has an MD5 hash range, and each range is a left-closed, right-open interval. The interval is in the
[BeginKey,EndKey)
format. A shard can be in the readwrite or readonly state. You can split a shard and merge shards. For more information, see Shard .
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /logstores/{logstore}/shards/{shard}?action=split HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
logstore | string | Yes | The name of the Logstore. | logstorename |
shard | integer | Yes | The ID of the shard. | 0 |
key | string | No | The position where the shard is split. | ef000000000000000000000000000000 |
shardCount | integer | No | The number of new shards that are generated after splitting. | 2 |
Response parameters
Examples
Sample success responses
JSON
format
[
{
"shardID": 0,
"status": "readwrite",
"inclusiveBeginKey": "00000000000000000000000000000000",
"exclusiveEndKey": "8000000000000000000000000000000",
"serverIp": "203.0.113.10",
"createTime": 1524222931
}
]
Error codes
For a list of error codes, visit the Service error codes.