Tair (Redis OSS-compatible) allows you to configure specific instance parameters. The instance parameters that can be configured vary based on the engine version and instance architecture. This topic describes how to configure parameters for an instance.
Precautions
If the
Parameter is not supported for current version
error is returned when you modify the values of specific instance parameters, you must update the instance to the latest minor version. For more information, see Update the minor version of an instance.You cannot run commands to modify the values of specific parameters for Tair (Redis OSS-compatible) instances. For example, after you run the
CONFIG SET TIMEOUT 60
command, the command does not take effect even ifOK
is returned. To modify the values of specific instance parameters, log on to the console or call the ModifyInstanceConfig operation.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, click Parameter Settings.
Modify the values of one or more parameters.
You can use one of the following methods to modify the values of specific instance parameters. For more information about the parameters, see Parameters that can be configured for Redis Open-Source Edition instances.
WarningAfter you submit a modification to a specific parameter, the instance restarts. During the restart, the instance may encounter transient connections within seconds. Proceed with caution. Before you modify the value of a parameter, check the Restart and Take Effect column of the parameter to ensure that an instance restart is not required for the modification to take effect.
Modify the value of a single parameter for the instance.
On the System Parameters tab, find the parameter that you want to modify and click Modify in the Actions column.
Click OK.
Modify the values of multiple parameters for the instance.
Click Batch Modify.
Find the parameters for which you want to modify values and modify the values in the Running Value column.
Click Modify.
Import parameters from a file for modification.
To apply the parameter configurations of another instance to the current instance, you can use this method. Before you apply the parameter configurations to the current instance, go to the System Parameters tab of the source Tair (Redis OSS-compatible) instance and click the icon in the upper-right corner to download the parameter configuration file.
NoteThese two instances must use the same engine version and instance architecture. Otherwise, specific parameter modifications cannot take effect. For example, the
query_cache_enabled
parameter is supported only for Tair (Enterprise Edition) DRAM-based instances. If you import the parameter to instances of other series types or Redis Open-Source Edition instances, it does not take effect.Click Import from File.
In the Batch Import panel, click the icon to upload the downloaded file.
In the Parameter Details section, select the parameters for which you want to modify values.
NoteYou can turn on Display Only Changed Parameters to filter parameters that are set to values different from Running Value.
Click Modify.
Related API operations
API operation | Description |
Queries the configuration and operational parameters of an instance. | |
Modifies the parameter settings of an instance. |