Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
Some system variables are declared as AUTO_SET, and some of those also support being changed dynamically with SET GLOBAL.
For example, host_cache_size is declared as AUTO_SET:
https://github.com/MariaDB/server/blob/mariadb-10.4.6/sql/sys_vars.cc#L5795
But "autoset" doesn't work with SET GLOBAL:
MariaDB [(none)]> SET GLOBAL host_cache_size=autoset;
|
ERROR 1232 (42000): Incorrect argument type to variable 'host_cache_size'
|
There is special code to handle auto-sizing for this system variable (and others) at startup:
https://github.com/MariaDB/server/blob/mariadb-10.4.6/sql/mysqld.cc#L4266
And you can explicitly specify to autoset the AUTO_SET option by using the --autoset option prefix:
https://mariadb.com/kb/en/library/mysqld-options/#-autoset-
For example:
[mariadb]
|
...
|
autoset_host_cache_size
|
Maybe it would make sense to be able to specify the "autoset" value in SET GLOBAL for variables that are declared AUTO_SET?
Attachments
Issue Links
- is blocked by
-
MDEV-19839 refactor --autoset
- Open
- relates to
-
MDEV-19896 --autoset-thread-cache-size doesn't work
- Closed
-
MDEV-24670 avoid OOM by linux kernel co-operative memory management
- Closed
-
MDEV-27772 Performance regression with default configuration in 10.6
- Open
-
MDEV-27784 log_overwrite_warning displays an error instead of a warning
- Closed
-
MDEV-34026 MySQL 8.4 has changed some defaults, check if this is applicable for MariaDB as well
- Open