RedisのLuaで時間のかかる処理をするとどうなるか?


Redis Lua 

Redis  2.6.14 


redis-cli eval 'while true do print("hello") end' 0



 GET, INFO, PING 


redis.conf  lua-time-limit 5000 5 redis-server 
[18068] 22 Jul 13:51:23.798 # Lua slow script detected: still in execution after 5000 milliseconds. You can try killing the script using the SCRIPT KILL command

GET
(error) BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE.



GET, INFO, PING 


 redis-cli  Lua  ^C 

GET, INFO, PING  () LuaLua


Lua SCRIPT KILL 
$ redis-cli SCRIPT KILL
OK

redis-server
[20536] 22 Jul 14:10:49.097 # Lua script killed by user with SCRIPT KILL.

 GET, INFO, PING 


PING 

Redis SentinelPINGredis-serverSentinelSCRIPT KILLSentinel (515) LuaSentinel down-after-milliseconds Lua