mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
increase default for max threads in the pool to max allowed value (64K) currently
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
--- mysqld--help.result 2016-09-21 13:50:58.682767100 +0000
|
--- mysqld--help.result 2016-11-04 13:35:06.665881700 +0000
|
||||||
+++ mysqld--help,win.reject 2016-09-21 13:57:57.494626000 +0000
|
+++ mysqld--help,win.reject 2016-11-04 13:58:39.030512500 +0000
|
||||||
@@ -318,7 +318,6 @@
|
@@ -318,7 +318,6 @@
|
||||||
The number of segments in a key cache
|
The number of segments in a key cache
|
||||||
-L, --language=name Client error messages in given language. May be given as
|
-L, --language=name Client error messages in given language. May be given as
|
||||||
@ -8,7 +8,7 @@
|
|||||||
--lc-messages=name Set the language used for the error messages.
|
--lc-messages=name Set the language used for the error messages.
|
||||||
-L, --lc-messages-dir=name
|
-L, --lc-messages-dir=name
|
||||||
Directory where error messages are
|
Directory where error messages are
|
||||||
@@ -517,6 +516,7 @@
|
@@ -521,6 +520,7 @@
|
||||||
Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
|
Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
|
||||||
DATETIME, TIMESTAMP columns.
|
DATETIME, TIMESTAMP columns.
|
||||||
(Defaults to on; use --skip-mysql56-temporal-format to disable.)
|
(Defaults to on; use --skip-mysql56-temporal-format to disable.)
|
||||||
@ -16,7 +16,7 @@
|
|||||||
--net-buffer-length=#
|
--net-buffer-length=#
|
||||||
Buffer length for TCP/IP and socket communication
|
Buffer length for TCP/IP and socket communication
|
||||||
--net-read-timeout=#
|
--net-read-timeout=#
|
||||||
@@ -924,6 +924,9 @@
|
@@ -931,6 +931,9 @@
|
||||||
characteristics (isolation level, read only/read
|
characteristics (isolation level, read only/read
|
||||||
write,snapshot - but not any work done / data modified
|
write,snapshot - but not any work done / data modified
|
||||||
within the transaction).
|
within the transaction).
|
||||||
@ -26,7 +26,7 @@
|
|||||||
--show-slave-auth-info
|
--show-slave-auth-info
|
||||||
Show user and password in SHOW SLAVE HOSTS on this
|
Show user and password in SHOW SLAVE HOSTS on this
|
||||||
master.
|
master.
|
||||||
@@ -1036,6 +1039,10 @@
|
@@ -1043,6 +1046,10 @@
|
||||||
Log slow queries to given log file. Defaults logging to
|
Log slow queries to given log file. Defaults logging to
|
||||||
'hostname'-slow.log. Must be enabled to activate other
|
'hostname'-slow.log. Must be enabled to activate other
|
||||||
slow log options
|
slow log options
|
||||||
@ -37,7 +37,7 @@
|
|||||||
--socket=name Socket file to use for connection
|
--socket=name Socket file to use for connection
|
||||||
--sort-buffer-size=#
|
--sort-buffer-size=#
|
||||||
Each thread that needs to do a sort allocates a buffer of
|
Each thread that needs to do a sort allocates a buffer of
|
||||||
@@ -1054,6 +1061,7 @@
|
@@ -1061,6 +1068,7 @@
|
||||||
NO_ENGINE_SUBSTITUTION, PAD_CHAR_TO_FULL_LENGTH
|
NO_ENGINE_SUBSTITUTION, PAD_CHAR_TO_FULL_LENGTH
|
||||||
--stack-trace Print a symbolic stack trace on failure
|
--stack-trace Print a symbolic stack trace on failure
|
||||||
(Defaults to on; use --skip-stack-trace to disable.)
|
(Defaults to on; use --skip-stack-trace to disable.)
|
||||||
@ -45,7 +45,7 @@
|
|||||||
--standards-compliant-cte
|
--standards-compliant-cte
|
||||||
Allow only standards compiant CTE
|
Allow only standards compiant CTE
|
||||||
(Defaults to on; use --skip-standards-compliant-cte to disable.)
|
(Defaults to on; use --skip-standards-compliant-cte to disable.)
|
||||||
@@ -1102,6 +1110,11 @@
|
@@ -1109,6 +1117,11 @@
|
||||||
--thread-pool-max-threads=#
|
--thread-pool-max-threads=#
|
||||||
Maximum allowed number of worker threads in the thread
|
Maximum allowed number of worker threads in the thread
|
||||||
pool
|
pool
|
||||||
@ -57,7 +57,7 @@
|
|||||||
--thread-pool-oversubscribe=#
|
--thread-pool-oversubscribe=#
|
||||||
How many additional active worker threads in a group are
|
How many additional active worker threads in a group are
|
||||||
allowed.
|
allowed.
|
||||||
@@ -1132,8 +1145,8 @@
|
@@ -1139,8 +1152,8 @@
|
||||||
size, MySQL will automatically convert it to an on-disk
|
size, MySQL will automatically convert it to an on-disk
|
||||||
MyISAM or Aria table
|
MyISAM or Aria table
|
||||||
-t, --tmpdir=name Path for temporary files. Several paths may be specified,
|
-t, --tmpdir=name Path for temporary files. Several paths may be specified,
|
||||||
@ -68,7 +68,7 @@
|
|||||||
--transaction-alloc-block-size=#
|
--transaction-alloc-block-size=#
|
||||||
Allocation block size for transactions to be stored in
|
Allocation block size for transactions to be stored in
|
||||||
binary log
|
binary log
|
||||||
@@ -1257,7 +1270,6 @@
|
@@ -1264,7 +1277,6 @@
|
||||||
key-cache-division-limit 100
|
key-cache-division-limit 100
|
||||||
key-cache-file-hash-size 512
|
key-cache-file-hash-size 512
|
||||||
key-cache-segments 0
|
key-cache-segments 0
|
||||||
@ -76,7 +76,7 @@
|
|||||||
lc-messages en_US
|
lc-messages en_US
|
||||||
lc-messages-dir MYSQL_SHAREDIR/
|
lc-messages-dir MYSQL_SHAREDIR/
|
||||||
lc-time-names en_US
|
lc-time-names en_US
|
||||||
@@ -1324,6 +1336,7 @@
|
@@ -1333,6 +1345,7 @@
|
||||||
myisam-stats-method NULLS_UNEQUAL
|
myisam-stats-method NULLS_UNEQUAL
|
||||||
myisam-use-mmap FALSE
|
myisam-use-mmap FALSE
|
||||||
mysql56-temporal-format TRUE
|
mysql56-temporal-format TRUE
|
||||||
@ -84,7 +84,7 @@
|
|||||||
net-buffer-length 16384
|
net-buffer-length 16384
|
||||||
net-read-timeout 30
|
net-read-timeout 30
|
||||||
net-retry-count 10
|
net-retry-count 10
|
||||||
@@ -1424,6 +1437,8 @@
|
@@ -1434,6 +1447,8 @@
|
||||||
session-track-state-change FALSE
|
session-track-state-change FALSE
|
||||||
session-track-system-variables
|
session-track-system-variables
|
||||||
session-track-transaction-info OFF
|
session-track-transaction-info OFF
|
||||||
@ -93,7 +93,7 @@
|
|||||||
show-slave-auth-info FALSE
|
show-slave-auth-info FALSE
|
||||||
silent-startup FALSE
|
silent-startup FALSE
|
||||||
skip-grant-tables TRUE
|
skip-grant-tables TRUE
|
||||||
@@ -1448,6 +1463,7 @@
|
@@ -1458,6 +1473,7 @@
|
||||||
slave-type-conversions
|
slave-type-conversions
|
||||||
slow-launch-time 2
|
slow-launch-time 2
|
||||||
slow-query-log FALSE
|
slow-query-log FALSE
|
||||||
@ -101,7 +101,7 @@
|
|||||||
sort-buffer-size 2097152
|
sort-buffer-size 2097152
|
||||||
sql-mode NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
|
sql-mode NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
|
||||||
stack-trace TRUE
|
stack-trace TRUE
|
||||||
@@ -1461,14 +1477,16 @@
|
@@ -1471,14 +1487,16 @@
|
||||||
sync-relay-log 10000
|
sync-relay-log 10000
|
||||||
sync-relay-log-info 10000
|
sync-relay-log-info 10000
|
||||||
sysdate-is-now FALSE
|
sysdate-is-now FALSE
|
||||||
@ -114,7 +114,7 @@
|
|||||||
tc-heuristic-recover OFF
|
tc-heuristic-recover OFF
|
||||||
thread-cache-size 151
|
thread-cache-size 151
|
||||||
thread-pool-idle-timeout 60
|
thread-pool-idle-timeout 60
|
||||||
thread-pool-max-threads 1000
|
thread-pool-max-threads 65536
|
||||||
+thread-pool-min-threads 1
|
+thread-pool-min-threads 1
|
||||||
+thread-pool-mode windows
|
+thread-pool-mode windows
|
||||||
thread-pool-oversubscribe 3
|
thread-pool-oversubscribe 3
|
||||||
|
@ -1487,7 +1487,7 @@ table-open-cache-instances 8
|
|||||||
tc-heuristic-recover OFF
|
tc-heuristic-recover OFF
|
||||||
thread-cache-size 151
|
thread-cache-size 151
|
||||||
thread-pool-idle-timeout 60
|
thread-pool-idle-timeout 60
|
||||||
thread-pool-max-threads 1000
|
thread-pool-max-threads 65536
|
||||||
thread-pool-oversubscribe 3
|
thread-pool-oversubscribe 3
|
||||||
thread-pool-prio-kickup-timer 1000
|
thread-pool-prio-kickup-timer 1000
|
||||||
thread-pool-priority auto
|
thread-pool-priority auto
|
||||||
|
@ -4785,9 +4785,9 @@ READ_ONLY NO
|
|||||||
COMMAND_LINE_ARGUMENT REQUIRED
|
COMMAND_LINE_ARGUMENT REQUIRED
|
||||||
VARIABLE_NAME THREAD_POOL_MAX_THREADS
|
VARIABLE_NAME THREAD_POOL_MAX_THREADS
|
||||||
SESSION_VALUE NULL
|
SESSION_VALUE NULL
|
||||||
GLOBAL_VALUE 1000
|
GLOBAL_VALUE 65536
|
||||||
GLOBAL_VALUE_ORIGIN COMPILE-TIME
|
GLOBAL_VALUE_ORIGIN COMPILE-TIME
|
||||||
DEFAULT_VALUE 1000
|
DEFAULT_VALUE 65536
|
||||||
VARIABLE_SCOPE GLOBAL
|
VARIABLE_SCOPE GLOBAL
|
||||||
VARIABLE_TYPE INT UNSIGNED
|
VARIABLE_TYPE INT UNSIGNED
|
||||||
VARIABLE_COMMENT Maximum allowed number of worker threads in the thread pool
|
VARIABLE_COMMENT Maximum allowed number of worker threads in the thread pool
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
SET @start_global_value = @@global.thread_pool_max_threads;
|
SET @start_global_value = @@global.thread_pool_max_threads;
|
||||||
select @@global.thread_pool_max_threads;
|
select @@global.thread_pool_max_threads;
|
||||||
@@global.thread_pool_max_threads
|
@@global.thread_pool_max_threads
|
||||||
1000
|
65536
|
||||||
select @@session.thread_pool_max_threads;
|
select @@session.thread_pool_max_threads;
|
||||||
ERROR HY000: Variable 'thread_pool_max_threads' is a GLOBAL variable
|
ERROR HY000: Variable 'thread_pool_max_threads' is a GLOBAL variable
|
||||||
show global variables like 'thread_pool_max_threads';
|
show global variables like 'thread_pool_max_threads';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
thread_pool_max_threads 1000
|
thread_pool_max_threads 65536
|
||||||
show session variables like 'thread_pool_max_threads';
|
show session variables like 'thread_pool_max_threads';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
thread_pool_max_threads 1000
|
thread_pool_max_threads 65536
|
||||||
select * from information_schema.global_variables where variable_name='thread_pool_max_threads';
|
select * from information_schema.global_variables where variable_name='thread_pool_max_threads';
|
||||||
VARIABLE_NAME VARIABLE_VALUE
|
VARIABLE_NAME VARIABLE_VALUE
|
||||||
THREAD_POOL_MAX_THREADS 1000
|
THREAD_POOL_MAX_THREADS 65536
|
||||||
select * from information_schema.session_variables where variable_name='thread_pool_max_threads';
|
select * from information_schema.session_variables where variable_name='thread_pool_max_threads';
|
||||||
VARIABLE_NAME VARIABLE_VALUE
|
VARIABLE_NAME VARIABLE_VALUE
|
||||||
THREAD_POOL_MAX_THREADS 1000
|
THREAD_POOL_MAX_THREADS 65536
|
||||||
set global thread_pool_max_threads=1;
|
set global thread_pool_max_threads=1;
|
||||||
select @@global.thread_pool_max_threads;
|
select @@global.thread_pool_max_threads;
|
||||||
@@global.thread_pool_max_threads
|
@@global.thread_pool_max_threads
|
||||||
|
@ -3359,7 +3359,7 @@ static Sys_var_uint Sys_threadpool_max_threads(
|
|||||||
"thread_pool_max_threads",
|
"thread_pool_max_threads",
|
||||||
"Maximum allowed number of worker threads in the thread pool",
|
"Maximum allowed number of worker threads in the thread pool",
|
||||||
GLOBAL_VAR(threadpool_max_threads), CMD_LINE(REQUIRED_ARG),
|
GLOBAL_VAR(threadpool_max_threads), CMD_LINE(REQUIRED_ARG),
|
||||||
VALID_RANGE(1, 65536), DEFAULT(1000), BLOCK_SIZE(1),
|
VALID_RANGE(1, 65536), DEFAULT(65536), BLOCK_SIZE(1),
|
||||||
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
|
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
|
||||||
ON_UPDATE(fix_tp_max_threads)
|
ON_UPDATE(fix_tp_max_threads)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user