redis.conf to CONFIG SET

Paste a redis.conf and get the CONFIG SET commands that apply it live. Directives that need a restart are commented out with the reason, because CONFIG SET on a read-only parameter is an error rather than a no-op.

Paste below, or drop a file anywhere on this panel

Or drop a file anywhere on this panel. Nothing is uploaded: the analysis runs in this tab.

The answer appears here

Paste on the left and press Convert. Nothing leaves this tab.

Examples

Real input you can load into the tool above. Each one shows a different thing going wrong, because that is what the tool is for.

Live and restart-only

Which directives can be applied now, and which are commented out because they cannot

maxmemory 2gb
maxmemory-policy allkeys-lru
port 6380

Common mistakes

These are the ones that fail silently. The config is accepted, nothing raises an error, and the consequence arrives later.

  1. Applying a fix with CONFIG SET and stopping there

    It changes memory only. The next restart, for any reason, reverts it. The classic version is a limit raised during an incident and undone weeks later by an unrelated deploy.

    Instead:Follow with CONFIG REWRITE, or make the same edit in the file.

  2. Running CONFIG SET appendonly yes at peak

    It starts an AOF rewrite immediately, which forks the process. On a large dataset that is a memory spike and a latency event.

    Instead:Do it during a quiet period, and watch used_memory_rss while it runs.

CONFIG SET changes memory, not the file

This is the detail that turns a good fix into a future incident, and it catches experienced people because nothing about the command suggests it.

Nothing you set survives a restart

CONFIG SET changes the running server only. The file is untouched, so the next restart, whenever and for whatever reason it happens, reverts everything. The classic version of this is a memory limit raised during an incident at 3am and undone weeks later by an unrelated deploy, with nobody connecting the two.

CONFIG REWRITE is the other half

It writes the running configuration back to the config file, preserving comments and structure. It requires that Redis was started with a config file: an instance started with command line arguments only has nowhere to write, and the command errors.

Some directives genuinely need a restart

port, bind, databases, cluster-enabled, io-threads and appendfilename are fixed at startup. CONFIG SET on those returns an error naming the parameter rather than accepting and ignoring it, so nothing fails silently, but a script that assumes success will do the wrong thing.

appendonly is settable, and it does real work

CONFIG SET appendonly yes starts an AOF rewrite immediately, which forks the process. On a large dataset that is a memory spike and a latency event, so it is not a change to make casually during peak traffic.

What this cannot see

Whether your server accepts a given parameter depends on its version, and directives are renamed between versions: hash-max-ziplist-entries became hash-max-listpack-entries in 7.0, with the old name kept as an alias. This page does not know your version, so it cannot tell you which spelling yours wants.

More redis tools

Redis Hash Slot Calculator Which of the 16,384 slots does this key land in? Redis Hash Tag Tester Will these keys survive a multi-key command? Redis RESP Protocol Decoder Read what the server actually sent Redis RESP2 vs RESP3 Reply Decoder What the same reply looks like on each protocol Redis Command to RESP Exactly what your client puts on the socket Redis Glob Pattern Tester Redis globs are not shell globs Redis Connection URL Parser The path is the database number Redis Memory Unit Converter 1g and 1gb are not the same number Redis TTL Converter -1 and -2 are not durations Redis Stream ID Parser The first half is a millisecond timestamp redis.conf Validator Will Redis start with this file? Redis Production Config Linter The settings that cause incidents Redis ACL Rule Decoder What does this user actually get? Redis ACL Validator Find the rule that does nothing Redis INFO Analyzer The numbers INFO does not print Redis SLOWLOG Analyzer What blocked everyone else Redis CLUSTER NODES Parser Read the topology, and find the gap Redis Cluster Slot Distribution Who owns how much, and what is missing Redis Keyspace Notification Flags Why your events never arrive Redis Memory Calculator The encoding decides, not the data Redis Key Count to Memory The fixed cost per key Redis Encoding Threshold Calculator One field more, several times the memory Redis Bitmap Memory Calculator Sized by the highest bit, not the set ones Redis HyperLogLog Calculator 12 KB whether you count a thousand or a billion Redis Cluster Sizing Only 60% of each node is usable Redis RDB and AOF Size Calculator The fork needs memory, not disk Redis Replication Bandwidth Calculator How long the backlog actually covers Redis Connection Pool Calculator More connections is not more throughput Redis Pipeline Calculator It removes round trips, not work Redis Cache Hit Rate Calculator 99% to 90% is ten times the backend load Redis Eviction Policy Simulator volatile- with no TTLs is noeviction Redis Cost Estimator Your rates, so nothing goes stale Redis Config File Generator A redis.conf with the reasons in it Redis ACL Generator A user that can do exactly one job Redis Maxmemory Config Generator The limit, and the headroom it needs Redis Persistence Config Generator How much you can afford to lose Redis Lua Script Generator Atomic, and short enough to stay that way Redis TLS Config Generator Encrypted, and the old port actually closed Redis Sentinel Config Generator Failover that can actually be authorised Redis Cluster Config Generator Three primaries, and the bus port open Redis Docker Compose Generator Local Redis that is not on the internet Redis Client Config Generator Timeouts on both sides, and a sane pool Redis MEMORY STATS Analyzer Which number actually matters Redis Bigkeys Output Analyzer Elements are not bytes Redis CLIENT LIST Analyzer Find the connection hurting you Redis LATENCY Report Analyzer An empty report may mean nothing was recorded Redis Keyspace Prefix Analyzer Which key family is growing Redis SET Command Builder A plain SET clears the TTL Redis ZRANGE Query Builder REV reverses the argument order Redis SCAN Iteration Planner COUNT is a hint, not a page size Redis Key Name Validator Legal is not the same as workable Redis Cluster Compatibility Checker Works now, breaks when you shard

Elsewhere on the site