|
|
|
|
|
by nxb
3923 days ago
|
|
Is there a document that lists out Redis best practices like "Redis is very fast as long as you use O(1) and O(log_N) commands"? Sure it's probably all obvious things, but it would be nice to have a checklist to skim over, to be sure I haven't forgotten any major consideration when designing a new system. |
|
However the best tool for debugging if there is something wrong with a given deployment is to use the LATENCY command. Once the latency monitoring is enabled, by calling LATENCY DOCTOR Redis creates an automatic report about all the possible sources of latency with a given application/setup by collecting and analyzing live data.
The latency reporting is explained here: http://redis.io/topics/latency-monitor
Moreover sources of latency and a quick list of things to check to make sure to avoid 99% of the problems are also listed here:
http://redis.io/topics/latency
The first section is a TL;DR synopsis listing everything very important.
In general the "slow log" feature, the latency doctor and reporting abilities, the software watchdog, and the documentation which explicitly provides time complexity for each command, should be quite a good amount of tools and informations in order to avoid problems. Obviously like with any popular tool like Redis, there is a percentage of users that will not read the doc and just deploy it. This is unavoidable but at least when they run into issues we try to provide them with the tools needed.