When encountering the error "BUSY Redis is busy running a script," the immediate action you can take as a user is:
SCRIPT KILL
if the script running is not performing any write operations. If the script is modifying data, killing it might not be safe, as it will result in a partial update.SLOWLOG GET
to see if there are any slow operations that might be causing the system to be busy, and identify any patterns or specific commands that are taking longer to execute.INFO COMMANDSTATS
to get statistics on the commands executed by the server. This can help identify commands that are called frequently or take a long time to execute, which could be related to the issue.Remember, if the script cannot be safely killed or if the situation does not improve by investigating and taking action based on these commands, it might be necessary to wait for the script to complete or consider contacting someone with administrative privileges to intervene directly.
Let Dr. Droid create custom investigation plans for your infrastructure.
Start Free POC (15-min setup) →