mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Increased back_log to 150, but not more than max_connections.
- This was done to get better performance when doing a lot of connections. Ensure that thread_cache_size is not larger than max_connections (trivial optimizations). Fixed that the --host_cache_size=# startup option works mysql-test/r/variables.result: Increase back_log to 150 sql/hostname.cc: Fixed that the --host_cache_size=# startup option works sql/mysqld.cc: Ensure that back_log and thread_cache_size is not set higher than max_connections (as this would not make any sense). sql/sys_vars.cc: Increased back_log to 150
This commit is contained in:
@ -1,20 +1,20 @@
|
||||
select @@global.back_log;
|
||||
@@global.back_log
|
||||
50
|
||||
150
|
||||
select @@session.back_log;
|
||||
ERROR HY000: Variable 'back_log' is a GLOBAL variable
|
||||
show global variables like 'back_log';
|
||||
Variable_name Value
|
||||
back_log 50
|
||||
back_log 150
|
||||
show session variables like 'back_log';
|
||||
Variable_name Value
|
||||
back_log 50
|
||||
back_log 150
|
||||
select * from information_schema.global_variables where variable_name='back_log';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BACK_LOG 50
|
||||
BACK_LOG 150
|
||||
select * from information_schema.session_variables where variable_name='back_log';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
BACK_LOG 50
|
||||
BACK_LOG 150
|
||||
set global back_log=1;
|
||||
ERROR HY000: Variable 'back_log' is a read only variable
|
||||
set session back_log=1;
|
||||
|
Reference in New Issue
Block a user