This section describes the system and status variables that the
CONNECTION_CONTROL plugin provides to enable
its operation to be configured and monitored.
If the CONNECTION_CONTROL plugin is
installed, it exposes these system variables:
connection_control_failed_connections_thresholdCommand-Line Format --connection-control-failed-connections-threshold=#Deprecated Yes System Variable connection_control_failed_connections_thresholdScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 3Minimum Value 0Maximum Value 2147483647The number of consecutive failed connection attempts permitted to accounts before the server adds a delay for subsequent connection attempts:
If the variable has a nonzero value
N, the server adds a delay beginning with consecutive failed attemptN+1. If an account has reached the point where connection responses are delayed, a delay also occurs for the next subsequent successful connection.Setting this variable to zero disables failed-connection counting. In this case, the server never adds delays.
For information about how
connection_control_failed_connections_thresholdinteracts with other connection control system and status variables, see Section 8.4.3.1, “Connection Control Plugin Installation”.connection_control_max_connection_delayCommand-Line Format --connection-control-max-connection-delay=#Deprecated Yes System Variable connection_control_max_connection_delayScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 2147483647Minimum Value 1000Maximum Value 2147483647Unit milliseconds The maximum delay in milliseconds for server response to failed connection attempts, if
connection_control_failed_connections_thresholdis greater than zero.For information about how
connection_control_max_connection_delayinteracts with other connection control system and status variables, see Section 8.4.3.1, “Connection Control Plugin Installation”.connection_control_min_connection_delayCommand-Line Format --connection-control-min-connection-delay=#Deprecated Yes System Variable connection_control_min_connection_delayScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 1000Minimum Value 1000Maximum Value 2147483647Unit milliseconds The minimum delay in milliseconds for server response to failed connection attempts, if
connection_control_failed_connections_thresholdis greater than zero.For information about how
connection_control_min_connection_delayinteracts with other connection control system and status variables, see Section 8.4.3.1, “Connection Control Plugin Installation”.
If the CONNECTION_CONTROL plugin is
installed, it exposes this status variable:
Connection_control_delay_generatedThe number of times the server added a delay to its response to a failed connection attempt. This does not count attempts that occur before reaching the threshold defined by the
connection_control_failed_connections_thresholdsystem variable.This variable provides a simple counter. For more detailed connection control monitoring information, examine the
INFORMATION_SCHEMACONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTStable; see Section 28.6.2, “The INFORMATION_SCHEMA CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS Table”.Assigning a value to
connection_control_failed_connections_thresholdat runtime resetsConnection_control_delay_generatedto zero.