CONFIG REWRITE to persist across server restarts.
Key Concepts
Runtime Config
Persistent Config
Read-Only Parameters
Categories
Required Permissions
Configuration Categories
How to View Configuration
Select Connection
Browse Parameters
Filter by Category
Search Parameters
How to Modify Configuration
Find the Parameter
Click Edit
Enter New Value
Save
Common Settings
Memory Configuration
Eviction Policies
Client Configuration
Slow Log Configuration
slowlog-log-slower-than to 0 to log all commands, or -1 to disable slow logging.Persistence Configuration
How to Persist Configuration Changes
Runtime changes are lost on restart unless persisted.Make Changes
Open Redis CLI
Run CONFIG REWRITE
CONFIG REWRITE to save current configuration to redis.conf.Troubleshooting
Cannot modify configuration
Cannot modify configuration
- You need write permission
- Some parameters are read-only and require restart
- The server may be in read-only mode
- Check if the parameter name is correct
Changes not persisting after restart
Changes not persisting after restart
- Run
CONFIG REWRITEto save changes to redis.conf - Verify Redis has write access to the config file
- Check if Redis was started with a config file
CONFIG REWRITE failed
CONFIG REWRITE failed
- Redis may not have write permission to config file
- Redis may have been started without a config file
- File system may be read-only
- Check Redis logs for specific error
Parameter not found
Parameter not found
- Check Redis version (some parameters are version-specific)
- Verify parameter name spelling
- Some parameters are aliases (e.g., slaveof vs replicaof)
Invalid value error
Invalid value error
- Check the expected value format
- Memory values use K, M, G suffixes (e.g., 100mb)
- Boolean values use yes/no, not true/false
- Time values may be in seconds or milliseconds
Server performance degraded after change
Server performance degraded after change
- Revert the change using the same edit process
- Common causes: maxmemory too low, aggressive eviction
- Check Redis INFO for memory and eviction stats
- Monitor slow log for performance impact
FAQ
What's the difference between runtime and static configuration?
What's the difference between runtime and static configuration?
How do I find the current redis.conf location?
How do I find the current redis.conf location?
CONFIG GET dir to get the working directory and CONFIG GET dbfilename for the database file. The redis.conf is typically in the same directory or /etc/redis/.What happens if maxmemory is set too low?
What happens if maxmemory is set too low?
Should I enable AOF or RDB persistence?
Should I enable AOF or RDB persistence?
What's a good value for slowlog-log-slower-than?
What's a good value for slowlog-log-slower-than?
How do I reset a parameter to default?
How do I reset a parameter to default?
Can configuration changes affect running operations?
Can configuration changes affect running operations?
Why do some parameters show empty values?
Why do some parameters show empty values?
bind means Redis listens on all interfaces.Best Practices
Before Making Changes
- Document current values before modifying
- Understand the impact of each parameter
- Test changes in non-production environments first
- Have a rollback plan ready
Memory Configuration
- Set maxmemory to leave headroom for overhead
- Choose appropriate eviction policy for your use case
- Monitor memory usage after changes
- Consider fragmentation when setting limits
Performance Tuning
- Start with defaults, adjust based on monitoring
- Use slow log to identify bottlenecks
- Tune tcp-keepalive based on network environment
- Adjust maxclients based on expected load
Persistence Settings
- Balance durability vs performance with appendfsync
- Configure save points based on data change rate
- Monitor disk I/O after persistence changes
- Test backup and recovery procedures
Security Settings
- Enable protected-mode in production
- Set strong requirepass for authentication
- Consider ACL for fine-grained access (Redis 6+)
- Limit bind addresses to required interfaces