-
Notifications
You must be signed in to change notification settings - Fork 0
Files
/
Copy pathtuning_params_mariadb.csv
24 lines (24 loc) · 4.06 KB
/
tuning_params_mariadb.csv
1 | Category | name (Parameter to be adjusted) | desc (Parameter description) | get (Command for querying parameter values.) | set (Command for setting parameter values) | needrestart(Whether require restart or not) | type (discrete/continuous) | options (For the discrete type, use";"to split different values.) | dtype (For discrete, the parameter value type can only be int or string.) | scope (Minimum value of the parameter) | scope (Maximum Value of the parameter) | step (Step of the parameter value) | items (Enumerated values out of parameter values. Use ";" to split different values) | select (whether to select the parameter) | Remarks |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | mariadb | mariadb.key_buffer_size | Index parameters of the myisam storage engine | cat /etc/my.cnf | grep key_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/key_buffer_size.*/key_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1048576 | 536870912 | 1048576 | yes | |||
3 | mariadb.max_allowed_packet | Maximum number of received packets | cat /etc/my.cnf | grep max_allowed_packet | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/max_allowed_packet.*/max_allowed_packet = $value/g' /etc/my.cnf | FALSE | discrete | int | 1048576 | 104857600 | 1048576 | yes | ||||
4 | mariadb.table_open_cache | Table cache for storing data | cat /etc/my.cnf | grep table_open_cache | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/table_open_cache.*/table_open_cache = $value/g' /etc/my.cnf | FALSE | discrete | int | 16 | 1000000 | 2 | yes | ||||
5 | mariadb.back_log | The number of new requests stored in the stack | cat /etc/my.cnf | grep back_log | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/back_log.*/back_log = $value/g' /etc/my.cnf | FALSE | continuous | int | 16 | 65536 | yes | |||||
6 | mariadb.sort_buffer_size | Cache used for sorting | cat /etc/my.cnf | grep sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/sort_buffer_size.*/sort_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 256 | 104857600 | 1024 | yes | ||||
7 | mariadb.read_buffer_size | the buffer allocated to each thread during sequential table scanning. | cat /etc/my.cnf | grep read_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/read_buffer_size.*/read_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1024 | 104857600 | 1024 | yes | ||||
8 | mariadb.read_rnd_buffer_size | the buffer allocated to each thread when the table is read randomly | cat /etc/my.cnf | grep read_rnd_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/read_rnd_buffer_size.*/read_rnd_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1024 | 104857600 | 1024 | yes | ||||
9 | mariadb.myisam_sort_buffer_size | the buffer required for reordering when the MyISAM table changes | cat /etc/my.cnf | grep myisam_sort_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/myisam_sort_buffer_size.*/myisam_sort_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1024 | 104857600 | 1024 | yes | ||||
10 | mariadb.thread_cache_size | Number of threads saved in the cache that are reused | cat /etc/my.cnf | grep thread_cache_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/thread_cache_size.*/thread_cache_size = $value/g' /etc/my.cnf | FALSE | continuous | int | 8 | 1000 | yes | |||||
11 | mariadb.max_connections | the max number of connections | cat /etc/my.cnf | grep max_connections | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/max_connections.*/max_connections = $value/g' /etc/my.cnf | FALSE | continuous | int | 10 | 65536 | yes | |||||
12 | mariadb.max_heap_table_size | size of a memory table that can be created | cat /etc/my.cnf | grep max_heap_table_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/max_heap_table_size.*/max_heap_table_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1024 | 104857600 | 1024 | yes | ||||
13 | mariadb.innodb_buffer_pool_size | size of innodb buffer pool | cat /etc/my.cnf | grep innodb_buffer_pool_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/innodb_buffer_pool_size.*/innodb_buffer_pool_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1024 | 1.37E+11 | 1024 | yes | ||||
14 | mariadb.innodb_log_buffer_size | size of innodb log buffer | cat /etc/my.cnf | grep innodb_log_buffer_size | awk -F '=' '{print $2}' | awk '$1=$1' | sed -i 's/innodb_log_buffer_size.*/innodb_log_buffer_size = $value/g' /etc/my.cnf | FALSE | discrete | int | 1048576 | 104857600 | 1048576 | yes |