How it works...
The Redis slow log is a feature that records queries or operations with an execution time that exceeded the threshold specified by slowlog-log-slower-than in microseconds.
In our preceding example, we set the threshold to five microseconds, which means that all queries or operations that take more than five microseconds will be recorded by the slow log. The default value of slowlog-log-slower-than is 10000 (10 milliseconds), a negative value of this option means disabling slow log, while setting the option to 0 will log all queries.
The recorded slow queries or operations are pushed into a FIFO queue, the maximum size of which can be specified by slowlog-max-len, with the default value of 128. SLOWLOG GET prints all records ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access