--- acl_categories: - '@admin' - '@slow' - '@dangerous' arguments: - arguments: - display_text: parameter name: parameter type: string - display_text: value name: value type: string multiple: true name: data type: block arity: -4 categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients command_flags: - admin - noscript - loading - stale complexity: O(N) when N is the number of configuration parameters provided description: Sets configuration parameters in-flight. group: server hidden: false hints: - request_policy:all_nodes - response_policy:all_succeeded history: - - 7.0.0 - Added the ability to set multiple parameters in one call. linkTitle: CONFIG SET railroad_diagram: /images/railroad/config-set.svg since: 2.0.0 summary: Sets configuration parameters in-flight. syntax_fmt: CONFIG SET parameter value [parameter value ...] title: CONFIG SET --- The `CONFIG SET` command is used in order to reconfigure the server at run time without the need to restart Redis. You can change both trivial parameters or switch from one to another persistence option using this command. The list of configuration parameters supported by `CONFIG SET` can be obtained issuing a `CONFIG GET *` command, that is the symmetrical command used to obtain information about the configuration of a running Redis instance. All the configuration parameters set using `CONFIG SET` are immediately loaded by Redis and will take effect starting with the next command executed. All the supported parameters have the same meaning of the equivalent configuration parameter used in the [redis.conf][hgcarr22rc] file. [hgcarr22rc]: http://github.com/redis/redis/raw/unstable/redis.conf Note that you should look at the redis.conf file relevant to the version you're working with as configuration options might change between versions. The link above is to the latest development version. It is possible to switch persistence from RDB snapshotting to append-only file (and the other way around) using the `CONFIG SET` command. See the [persistence page]({{< relref "/operate/oss_and_stack/management/persistence" >}}) for more information. ``` CONFIG SET appendonly yes ``` Setting the `appendonly` parameter as shown above will start a background process to save the initial append-only file (obtained from the in memory data set), and will append all the subsequent commands on the append-only file, thus obtaining exactly the same effect of a Redis server that started with AOF turned on since the start. You can have both the AOF enabled with RDB snapshotting if you want, the two options are not mutually exclusive. ## Redis Software and Redis Cloud compatibility | Redis
Software | Redis
Cloud | Notes | |:----------------------|:-----------------|:------| | ✅ Standard
✅ Active-Active | ✅ Standard
✅ Active-Active | [Only supports a subset of configuration settings.]({{< relref "/operate/rs/references/compatibility/config-settings" >}}) | ## Return information {{< multitabs id="config-set-return-info" tab1="RESP2" tab2="RESP3" >}} [Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` when the configuration was set properly. Otherwise an error is returned. -tab-sep- [Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` when the configuration was set properly. Otherwise an error is returned. {{< /multitabs >}}