-
Notifications
You must be signed in to change notification settings - Fork 445
System Variables
The Twitter MySQL server maintains system variables that indicate how it is configured. System variables can be set at server startup using options on the command line or in an option file.
Name | Cmd-Line | Option file | System Var | Var Scope | Dynamic |
---|---|---|---|---|---|
max_statement_time | No | No | Yes | Session | Yes |
minidump_dir | Yes | Yes | Yes | Global | No |
protocol_mode | Yes | Yes | Yes | Both | Yes |
super_only | Yes | Yes | Yes | Global | Yes |
superuser_connections | Yes | Yes | Yes | Global | Yes |
twitter_audit_logging | Yes | Yes | Yes | Global | Yes |
twitter_query_stats | Yes | Yes | Yes | Global | Yes |
innodb_deadlock_check | Yes | Yes | Yes | Global | Yes |
twitter_query_throttling_limit | Yes | Yes | Yes | Global | Yes |
twitter_write_throttling_limit | Yes | Yes | Yes | Global | Yes |
The number of milliseconds to wait for a statement to execute, after which it is interrupted. This timeout applies only to top-level statements.
Variable Name | max_statement_time |
---|---|
Variable Scope | Session |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values | [0, (2^64)-1] |
The name of the directory where minidumps are created. The default value is initialized tmpdir
.
Variable Name | minidump_dir |
---|---|
Variable Scope | Global |
Dynamic Variable | No |
Type | String |
Default | @@tmpdir |
The current server protocol mode, which can be set dynamically.
Command-Line Format | --protocol-mode=name |
---|---|
Option-File Format | protocol-mode |
Option Sets Variable | Yes, protocol_mode |
Variable Name | protocol_mode |
Variable Scope | Global, Session |
Dynamic Variable | Yes |
Type | Set |
Default | "" |
Valid Values |
|
Whether the server permits non-superusers to execute statements.
Command-Line Format | --super-only |
---|---|
Option-File Format | super_only |
Option Sets Variable | Yes, super_only |
Variable Name | super_only |
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values |
|
Configurable number of reserved connections for superusers.
Command-Line Format | --superuser_connections |
---|---|
Option-File Format | superuser_connections |
Option Sets Variable | Yes, superuser_connections |
Variable Name | superuser_connections |
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 1 |
Valid Values |
|
Twitter DBA audit logging.
Command-Line Format | --twitter_audit_logging |
---|---|
Option-File Format | twitter_audit_logging |
Option Sets Variable | Yes, twitter_audit_logging |
Variable Name | twitter_audit_logging |
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values |
|
Twitter Query Type Statistics.
Command-Line Format | --twitter_query_stats |
---|---|
Option-File Format | twitter_query_stats |
Option Sets Variable | Yes, twitter_query_stats |
Variable Name | twitter_query_stats |
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values |
|
When set to OFF, disables deadlock detection to improve performance in heavily concurrent workloads.
Variable Name | innodb_deadlock_check |
---|---|
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Boolean |
Default | 1 |
Valid Values |
|
The maximum of query threads to allow simultaneously. Any attempt to create more will return the error ER_QUERY_THROTTLED.
Variable Name | twitter_query_throttling_limit |
---|---|
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values | [0, 10000] |
The maximum of write threads to allow simultaneously. Any attempt to create more will return the error ER_QUERY_THROTTLED.
Variable Name | twitter_write_throttling_limit |
---|---|
Variable Scope | Global |
Dynamic Variable | Yes |
Type | Numeric |
Default | 0 |
Valid Values | [0, 5000] |