Throttle users based on the number of SQL statement timeouts
During today's DB meeting @_stark suggested the following: when a user hits a SQL statement timeout we take this into account for the throttling. If a user hits a few statement timeouts in a row we block them temporarily. The idea behind this is that if one keeps hitting SQL statement timeouts in a row they may be negatively impacting the system. By blocking them in a timely manner for a short period of time we can prevent any damage from being done to the system.
cc @sitschner