Hands-on task
The slowest command in SLOWLOG
Users complain that Redis "freezes" for hundreds of milliseconds from time to time. Redis is single-threaded: while one heavy command runs, all other clients wait.
The slow command log is already enabled and has collected some entries. Find the slowest command in it (the one with the longest execution time) and write only its name to /root/slow.txt — a single word, for example KEYS.
Don't clear the log and don't change the settings.
- redis
- SLOWLOG
- slowlog-log-slower-than
- performance