Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Now this job can be automated. When a hot partition is confirmed, we can use the send a "hot-key detection RPC to start analyzing " to the corresponding ReplicaServer.

This RPC triggers analysis of the incoming requests to the partition.

The analysis will end when it finds the hot-key or the process times out.

...

而现在, 我们可以使用这个功能, 通过HTTP API来动态修改配置项, 从而不影响服务.  你可以查看 XiaoMi/rdsn#719XiaoMi/rdsn#704XiaoMi/rdsn#682 来了解更多细节.

热点Key检测

由于热点流量会持续影响一个分片的可用性, 它是一个非常危险的问题.

此前我们遇到这个问题时, 我们会从服务节点上搜索慢查询日志(异常读), 然后找到出现最频繁的key, 这个key一般就是热点key.

现在这个流程可以被自动化了. 当我们确认一个分片是热点分片时, 我们可以向对应的ReplicaServer发送"热点检测RPC". 

这个RPC会触发对该分片的请求热点分析. 一旦热点key被找到, 或者流程超时, 则分析结束.




相关 issue: apache/incubator-pegasus#495

使用文档: http://pegasus.apache.org/administration/hotspot-detection