Commit b111d988 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-5533 increase the default max thread pool size

500 -> 1000
parent 86551362
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
tc-heuristic-recover COMMIT tc-heuristic-recover COMMIT
thread-cache-size 0 thread-cache-size 0
-thread-pool-idle-timeout 60 -thread-pool-idle-timeout 60
thread-pool-max-threads 500 thread-pool-max-threads 1000
-thread-pool-oversubscribe 3 -thread-pool-oversubscribe 3
-thread-pool-stall-limit 500 -thread-pool-stall-limit 500
+thread-pool-min-threads 1 +thread-pool-min-threads 1
......
...@@ -1378,7 +1378,7 @@ table-open-cache 400 ...@@ -1378,7 +1378,7 @@ table-open-cache 400
tc-heuristic-recover COMMIT tc-heuristic-recover COMMIT
thread-cache-size 0 thread-cache-size 0
thread-pool-idle-timeout 60 thread-pool-idle-timeout 60
thread-pool-max-threads 500 thread-pool-max-threads 1000
thread-pool-oversubscribe 3 thread-pool-oversubscribe 3
thread-pool-stall-limit 500 thread-pool-stall-limit 500
thread-stack 294912 thread-stack 294912
......
...@@ -4447,9 +4447,9 @@ READ_ONLY NO ...@@ -4447,9 +4447,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 500 GLOBAL_VALUE 1000
GLOBAL_VALUE_ORIGIN COMPILE-TIME GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 500 DEFAULT_VALUE 1000
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
......
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
500 1000
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 500 thread_pool_max_threads 1000
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 500 thread_pool_max_threads 1000
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 500 THREAD_POOL_MAX_THREADS 1000
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 500 THREAD_POOL_MAX_THREADS 1000
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
......
...@@ -3279,7 +3279,7 @@ static Sys_var_uint Sys_threadpool_max_threads( ...@@ -3279,7 +3279,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(500), BLOCK_SIZE(1), VALID_RANGE(1, 65536), DEFAULT(1000), 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)
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment