mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-27913 innodb_ft_cache_size max possible value (80000000) is too small for practical purposes
- Make innodb_ft_cache_size & innodb_ft_total_cache_size are dynamic variable and increase the maximum value of innodb_ft_cache_size to 512MB for 32-bit system and 1 TB for 64-bit system and set innodb_ft_total_cache_size maximum value to 1 TB for 64-bit system. - Print warning if the fts cache exceeds the innodb_ft_cache_size and also unlock the cache if fts cache memory reduces less than innodb_ft_cache_size.
This commit is contained in:
@ -16,6 +16,15 @@ select * from information_schema.session_variables where variable_name='innodb_f
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_FT_CACHE_SIZE 8000000
|
||||
set global innodb_ft_cache_size=1;
|
||||
ERROR HY000: Variable 'innodb_ft_cache_size' is a read only variable
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect innodb_ft_cache_size value: '1'
|
||||
SHOW VARIABLES like 'innodb_ft_cache_size';
|
||||
Variable_name Value
|
||||
innodb_ft_cache_size 1600000
|
||||
set session innodb_ft_cache_size=1;
|
||||
ERROR HY000: Variable 'innodb_ft_cache_size' is a read only variable
|
||||
ERROR HY000: Variable 'innodb_ft_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set global innodb_ft_cache_size=512*1024*1024;
|
||||
SHOW VARIABLES like 'innodb_ft_cache_size';
|
||||
Variable_name Value
|
||||
innodb_ft_cache_size 536870912
|
||||
set global innodb_ft_cache_size=default;
|
||||
|
@ -16,6 +16,15 @@ select * from information_schema.session_variables where variable_name='innodb_f
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_FT_TOTAL_CACHE_SIZE 640000000
|
||||
set global innodb_ft_total_cache_size=1;
|
||||
ERROR HY000: Variable 'innodb_ft_total_cache_size' is a read only variable
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect innodb_ft_total_cache_size value: '1'
|
||||
set session innodb_ft_total_cache_size=1;
|
||||
ERROR HY000: Variable 'innodb_ft_total_cache_size' is a read only variable
|
||||
ERROR HY000: Variable 'innodb_ft_total_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SHOW VARIABLES like 'innodb_ft_total_cache_size';
|
||||
Variable_name Value
|
||||
innodb_ft_total_cache_size 32000000
|
||||
set global innodb_ft_total_cache_size=512*1024*1024;
|
||||
show variables like 'innodb_ft_total_cache_size';
|
||||
Variable_name Value
|
||||
innodb_ft_total_cache_size 536870912
|
||||
set global innodb_ft_total_cache_size=default;
|
||||
|
Reference in New Issue
Block a user