Redis recipes
- Rewrite (compact) the AOF filePersistence
- Take an RDB snapshot in the backgroundPersistence
- Take a synchronous RDB snapshotPersistence
- View the last successful snapshot timePersistence
- Write the running configuration to diskPersistence
- Enable or disable AOFPersistence
- Set RDB snapshot rulesPersistence
- Make a node a replicaReplication
- Promote a replica to masterReplication
- Perform a manual failoverCluster
- Add a node to the clusterCluster
- Assign cluster slotsCluster
- View replication statusCluster
- View cluster statusCluster
- Set maxmemory and the policyMemory
- Analyze memoryMemory
- View the slow command logMaintenance
- Set the slow command thresholdMaintenance
- Reset the slow command logMaintenance
- Kill a client connectionMaintenance
- List connected clientsMaintenance
- View a parameter valueRuntime
- Change a parameter valueRuntime
- Analyze memory usage and fragmentation, enable active defragMemory
- Find big keys (--bigkeys, --memkeys, MEMORY USAGE)Memory
- Find hot keys (--hotkeys, OBJECT FREQ)Performance
- Find keys matching a pattern without KEYS and delete them safely (SCAN + UNLINK)Maintenance
- Diagnose the source of latency (LATENCY DOCTOR, histogram, commandstats)Performance
- Diagnose eviction, expiry and OOM errorsMemory
- Find connections bloating memory (output buffer, query buffer, maxmemory-clients)Memory
- Diagnose RDB/AOF error state, fork time and the cause of MISCONFPersistence
- Repair Redis that will not start because of a corrupt AOF (redis-check-aof, redis-check-rdb)Persistence
- Fix replication drops and an endless full resync loop (backlog, replica buffer)Replication
- Check Sentinel state, the current master and quorumSentinel
- Perform a manual failover with Sentinel and clean up the topologySentinel
- Check cluster health and repair slot inconsistencies (--cluster check/fix)Cluster
- Add nodes, move slots and remove nodes in a cluster (add-node, reshard, rebalance)Cluster
- Create ACL users, test permissions and make them persistentSecurity
- Investigate NOPERM and WRONGPASS errors (ACL LOG)Security
- Monitor key deletion and expiry events with keyspace notificationsMaintenance