How Do I Detect Big Keys and Hot Keys in Advance?¶
Method | Description |
---|---|
Through Big Key Analysis and Hot Key Analysis on the DCS console | |
By using the bigkeys and hotkeys options on redis-cli |
|
Hot key analysis is not supported by DCS Redis 3.0 instances. You can configure alarms to detect hot keys.
Configure alarm rules for the Memory Usage metric of the instance nodes.
If a node has a big key, the memory usage of the node is much higher than that of other nodes. In this case, an alarm is triggered to help you find the potentially problematic key.
Configure alarm rules for the Maximum Inbound Bandwidth, Maximum Outbound Bandwidth, and CPU Usage metrics of the instance nodes.
If a node has a hot key, the bandwidth and CPU usage of the node is much higher than that of other nodes. In this case, an alarm is triggered to help you find the potentially problematic key.