MDEV-22258 Limit innodb_encryption_threads to 255
Marko Mäkelä authored
For no good reason, innodb_encryption_threads was limited to
4,294,967,295. Expectedly, the server would crash if such an
insane value was specified. Let us limit the maximum to 255.

The encryption threads are not doing much useful work.
They are basically only dirtying pages by performing
dummy writes via the redo log. The encryption key rotation
or the in-place addition or removal of encryption
will take place in the page cleaner.

In a quick test on a 20-core CPU (40 threads in total),
the sweet spot on an otherwise idle server seemed to be
innodb_encryption_threads=16 for the test
encryption.encrypt_and_grep. The new limit 255 should be
more than enough for even bigger servers.
6b2c8cac
Name Last commit Last update
BUILD Merge branch '5.5' into 10.1
Docs MDEV-19563 Removed references to deprecated option innodb_locks_unsafe_for_binlog
client Merge branch '5.5' into 10.1
cmake MDEV-21437 MariaDB's SUSE/SLES packages don't "provide" all of the same capabilities as the platform's default packages
dbug try to fix data races in DBUG
debian cracklib-runtime needs a comma after to parse properly
extra mbstream: Remove duplicate definition of datasink_buffer
include Merge branch '5.5' into 10.1
libmysql Merge branch '5.5' into 10.1
libmysqld Merge branch '5.5' into 10.1
libservices Merge branch '5.5' into 10.1
man MDEV-14330 Move mysqltest.1 man page to appropriate test package from server package
mysql-test MDEV-22258 Limit innodb_encryption_threads to 255
mysys MDEV-22344: Fix typos in comments
mysys_ssl Merge branch '5.5' into 10.1
pcre Merge branch 'merge-pcre' into 10.1
plugin Merge branch '5.5' into 10.1
randgen/conf Group commit for maria engine.
scripts MDEV-21140 Make galera_recovery.sh work with fs.protected_regular = 1 (#1417)
sql-bench Merge branch '5.5' into 10.1
sql-common Merge branch '5.5' into 10.1
sql MDEV-22520 Assertion `gathered_length == thd->lex->comment.length` failed in binlog_defragment
storage MDEV-22258 Limit innodb_encryption_threads to 255
strings Merge remote-tracking branch 'origin/5.5' into 10.1
support-files Merge 5.5 into 10.1
tests
unittest
vio
win
wsrep
zlib
.clang-format
.gitattributes
.gitignore
BUILD-CMAKE
CMakeLists.txt
COPYING
COPYING.thirdparty
CREDITS
EXCEPTIONS-CLIENT
INSTALL-SOURCE
INSTALL-WIN-SOURCE
KNOWN_BUGS.txt
README
VERSION
appveyor.yml
config.h.cmake
configure.cmake