问题:redis lua里面执行的命令会不会计算到监控的qps中
假设:
lua 脚本中对数据库操作了1w次。
执行一次lua 脚本, 虽然内部对数据库操作了1w次, 但是从redis 监控上看只是执行了一次lua脚本, lua内部对数据库的1w次不会记录到监控。
如果通过monitor观看可以看到 。
1736927858.030705 [0 xxxx:53788] "EVAL" "for i = 1, 10000 do\n redis.call('SET', KEYS[1], ARGV[1])\nend" "1" "mykey1" "myvalue"
1736927858.030777 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030782 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030785 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030787 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030789 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030794 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030796 [0 lua] "SET" "mykey1" "myvalue"
1736927858.030799 [0 lua] "SET" "mykey1" "myvalue"
。。。。。。。。。。。