{"id":22502,"date":"2026-11-26T13:00:00","date_gmt":"2026-11-26T12:00:00","guid":{"rendered":"https:\/\/webhosting.de\/?p=22502"},"modified":"2026-11-17T00:00:54","modified_gmt":"2026-11-16T23:00:54","slug":"identifying-redis-hot-keys","status":"publish","type":"post","link":"https:\/\/webhosting.de\/en\/redis-hot-keys-erkennen\/","title":{"rendered":"Identifying Redis Hot Keys and Targeting Cache Bottlenecks"},"content":{"rendered":"<div class=\"wh-article\" data-wh-layout=\"2.1.2\" style=\"width:100%;max-width:820px;margin:0 auto;color:#263b4b;font-family:inherit;font-size:18px;line-height:1.8;text-align:start;overflow-wrap:break-word;box-sizing:border-box\"><p class=\"wh-lead\" style=\"font-size:20px;line-height:1.7;color:#233746;margin:0 0 1.1em\">You can identify Redis hot keys by narrowing down conspicuous nodes and load windows and then examining the resource usage of individual keys. <strong style=\"font-weight:700;color:inherit\">CPU Time and Network Bytes<\/strong> help distinguish between different types of bottlenecks: A small value that is read frequently can cause just as many problems as an expensive collection operation or a large response. Starting with version 8.6, Redis Open Source offers the command group <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">HOTKEYS<\/code>. However, their rankings provide candidates rather than exact traffic figures; the version, measurement window, and nodes determine the reliability of the data.  <\/p>\n<nav class=\"wh-toc\" aria-label=\"Contents of this article\" style=\"display:block;margin:28px 0 38px;padding:22px;border:1px solid #d9e4e8;border-radius:14px;background:#f4f8f8\"><p class=\"wh-toc-title\" style=\"font-size:13px;font-weight:700;letter-spacing:.08em;color:#49656b;margin:0 0 14px\">Go directly to the section<\/p><div class=\"wh-toc-grid\" style=\"display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px\"><div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#hot-keys-grundlagen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">What makes a Redis key \"hot\"?<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#symptome-eingrenzen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Narrow Down Load and Topology<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#messprinzip-versionen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">What HOTKEYS Actually Records<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#hotkeys-praxis\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Using and Analyzing HOTKEYS Safely<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#werkzeuge-vergleichen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">A Comparison of Diagnostic Tools<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#ergebnisse-einordnen\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Interpreting CPU and Network Metrics<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#leselast-und-misses\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Mitigating Read Load and Cache Misses<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#schreiblast-und-datenmodell\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Distribute Write Load and Data Volume<\/a><\/div>\n<div class=\"wh-toc-item\" style=\"display:block;min-width:0;margin:0;padding:0\"><a class=\"wh-toc-link\" href=\"#betrieb-und-kontrolle\" style=\"display:block;height:100%;padding:12px 15px;border:1px solid #dce6e8;border-radius:9px;background:#fff;color:#18575b;font-size:14px;line-height:1.5;font-weight:600;text-decoration:none;box-sizing:border-box\">Review Measures and Ensure Operational Stability<\/a><\/div>\n<\/div><\/nav><section class=\"wh-section\" aria-labelledby=\"hot-keys-grundlagen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"hot-keys-grundlagen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">What makes a Redis key \"hot\"?<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A <strong style=\"font-weight:700;color:inherit\">Hot Key<\/strong> is a key that generates a particularly high load compared to other entries. This could be a small, rarely updated product record that is read by a large number of queries simultaneously. It is not only the size of the value but also the access pattern that determines how much load is placed on Redis. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Load is generated in various ways: Many small read operations place a burden on the server due to their frequency. A resource-intensive operation on a collection, on the other hand, can consume a lot of CPU time, even though it is performed less frequently. If a key repeatedly returns large responses, the network in particular can become the bottleneck. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A <strong style=\"font-weight:700;color:inherit\">Big Key<\/strong> Therefore, it is not automatically a hot key. A large entry that is rarely accessed can take up a lot of memory without placing an excessive load on ongoing processing. Conversely, a small value requires little memory but can still cause a significant amount of work due to frequent accesses. Size and load diagnostics answer various questions. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Even a noticeable shard does not necessarily indicate a single \"hot\" key. In a Redis cluster, a key is assigned to a shard; if requests are concentrated on that shard, that node may be under particularly heavy load. However, the same symptom can also be caused by many keys with varying usage patterns or resource-intensive commands. The shard metric initially shows you where you should look more closely. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"symptome-eingrenzen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"symptome-eingrenzen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Narrow Down Load and Topology<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Start by looking at the application's symptoms: When do response times increase, and when do timeouts occur? Compare these time periods with the available CPU and network metrics for the Redis nodes. It\u2019s particularly helpful to map these issues to individual shards, because a cluster as a whole may appear to be functioning normally while a single node is under heavy load.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Suppose that, during a sales promotion, both the application latency and the CPU load of a shard increase at the same time. This is a useful <strong style=\"font-weight:700;color:inherit\">Correlation<\/strong>: It narrows down the investigation period and the node. However, it does not prove that exactly one key is responsible, nor that Redis alone is causing the delay. Other activity on the node or delays outside of Redis are also possible hypotheses. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Before making a diagnosis, determine whether the problem is persistent or occurs only during certain peaks. Compare a typical load window with the period when the anomaly occurred, and note which nodes are involved. An analysis conducted during a quiet phase may overlook a temporary spike; conversely, a peak reading cannot be readily extrapolated to normal operation.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Also verify the actual product being used, its version, and the topology: single instance, cluster, or managed service. Check which diagnostic commands the ACL permits and whether operational approval has been granted. Permission alone does not constitute approval for additional diagnostic work on a server that is already under load. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"messprinzip-versionen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"messprinzip-versionen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">What HOTKEYS Actually Records<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Redis Open Source introduced the command group <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">HOTKEYS<\/code> with version 8.6.0. Therefore, you should not assume it is available on older installations. For managed services and Redis-compatible products, check separately which version or product is running and whether the commands are actually available there and enabled for your use.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The assessment evaluates candidates based on <strong style=\"font-weight:700;color:inherit\">CPU Time and Network Bytes<\/strong>. For each selected metric, a limited Top-K list is generated. One entry may stand out in the CPU list due to intensive processing, while another may appear in the network list because of large or frequent responses. Which resource you examine therefore influences the interpretation. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">These rankings are not exact counts of all hits per key, nor are they a direct list of requests per second. The tracking uses a probabilistic data structure; furthermore, the chosen list size limits which candidates are displayed. Rankings and estimated contributions should therefore be viewed as pointers for further investigation, not as a complete tally. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">With <strong style=\"font-weight:700;color:inherit\">Sampling<\/strong> This can reduce the effort required for data collection, but relevant keys may be overlooked in the process. Therefore, for each result, always note the observation window, the selected metrics, the sampling settings, and the node under examination. A missing candidate in a short or sampled observation is not, in and of itself, a reason to rule out the issue.  <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"hotkeys-praxis\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"hotkeys-praxis\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Using and Analyzing HOTKEYS Safely<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Select one of the following for data entry: <strong style=\"font-weight:700;color:inherit\">Measurement Window<\/strong>, which matches the suspected problem. You can examine a known load peak and a quiet phase separately; a short period outside the peak might cause you to overlook a key that only gets hot occasionally. Coordinate the diagnosis in advance: Starting the system changes the diagnostic state and can create additional load. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The following example has not been executed. It is intended for the Redis CLI in a shared test environment running Redis Open Source version 8.6 or later, with the required ACL permissions. Start the collection on the node you want to examine and retrieve the results during or after the time window: <\/p>\n<div class=\"wh-code-window\" data-wh-code style=\"margin:28px 0 34px;border:1px solid #2c4656;border-radius:12px;overflow:hidden;background:#132a3b;box-shadow:0 9px 25px -13px rgba(15,35,55,.2)\"><div class=\"wh-code-toolbar\" style=\"display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;background:#223e50;color:#edf5fa;font-size:13px;line-height:1.5;font-weight:600\"><span>Code<\/span><button type=\"button\" class=\"wh-code-copy\" data-wh-copy hidden style=\"padding:6px 11px;border:1px solid #7893a1;border-radius:6px;background:transparent;color:#fff;font-size:12px;line-height:1.5;font-weight:600;cursor:pointer\">Copy code<\/button><span class=\"wh-copy-status\" aria-live=\"polite\"><\/span><span data-wh-copy-success hidden>Copied<\/span><span data-wh-copy-fallback hidden>Code highlighted\u2014please copy<\/span><\/div><pre class=\"wh-code\" data-no-translation translate=\"no\" style=\"display:block;margin:0;padding:20px;max-width:100%;overflow-x:auto;color:#edf5fa;background:#132a3b;font:14px\/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;direction:ltr;text-align:left\"><code class=\"language-text\" style=\"font:inherit;color:inherit;background:transparent;padding:0;border:0;white-space:inherit\">HOTKEYS START METRICS 2 CPU NET COUNT 10 DURATION 60 SAMPLE 10\nHOTKEYS GET<\/code><\/pre><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">METRICS 2 CPU NET<\/code> Selects two metrics: CPU time and network bytes. <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">COUNT 10<\/code> limits the size of the top-K collection, <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">DURATION 60<\/code> It automatically ends it after 60 seconds. <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">SAMPLE 10<\/code> Reduces the effort required for data entry, but may overlook some candidates. The values are provided as an example and do not constitute a general production recommendation. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Before restarting, check to see if a session is already running: it may prevent you from starting another one. With <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">HOTKEYS STOP<\/code> You can stop an ongoing recording without deleting its data. Review and discuss the results before you continue with <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">HOTKEYS RESET<\/code> you release the resources; after that, the results will no longer be available. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The results apply to the server or node being examined, not automatically to the entire cluster. In the cluster, the option <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">SLOTS<\/code> Limit the capture to selected hash slots; outside of cluster mode, this will result in an error. Therefore, record the nodes and, if applicable, the slot selection along with the result. <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"werkzeuge-vergleichen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"werkzeuge-vergleichen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">A Comparison of Diagnostic Tools<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">These tools address different issues. A large data size is just as little an indication of an access ranking as a single slow command. Therefore, first decide whether you are looking for resource consumption per key, slow operations, or indications of large data structures.  <\/p>\n<div class=\"wh-table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Redis Diagnostic Tools and Their Limitations\" style=\"width:100%;max-width:100%;overflow-x:auto;margin:28px 0;border:1px solid #dce5e9;border-radius:14px;background:#fff;box-shadow:0 10px 28px -16px rgba(24,47,60,.32);box-sizing:border-box\"><table style=\"width:100%;min-width:580px;border-collapse:separate;border-spacing:0;border:0;margin:0;font-size:15px;line-height:1.6;background:#fff\"><caption style=\"padding:20px;text-align:start;font-size:17px;line-height:1.5;font-weight:700;color:#173246;background:#fff\">Redis Diagnostic Tools and Their Limitations<\/caption><thead><tr><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Tool<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Prerequisite<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Statement<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Restriction<\/th><th scope=\"col\" style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#19394d;color:#fff\">Operational Risk<\/th><\/tr><\/thead><tbody><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">HOTKEYS<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Supported Product and Release<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Top K Candidates by CPU and\/or Network<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Probabilistic; node-based<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Diagnostic Status and Additional Effort<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">redis-cli \u2013hotkeys<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Appropriate LFU Eviction Policy<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Notes on Frequently Used Keys<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Approximate frequency; no exact time frame<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Scans put a strain on the server; policy changes affect eviction<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">SLOWLOG GET<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Slow Log and Access Permissions<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Commands above the configured execution threshold<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">No full client latency or response transmission<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Issues may contain sensitive data<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">MONITOR<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Approval and Data Protection Policy<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">Current Command Activity<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">No predefined hotkey ranking<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#f4f7f9;color:#294252\">May affect latency and disclose command data<\/td><\/tr><tr><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">\u2013bigkeys \/ \u2013memkeys<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Appropriate CLI and scan sharing<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Size and Storage Information<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">No frequency ranking<\/td><td style=\"padding:15px 18px;border:0;border-bottom:1px solid #e2e9ed;text-align:start;vertical-align:top;white-space:normal;font-size:15px;line-height:1.6;background:#fff;color:#294252\">Scanning creates additional server load<\/td><\/tr><\/tbody><\/table><\/div><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">redis-cli --hotkeys<\/code> is a suitable <strong style=\"font-weight:700;color:inherit\">LFU Eviction Policy<\/strong> Prerequisite. Do not change this setting just for the sake of a short-term diagnosis: It helps determine which entries Redis evicts when storage is scarce. Furthermore, the approximate LFU information is no substitute for an exact count over a freely chosen measurement window. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">The Slow Log is helpful for expensive individual operations, but it does not track either the total client-to-server latency or the transmission of the response. Many individually fast accesses can overload a key without being noticeable there. Treat logged arguments and client information according to their potential sensitivity. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><strong style=\"font-weight:700;color:inherit\">Warning:<\/strong> Set <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">MONITOR<\/code> Do not use this as a routine diagnostic tool on a heavily loaded production server. If necessary, limit its use to specific time periods after approval and clarify how disclosed data will be handled. Incremental <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">SCAN<\/code> creates jobs; a thoughtless, productive <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">KEYS<\/code>-Scan is not a safe shortcut.  <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"ergebnisse-einordnen\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"ergebnisse-einordnen\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Interpreting CPU and Network Metrics<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Suppose a key appears in the <strong style=\"font-weight:700;color:inherit\">CPU Rankings<\/strong>. First, investigate which commands access its data structure and whether individual collection operations are causing a lot of work. The ranking identifies a potential cause of resource consumption, but it does not provide an exact number of accesses or the cause of the application latency.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If you find slow individual commands related to this candidate in the slow log, that\u2019s an additional clue to the application path. If the log remains empty, this does not rule out the key: many fast commands can collectively be relevant. Therefore, you should also examine the access pattern rather than just looking for individual instances where thresholds are exceeded. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Another hypothetical key stands out above all for <strong style=\"font-weight:700;color:inherit\">Network Bytes<\/strong> . Here, it's worth asking how large the responses are and whether the calling application path needs the full value. A smaller data model or retrieving only the necessary parts may be more appropriate than simply searching for CPU-intensive commands. <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail1\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e-1024x683.webp\" class=\"wp-image-22505\" alt=\"AI-generated illustration of two distinct groups of shapes representing CPU activity and network traffic\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-cpu-netzwerk-kandidaten-3ddcf12f-detail1-c00c60665e.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail1\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated illustration: CPU time and network bytes highlight different types of load.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">For both cases, document the time period, nodes, selected metrics, and sampling along with the candidates. Compare the results with application latency and node metrics in the same window. A ranking for a single node does not constitute a complete cluster analysis; a missing candidate may also be due to the sampling or the selected time period.  <\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"leselast-und-misses\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"leselast-und-misses\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Mitigating Read Load and Cache Misses<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If product data that is rarely updated is read on nearly every page view, a single Redis key can generate a significant read load despite having a small value. A <strong style=\"font-weight:700;color:inherit\">client-side cache<\/strong> also stores frequently needed responses in the application's memory. If there is a local hit, the application does not need to query Redis again for that value; the effect depends on how often the same value is reused within a process. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">To do this, check whether your client supports the Redis protocol for client-side caching and handles invalidations. Limit the local storage and define how the application behaves after connection failures so that cached values do not remain stale indefinitely. If product data changes frequently, repeated invalidations can reduce the benefit; additionally, each application process has its own cache. <\/p>\n<figure class=\"wp-block-image size-large wh-figure\" aria-describedby=\"wh-caption-detail2\" style=\"display:block;float:none;clear:both;width:100%;max-width:760px;margin:34px auto 40px;border:1px solid #dae5e9;border-radius:14px;overflow:hidden;background:#f5f8fa;box-shadow:0 10px 28px -17px rgba(24,47,60,.28);box-sizing:border-box\"><div class=\"wh-figure-media\" style=\"display:block;background:#eef3f5;line-height:0\"><img loading=\"lazy\" width=\"800\" height=\"534\" src=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb-1024x683.webp\" class=\"wp-image-22506\" alt=\"AI-generated stock image of two notebooks and blank index cards, symbolizing a local cache copy\" decoding=\"async\" srcset=\"https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb-1024x683.webp 1024w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb-300x200.webp 300w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb-768x512.webp 768w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb-18x12.webp 18w, https:\/\/webhosting.de\/wp-content\/uploads\/2026\/11\/redis-clientseitiger-cache-symbolbild-3ddcf12f-detail2-ef1d2f0dfb.webp 1536w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" ><\/div><figcaption class=\"wh-caption\" id=\"wh-caption-detail2\" style=\"display:block;margin:0;padding:12px 18px 15px;border-top:1px solid #dce5e9;color:#506575;background:#f5f8fa;font-size:14px;line-height:1.55;text-align:start\">AI-generated stock image: A local cache stores frequently used data close to the application.<\/figcaption><\/figure><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Another problem arises when a popular entry expires and many requests simultaneously access a <strong style=\"font-weight:700;color:inherit\">Cache Miss<\/strong> trigger. This can cause multiple processes to recalculate the same value in parallel, putting a strain on the backend. A hot-key ranking alone does not prove this sequence of events: Compare misses, the time the event occurred, and the backend load before assuming that the recalculation is the cause.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If the hypothesis is confirmed, a coordinated recalculation can prevent each request from triggering the same process. Determine how waiting requests are handled and what happens if a calculation process fails. In addition, a suitable workflow concept is helpful; the <a href=\"https:\/\/webhosting.de\/en\/redis-expiration-strategies-large-cache-systems-cache-architecture\/\">Redis Expire Strategies for Large Cache Systems<\/a> explain the relationship between expiration times and invalidation.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"schreiblast-und-datenmodell\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"schreiblast-und-datenmodell\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Distribute Write Load and Data Volume<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">A shared counter has different requirements than frequently read product data: A local read cache does not relieve the Redis node of write operations. Possible changes to the data model include <strong style=\"font-weight:700;color:inherit\">Subtotal<\/strong>, to which writing processes distribute their updates. The total value is then calculated by aggregating the partial values, rather than updating the same key with every change.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">This distribution changes the technical characteristics. If a reader queries sub-counters one after another, additional write operations may occur between queries; the sum is then not necessarily a snapshot. Therefore, decide in advance how up-to-date and consistent the total value must be, and whether the additional read and aggregation overhead is acceptable for your use case.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Within the cluster, the partial keys must actually be distributed across appropriate slots and thus across the designated shards. Verify the mapping rather than assuming an even distribution based on different key names. Having more shards alone does not automatically distribute the work on a single, unmodified key; the access patterns of the writers must also match the subkeys. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">If, on the other hand, the network ranking shows a conspicuous key, first examine the <strong style=\"font-weight:700;color:inherit\">Response size<\/strong> and the actual data requirements. Does the application need to transfer the entire object every time it is accessed, or would individual fields or a smaller representation suffice? A customized data model can reduce the number of bytes transferred, but may also entail additional keys, queries, and update logic. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Also check whether smaller responses still provide the same technical information and how related data is updated. The appropriate solution depends on whether network traffic, write load, or expensive commands are causing the bottleneck. Partial counters and smaller responses solve different problems and should not be implemented solely because of a high ranking.<\/p>\n<\/section><section class=\"wh-section\" aria-labelledby=\"betrieb-und-kontrolle\" style=\"display:block;margin:0 0 36px;min-width:0\"><h2 id=\"betrieb-und-kontrolle\" style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Review Measures and Ensure Operational Stability<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Before making a change, note which hypothesis you are testing: for example, fewer Redis read operations due to a local cache, or smaller responses due to a different data model. Then choose a <strong style=\"font-weight:700;color:inherit\">comparable load window<\/strong> and monitor application latency as well as the CPU and network activity of the affected node. Also compare the data traffic or request volume to ensure that a quieter period is not mistakenly interpreted as success.<\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Perform a new diagnostic test only with approved authorization and, if possible, using comparable settings. Document the nodes, time period, metrics, and sampling along with the results. A change in the Top-K order may be an indication of a change, but due to probabilistic sampling and limited lists, it does not provide exact proof of changes in individual access counts.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Empty results are not a cause for relief: The relevant peak may have been outside the window, the wrong node may have been examined, or sampling may have overlooked a candidate. Check these possibilities against the original symptoms. If timeouts or one-sided node load persist, investigate other causes as well, rather than interpreting the absence of a hot key as evidence of healthy operation. <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Treat diagnostic output as potentially sensitive operational data. Keys, command arguments, and client information may reveal details about users or internal processes; restrict access, sharing, and retention accordingly. This applies particularly to slow-log output and any brief monitoring that may have been authorized with <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">MONITOR<\/code>, which can also affect latency.  <\/p>\n<p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Make sure you have the results you need before voting <code data-no-translation style=\"font:600 .87em\/1.5 ui-monospace,monospace;color:#235063;background:#edf3f5;border-radius:4px;padding:.1em .3em\">HOTKEYS RESET<\/code> use to release the diagnostic resources: After that, these results will no longer be available. As supplementary event signals, you can <a href=\"https:\/\/webhosting.de\/en\/redis-keyspace-notifications-hosting-cache-monitoring-event-architecture-redispower\/\">Redis Keyspace Notifications<\/a> such as highlighting changes or processes. However, they do not replace a resource-based hotkey ranking and should be used in a way that aligns with the observation objective. <\/p>\n<\/section><section class=\"wh-sources\" style=\"margin:40px 0 0;padding:24px 0 0;border-top:1px solid #dce5e9;color:#596b7b;font-size:14px;line-height:1.65\"><h2 style=\"margin:38px 0 18px;color:#172f41;font-size:clamp(24px,1.25rem + 1vw,30px);font-weight:700;line-height:1.3;scroll-margin-top:115px\">Sources and Current State of Knowledge<\/h2><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Status of the research: <time datetime=\"2026-11-16\">2026-11-16<\/time><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\">Research status: November 16, 2026. HOTKEYS was introduced in Redis Open Source 8.6.0; check availability and release status separately for managed or compatible products.<\/p><div class=\"wh-source-urls\"><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/operate\/oss_and_stack\/stack-with-enterprise\/release-notes\/redisce\/redisos-8.6-release-notes\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/commands\/hotkeys\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/tutorials\/redis-software-observability-playbook\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/management\/optimization\/latency\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/commands\/hotkeys-start\/\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/commands\/slowlog-get\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/faq\/doc\/1mebipyp1e\/what-is-the-redis-latency-or-timeouts-with-redis<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/operate\/rs\/databases\/connect\/troubleshooting-guide\/<\/span><\/p><p style=\"margin:0 0 1.1em;font-size:inherit;line-height:inherit\"><span class=\"wh-source-url\" data-no-translation dir=\"ltr\" style=\"overflow-wrap:anywhere;font:12px\/1.6 ui-monospace,monospace;direction:ltr\">https:\/\/redis.io\/docs\/latest\/manual\/client-side-caching\/<\/span><\/p><\/div><\/section><\/div>","protected":false},"excerpt":{"rendered":"<p>Redis hot keys can put a strain on individual nodes due to frequent accesses, expensive commands, or large responses. Learn how to narrow down the candidates and choose the appropriate countermeasures.<\/p>","protected":false},"author":1,"featured_media":22504,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[781],"tags":[],"class_list":["post-22502","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-datenbanken-administration-anleitungen"],"acf":[],"_links":{"self":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/comments?post=22502"}],"version-history":[{"count":2,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22502\/revisions"}],"predecessor-version":[{"id":22507,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/posts\/22502\/revisions\/22507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media\/22504"}],"wp:attachment":[{"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/media?parent=22502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/categories?post=22502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhosting.de\/en\/wp-json\/wp\/v2\/tags?post=22502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}