What do I look at first?
The few numbers I watch, the settings that change behavior, and the commands I use.
Example dashboard: the thresholds are starting points I would tune per system, and the colors are made up for the picture.
| Signal | Why I watch it | Where it comes from |
|---|---|---|
| Memory used vs maxmemory | Past maxmemory Redis evicts or refuses writes, depending on the policy. | INFO memory |
| Evicted keys | A rising count means the cache is too small for the working set. | INFO stats evicted_keys |
| Hit ratio | Misses go to the main database. A falling ratio is load moving onto it. | keyspace_hits and keyspace_misses |
| Slow commands | One thread runs every command. One slow KEYS or big DEL stalls everyone. | SLOWLOG GET |
| Replication link | A replica that is down or far behind is a failover that loses more. | INFO replication |
| Last save status | A failed background save means a restart loses more than you think. | rdb_last_bgsave_status |
| Setting | Default | What it trades |
|---|---|---|
| appendonly | no | Off: only snapshots, so a crash loses everything since the last one. On: every write is logged. |
| appendfsync | everysec | always: a disk flush per write, safest and slowest. everysec: up to about a second of loss. no: the operating system decides, often about 30 seconds. |
| save | 3600 1 300 100 60 10000 | When RDB snapshots run: after an hour if 1 key changed, 5 minutes if 100, a minute if 10,000. |
| maxmemory | 0, no limit | Always set it, below the machine's memory, leaving room for the fork during a save. |
| maxmemory-policy | noeviction | For a cache: allkeys-lru or allkeys-lfu. For data you must keep: noeviction, and an alert on memory. |
| WAIT and min-replicas-to-write | not used | WAIT makes one client wait until replicas have a write; min-replicas-to-write makes a primary refuse writes without replicas. Both narrow the loss window; neither makes Redis strongly consistent. |
redis-cli INFO memory # used_memory, maxmemory, mem_fragmentation_ratio redis-cli INFO persistence # rdb_last_bgsave_status, aof_enabled, aof_delayed_fsync, latest_fork_usec redis-cli INFO replication # role, connected replicas, offsets redis-cli CONFIG GET appendfsync redis-cli --bigkeys # the biggest key of each type, by sampling redis-cli MEMORY USAGE cart:42 # bytes for one key redis-cli SLOWLOG GET 10 # the slowest recent commands redis-cli LATENCY DOCTOR # what caused recent latency spikes
Versions and licences. Redis 7.4 moved to source-available licences (RSALv2 or SSPLv1). Valkey forked from 7.2.4 under the BSD licence in 2024, at the Linux Foundation, and AWS and Google Cloud offer managed Valkey. Redis 8 (2025) added AGPLv3 as an option, bundles JSON, search, time series and probabilistic types, and adds a vector set type. The current line is Redis 8.12 (November 2026). Everything on this page about memory, persistence and replication works the same in Valkey.
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.