2024-10-03 09:55:08 +02:00
|
|
|
--- main/mysqld--help.result
|
|
|
|
+++ main/mysqld--help,win.reject
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -228,6 +228,7 @@
|
2023-04-27 08:39:53 +02:00
|
|
|
--console Write error output on screen; don't remove the console
|
2024-05-03 19:19:03 +02:00
|
|
|
window on Windows
|
2023-04-27 08:39:53 +02:00
|
|
|
--core-file Write core on crashes
|
|
|
|
+ (Defaults to on; use --skip-core-file to disable.)
|
|
|
|
-h, --datadir=name Path to the database root directory
|
2024-03-12 15:26:29 +01:00
|
|
|
--deadlock-search-depth-long=#
|
|
|
|
Long search depth for the two-step deadlock detection
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -738,6 +739,7 @@
|
2014-11-26 10:28:46 +01:00
|
|
|
Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME,
|
2024-03-12 15:26:29 +01:00
|
|
|
DATETIME, TIMESTAMP columns
|
2014-11-26 10:28:46 +01:00
|
|
|
(Defaults to on; use --skip-mysql56-temporal-format to disable.)
|
2012-02-23 09:24:11 +01:00
|
|
|
+ --named-pipe Enable the named pipe (NT)
|
|
|
|
--net-buffer-length=#
|
|
|
|
Buffer length for TCP/IP and socket communication
|
|
|
|
--net-read-timeout=#
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -1451,6 +1453,10 @@
|
2022-09-26 18:40:17 +02:00
|
|
|
Alias for log_slow_query_file. Log slow queries to given
|
|
|
|
log file. Defaults logging to 'hostname'-slow.log. Must
|
|
|
|
be enabled to activate other slow log options
|
2012-02-23 09:24:11 +01:00
|
|
|
+ --slow-start-timeout=#
|
|
|
|
+ Maximum number of milliseconds that the service control
|
|
|
|
+ manager should wait before trying to kill the windows
|
2024-05-03 19:19:03 +02:00
|
|
|
+ service during startup
|
2022-09-12 11:34:29 +02:00
|
|
|
--socket=name Socket file to use for connection
|
|
|
|
--sort-buffer-size=#
|
|
|
|
Each thread that needs to do a sort allocates a buffer of
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -1475,6 +1481,7 @@
|
2024-03-12 15:26:29 +01:00
|
|
|
deleting or updating every row in a table
|
2012-02-23 09:24:11 +01:00
|
|
|
--stack-trace Print a symbolic stack trace on failure
|
|
|
|
(Defaults to on; use --skip-stack-trace to disable.)
|
2024-03-12 15:26:29 +01:00
|
|
|
+ --standalone Dummy option to start as a standalone program (NT)
|
2017-02-06 02:13:36 +01:00
|
|
|
--standard-compliant-cte
|
2017-08-17 11:32:16 +02:00
|
|
|
Allow only CTEs compliant to SQL standard
|
|
|
|
(Defaults to on; use --skip-standard-compliant-cte to disable.)
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -1554,6 +1561,12 @@
|
2013-04-10 15:43:57 +02:00
|
|
|
--thread-pool-max-threads=#
|
|
|
|
Maximum allowed number of worker threads in the thread
|
|
|
|
pool
|
|
|
|
+ --thread-pool-min-threads=#
|
2024-03-12 15:26:29 +01:00
|
|
|
+ Minimum number of threads in the thread pool
|
2016-09-21 16:28:42 +02:00
|
|
|
+ --thread-pool-mode=name
|
2024-09-06 19:09:02 +02:00
|
|
|
+ Chose implementation of the threadpool. Use 'windows'
|
|
|
|
+ unless you have a workload with a lot of concurrent
|
|
|
|
+ connections and minimal contention
|
2017-08-25 20:52:55 +02:00
|
|
|
--thread-pool-oversubscribe=#
|
|
|
|
How many additional active worker threads in a group are
|
2024-03-12 15:26:29 +01:00
|
|
|
allowed
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -1595,8 +1608,8 @@
|
MDEV-32014 Rename binlog cache temporary file to binlog file
for large transaction
Description
===========
When a transaction commits, it copies the binlog events from
binlog cache to binlog file. Very large transactions
(eg. gigabytes) can stall other transactions for a long time
because the data is copied while holding LOCK_log, which blocks
other commits from binlogging.
The solution in this patch is to rename the binlog cache file to
a binlog file instead of copy, if the commiting transaction has
large binlog cache. Rename is a very fast operation, it doesn't
block other transactions a long time.
Design
======
* binlog_large_commit_threshold
type: ulonglong
scope: global
dynamic: yes
default: 128MB
Only the binlog cache temporary files large than 128MB are
renamed to binlog file.
* #binlog_cache_files directory
To support rename, all binlog cache temporary files are managed
as normal files now. `#binlog_cache_files` directory is in the same
directory with binlog files. It is created at server startup if it doesn't
exist. Otherwise, all files in the directory is deleted at startup.
The temporary files are named with ML_ prefix and the memorary address
of the binlog_cache_data object which guarantees it is unique.
* Reserve space
To supprot rename feature, It must reserve enough space at the
begin of the binlog cache file. The space is required for
Format description, Gtid list, checkpoint and Gtid events when
renaming it to a binlog file.
Since binlog_cache_data's cache_log is directly accessed by binlog log,
online alter and wsrep. It is not easy to update all the code. Thus
binlog cache will not reserve space if it is not session binlog cache or
wsrep session is enabled.
- m_file_reserved_bytes
Stores the bytes reserved at the begin of the cache file.
It is initialized in write_prepare() and cleared by reset().
The reserved file header is hide to callers. Thus there is no
change for callers. E.g.
- get_byte_position() still get the length of binlog data
written to the cache, but not the file length.
- truncate(0) will truncate the file to m_file_reserved_bytes but not 0.
- write_prepare()
write_prepare() is called everytime when anything is being written
into the cache. It will call init_file_reserved_bytes() to create
the cache file (if it doesn't exist) and reserve suitable space if
the data written exceeds buffer's size.
* Binlog_commit_by_rotate
It is used to encapsulate the code for remaing a binlog cache
tempoary file to binlog file.
- should_commit_by_rotate()
it is called by write_transaction_to_binlog_events() to check if
a binlog cache should be rename to a binlog file.
- commit()
That is the entry to rename a binlog cache and commit the
transaction. Both rename and commit are protected by LOCK_log,
Thus not other transactions can write anything into the renamed
binlog before it.
Rename happens in a rotation. After the new binlog file is generated,
replace_binlog_file() is called to:
- copy data from the new binlog file to its binlog cache file.
- write gtid event.
- rename the binlog cache file to binlog file.
After that the rotation will continue to succeed. Then the transaction
is committed in a seperated group itself. Its cache file will be
detached and cache log will be reset before calling
trx_group_commit_with_engines(). Thus only Xid event be written.
2024-09-04 18:16:35 +02:00
|
|
|
background for binlogging by user threads are placed in a
|
|
|
|
separate location (see `binlog_large_commit_threshold`
|
|
|
|
option). Several paths may be specified, separated by a
|
|
|
|
- colon (:), in this case they are used in a round-robin
|
|
|
|
- fashion
|
|
|
|
+ semicolon (;), in this case they are used in a
|
|
|
|
+ round-robin fashion
|
2012-02-23 09:24:11 +01:00
|
|
|
--transaction-alloc-block-size=#
|
|
|
|
Allocation block size for transactions to be stored in
|
|
|
|
binary log
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -1826,6 +1839,7 @@
|
2014-11-26 10:28:46 +01:00
|
|
|
myisam-stats-method NULLS_UNEQUAL
|
2012-02-23 09:24:11 +01:00
|
|
|
myisam-use-mmap FALSE
|
2014-11-26 10:28:46 +01:00
|
|
|
mysql56-temporal-format TRUE
|
2012-02-23 09:24:11 +01:00
|
|
|
+named-pipe FALSE
|
|
|
|
net-buffer-length 16384
|
|
|
|
net-read-timeout 30
|
|
|
|
net-retry-count 10
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -2002,6 +2016,7 @@
|
2012-02-23 09:24:11 +01:00
|
|
|
slave-type-conversions
|
|
|
|
slow-launch-time 2
|
|
|
|
slow-query-log FALSE
|
|
|
|
+slow-start-timeout 15000
|
|
|
|
sort-buffer-size 2097152
|
2017-08-17 11:32:16 +02:00
|
|
|
sql-mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
|
2020-02-10 20:34:16 +01:00
|
|
|
sql-safe-updates FALSE
|
2024-10-17 23:52:41 +02:00
|
|
|
@@ -2029,6 +2044,8 @@
|
2022-05-25 02:24:53 +02:00
|
|
|
thread-pool-exact-stats FALSE
|
2016-09-21 16:28:42 +02:00
|
|
|
thread-pool-idle-timeout 60
|
2016-11-04 14:00:11 +01:00
|
|
|
thread-pool-max-threads 65536
|
2013-04-10 15:43:57 +02:00
|
|
|
+thread-pool-min-threads 1
|
2016-09-21 16:28:42 +02:00
|
|
|
+thread-pool-mode windows
|
|
|
|
thread-pool-oversubscribe 3
|
|
|
|
thread-pool-prio-kickup-timer 1000
|
|
|
|
thread-pool-priority auto
|