Modifies the parameter settings of an ApsaraDB for Tair (Redis® OSS-Compatible) database instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:ModifyInstanceConfig |
update |
*DBInstance
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| Config |
string |
No |
The instance parameters to modify, in JSON format. The new values overwrite the existing values. For example, if you want to set only the maxmemory-policy parameter to noeviction, pass in Note
For more information about each parameter, see Metric description. |
{"maxmemory-policy":"volatile-lru","zset-max-ziplist-entries":128,"zset-max-ziplist-value":64,"hash-max-ziplist-entries":512,"set-max-intset-entries":512} |
| ParamReplMode |
string |
No |
The synchronization pattern. Valid values:
|
async |
| ParamSemisyncReplTimeout |
string |
No |
The degradation threshold for semi-synchronous mode. This parameter is supported only in semi-synchronous mode. Unit: ms. Valid values: 10 to 60000. Default value: 500. Note
|
500 |
| ParamNoLooseSentinelEnabled |
string |
No |
The Sentinel compatibility mode. This parameter applies to non-cluster instances. Valid values:
Note
For more information, see Sentinel compatibility mode. |
yes |
| ParamSentinelCompatEnable |
string |
No |
The Sentinel compatibility mode. This parameter applies to instances that use the proxy connection mode in cluster architecture or instances that use the read/write splitting architecture. Valid values:
Note
For more information, see Sentinel compatibility mode. |
1 |
| ParamNoLooseSentinelPasswordFreeAccess |
string |
No |
Specifies whether to allow password-free execution of Sentinel-related commands when Sentinel mode is enabled. Valid values:
|
**** |
| ParamNoLooseSentinelPasswordFreeCommands |
string |
No |
After Sentinel mode and the ParamNoLooseSentinelPasswordFreeAccess parameter are enabled, use this parameter to add additional password-free commands (empty by default). Note
|
**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
8D0C0AFC-E9CD-47A4-8395-5C31BF9B**** |
Examples
Success response
JSON format
{
"RequestId": "8D0C0AFC-E9CD-47A4-8395-5C31BF9B****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | The parameter is invalid. |
| 400 | ParamNotSupportedForCurrentVersion | Parameter is not supported for current version. | |
| 403 | InstanceType.NotSupport | Current instance type does not support this operation. | |
| 403 | NetworkType.NotSupport | Current network type does not support this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.