在 GCP Memorystore 上获得大量 'del' 调用。但无法确定其来源
Getting lot of 'del' call on GCP Memorystore. But couldn't identify its source
我收到很多 'del' 对 GCP Memorystore 的调用,速度大约为 6k/秒。但我无法确定进行这些 'del' 调用的来源。
我已经尝试访问特定内存存储服务器的日志,但没有获得任何与调用信息相关的信息。
我需要弄清楚是谁在我的记忆库上进行这些 'del' 调用。
有什么建议......
谢谢
您可以使用monitor
命令列出Redis服务器处理的每条命令。您需要使用 with grep
来过滤整个流中的 DEL
命令。默认情况下 grep
区分大小写,添加 -i
以过滤 DEL
和 del
。
redis-cli -h your.host.name monitor | grep -i del
它将以以下格式打印。您可以使用ip地址来识别谁在删除。
1588013292.976045 [0 127.0.0.1:44098] "del" "foo"
1588013294.875606 [0 127.0.0.1:44098] "DEL" "foo"
1588013298.285791 [0 127.0.0.1:44098] "dEl" "foo"
使用monitor
不会免费,请检查benchmark号码。
我收到很多 'del' 对 GCP Memorystore 的调用,速度大约为 6k/秒。但我无法确定进行这些 'del' 调用的来源。
我已经尝试访问特定内存存储服务器的日志,但没有获得任何与调用信息相关的信息。
我需要弄清楚是谁在我的记忆库上进行这些 'del' 调用。
有什么建议......
谢谢
您可以使用monitor
命令列出Redis服务器处理的每条命令。您需要使用 with grep
来过滤整个流中的 DEL
命令。默认情况下 grep
区分大小写,添加 -i
以过滤 DEL
和 del
。
redis-cli -h your.host.name monitor | grep -i del
它将以以下格式打印。您可以使用ip地址来识别谁在删除。
1588013292.976045 [0 127.0.0.1:44098] "del" "foo"
1588013294.875606 [0 127.0.0.1:44098] "DEL" "foo"
1588013298.285791 [0 127.0.0.1:44098] "dEl" "foo"
使用monitor
不会免费,请检查benchmark号码。