Redis performance metrics
Throughput: commands per seconds
Key evictions: when max memory reached
Memory fragmentation ratio: 1-1.5 system allocated memory for redis.
Cache hit ratio: 0.8 to 1 (1=100%)
#1 memory
#2 total_commands_processed & latency
#3Latency not info command
slow log
#5 client connections concurrent
#6 Memory Fragmentation Ratio or redis used_memory vs maxmemory
$5 Evictions
#6 Throughput operations per second
ideal Cache Hit Ratio in redis
Evicted/Expired Keys
volatile = expiration set
allkeys = from all keys without expiration
lfu: least frequently used
lru: least recently used
random: random key
ttl: time to live (shortest)
volatile-ttl,
volatile-lru,volatile-random,allkeys-lru,allkeys-random,volatile-lfu,allkeys-lfu
Performance tuning
Increase max connections limit by linux kernel
Redis will get OOM (Out of Memory) error causes by overcommit memory value is 0
Overcommit memory is a kernel parameter which checks if the memory is available or not
nano /etc/sysctl.conf
vm.overcommit_memory = 1
timeout 300 sec
maxmemory 70-90% in dedicated
maxmemory-policy volatile-lru if expires quickly otherwise lru.
Also read install & configure redis in ubuntu & debian nginx / apache