Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
def25806
Commit
def25806
authored
Nov 04, 2016
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase default for max threads in the pool to max allowed value (64K) currently
parent
d96ee168
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
mysql-test/r/mysqld--help,win.rdiff
mysql-test/r/mysqld--help,win.rdiff
+14
-14
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+1
-1
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+2
-2
mysql-test/suite/sys_vars/r/thread_pool_max_threads_basic.result
...est/suite/sys_vars/r/thread_pool_max_threads_basic.result
+5
-5
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
mysql-test/r/mysqld--help,win.rdiff
View file @
def25806
--- mysqld--help.result 2016-
09-21 13:50:58.6827671
00 +0000
+++ mysqld--help,win.reject 2016-
09-21 13:57:57.4946260
00 +0000
--- mysqld--help.result 2016-
11-04 13:35:06.6658817
00 +0000
+++ mysqld--help,win.reject 2016-
11-04 13:58:39.0305125
00 +0000
@@ -318,7 +318,6 @@
The number of segments in a key cache
-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.
-L, --lc-messages-dir=name
Directory where error messages are
@@ -5
17,6 +516
,7 @@
@@ -5
21,6 +520
,7 @@
Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
DATETIME, TIMESTAMP columns.
(Defaults to on; use --skip-mysql56-temporal-format to disable.)
...
...
@@ -16,7 +16,7 @@
--net-buffer-length=#
Buffer length for TCP/IP and socket communication
--net-read-timeout=#
@@ -9
24,6 +924
,9 @@
@@ -9
31,6 +931
,9 @@
characteristics (isolation level, read only/read
write,snapshot - but not any work done / data modified
within the transaction).
...
...
@@ -26,7 +26,7 @@
--show-slave-auth-info
Show user and password in SHOW SLAVE HOSTS on this
master.
@@ -10
36,6 +1039
,10 @@
@@ -10
43,6 +1046
,10 @@
Log slow queries to given log file. Defaults logging to
'hostname'-slow.log. Must be enabled to activate other
slow log options
...
...
@@ -37,7 +37,7 @@
--socket=name Socket file to use for connection
--sort-buffer-size=#
Each thread that needs to do a sort allocates a buffer of
@@ -10
54,6 +1061
,7 @@
@@ -10
61,6 +1068
,7 @@
NO_ENGINE_SUBSTITUTION, PAD_CHAR_TO_FULL_LENGTH
--stack-trace Print a symbolic stack trace on failure
(Defaults to on; use --skip-stack-trace to disable.)
...
...
@@ -45,7 +45,7 @@
--standards-compliant-cte
Allow only standards compiant CTE
(Defaults to on; use --skip-standards-compliant-cte to disable.)
@@ -110
2,6 +1110
,11 @@
@@ -110
9,6 +1117
,11 @@
--thread-pool-max-threads=#
Maximum allowed number of worker threads in the thread
pool
...
...
@@ -57,7 +57,7 @@
--thread-pool-oversubscribe=#
How many additional active worker threads in a group are
allowed.
@@ -113
2,8 +1145
,8 @@
@@ -113
9,8 +1152
,8 @@
size, MySQL will automatically convert it to an on-disk
MyISAM or Aria table
-t, --tmpdir=name Path for temporary files. Several paths may be specified,
...
...
@@ -68,7 +68,7 @@
--transaction-alloc-block-size=#
Allocation block size for transactions to be stored in
binary log
@@ -12
57,7 +1270
,6 @@
@@ -12
64,7 +1277
,6 @@
key-cache-division-limit 100
key-cache-file-hash-size 512
key-cache-segments 0
...
...
@@ -76,7 +76,7 @@
lc-messages en_US
lc-messages-dir MYSQL_SHAREDIR/
lc-time-names en_US
@@ -13
24,6 +1336
,7 @@
@@ -13
33,6 +1345
,7 @@
myisam-stats-method NULLS_UNEQUAL
myisam-use-mmap FALSE
mysql56-temporal-format TRUE
...
...
@@ -84,7 +84,7 @@
net-buffer-length 16384
net-read-timeout 30
net-retry-count 10
@@ -14
24,6 +143
7,8 @@
@@ -14
34,6 +144
7,8 @@
session-track-state-change FALSE
session-track-system-variables
session-track-transaction-info OFF
...
...
@@ -93,7 +93,7 @@
show-slave-auth-info FALSE
silent-startup FALSE
skip-grant-tables TRUE
@@ -14
48,6 +146
3,7 @@
@@ -14
58,6 +147
3,7 @@
slave-type-conversions
slow-launch-time 2
slow-query-log FALSE
...
...
@@ -101,7 +101,7 @@
sort-buffer-size 2097152
sql-mode NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
stack-trace TRUE
@@ -14
61,14 +147
7,16 @@
@@ -14
71,14 +148
7,16 @@
sync-relay-log 10000
sync-relay-log-info 10000
sysdate-is-now FALSE
...
...
@@ -114,7 +114,7 @@
tc-heuristic-recover OFF
thread-cache-size 151
thread-pool-idle-timeout 60
thread-pool-max-threads
1000
thread-pool-max-threads
65536
+thread-pool-min-threads 1
+thread-pool-mode windows
thread-pool-oversubscribe 3
...
...
mysql-test/r/mysqld--help.result
View file @
def25806
...
...
@@ -1487,7 +1487,7 @@ table-open-cache-instances 8
tc-heuristic-recover OFF
thread-cache-size 151
thread-pool-idle-timeout 60
thread-pool-max-threads
1000
thread-pool-max-threads
65536
thread-pool-oversubscribe 3
thread-pool-prio-kickup-timer 1000
thread-pool-priority auto
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
def25806
...
...
@@ -4785,9 +4785,9 @@ READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME THREAD_POOL_MAX_THREADS
SESSION_VALUE NULL
GLOBAL_VALUE
1000
GLOBAL_VALUE
65536
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE
1000
DEFAULT_VALUE
65536
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT Maximum allowed number of worker threads in the thread pool
...
...
mysql-test/suite/sys_vars/r/thread_pool_max_threads_basic.result
View file @
def25806
SET @start_global_value = @@global.thread_pool_max_threads;
select @@global.thread_pool_max_threads;
@@global.thread_pool_max_threads
1000
65536
select @@session.thread_pool_max_threads;
ERROR HY000: Variable 'thread_pool_max_threads' is a GLOBAL variable
show global variables like 'thread_pool_max_threads';
Variable_name Value
thread_pool_max_threads
1000
thread_pool_max_threads
65536
show session variables like 'thread_pool_max_threads';
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';
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';
VARIABLE_NAME VARIABLE_VALUE
THREAD_POOL_MAX_THREADS
1000
THREAD_POOL_MAX_THREADS
65536
set global thread_pool_max_threads=1;
select @@global.thread_pool_max_threads;
@@global.thread_pool_max_threads
...
...
sql/sys_vars.cc
View file @
def25806
...
...
@@ -3359,7 +3359,7 @@ static Sys_var_uint Sys_threadpool_max_threads(
"thread_pool_max_threads"
,
"Maximum allowed number of worker threads in the thread pool"
,
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
),
ON_UPDATE
(
fix_tp_max_threads
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment