- Documentation
Cache for Redis
Development reference (Control plane)
API reference
Modifying instance configuration
EnableShardedCluster
Modifying instance configuration
EnableShardedCluster
EnableShardedCluster
Call the EnableShardedCluster API to change an instance with sharding cluster disabled to an instance with sharding cluster enabled.
Request type
Asynchronous request.
Precautions
- Once instance is changed from sharding cluster disabled to sharding cluster enabled, it cannot be reversed.
- Changing the sharding cluster status from disabled to enabled only alters the architecture of the instance, with the instance type, availability zone, connection address, and other attributes remaining unchanged.
- After changing instance with sharding cluster disabled to sharding cluster enabled, the instance architecture changes, and there will be differences in limits concerning Lua script usage, multi-key commands, transaction commands, and other commands. For more information about command limits, refer to Command limits.
- During the change process, the instance might prompt the error -TRYAGAIN The specific keys are being migrated.\r\n, or experience one or two temporary disconnections, each less than 30 seconds. Proceed with caution. It is recommended to perform configuration changes during off-peak hours and ensure that the client is configured with a proper retry mechanism.
- Initiating a configuration change after enabling data flashback will automatically disable the data flashback feature. After the data flashback feature is disabled, previous flashback points will no longer be retained. For more details, refer to Setting data flashback.
Debugging
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
Response parameters
Example
Request example
POST https://redis.cn-beijing.volcengineapi.com/?Action=EnableShardedCluster&Version=2020-12-07 HTTP/1.1
Host: redis.cn-beijing.volcengineapi.com
Content-Type: application/json; charset=utf-8
X-Date: 20201103T104027Z
Authorization: HMAC-SHA256 Credential=AK****/20201103/cn-beijing/Redis/request,SignedHeaders=content-type;host;x-date,Signature=****
"InstanceId": "redis-cn0212gzmh2xs****",
"ApplyImmediately": true,
Response example
"RequestId": "20230509153711EDF4F0D1DBEFA625xxxx",
"Action": "EnableShardedCluster",
"Version": "2020-12-07",
"OrderNO": "Order723108288213844****"
Error code
Last updated: 2026.09.21 15:01:09