Skip to content

Files

Latest commit

 

History

History
24 lines (24 loc) · 4.06 KB

tuning_params_mariadb.csv

File metadata and controls

24 lines (24 loc) · 4.06 KB
1
Categoryname (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
mariadbmariadb.key_buffer_sizeIndex parameters of the myisam storage enginecat /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.cnfFALSEdiscreteint10485765368709121048576yes
3
mariadb.max_allowed_packetMaximum number of received packetscat /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.cnfFALSEdiscreteint10485761048576001048576yes
4
mariadb.table_open_cacheTable cache for storing datacat /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.cnfFALSEdiscreteint1610000002yes
5
mariadb.back_logThe number of new requests stored in the stackcat /etc/my.cnf | grep back_log | awk -F '=' '{print $2}' | awk '$1=$1'sed -i 's/back_log.*/back_log = $value/g' /etc/my.cnfFALSEcontinuousint1665536yes
6
mariadb.sort_buffer_sizeCache used for sortingcat /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.cnfFALSEdiscreteint2561048576001024yes
7
mariadb.read_buffer_sizethe 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.cnfFALSEdiscreteint10241048576001024yes
8
mariadb.read_rnd_buffer_sizethe buffer allocated to each thread when the table is read randomlycat /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.cnfFALSEdiscreteint10241048576001024yes
9
mariadb.myisam_sort_buffer_sizethe buffer required for reordering when the MyISAM table changescat /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.cnfFALSEdiscreteint10241048576001024yes
10
mariadb.thread_cache_sizeNumber of threads saved in the cache that are reusedcat /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.cnfFALSEcontinuousint81000yes
11
mariadb.max_connectionsthe max number of connectionscat /etc/my.cnf | grep max_connections | awk -F '=' '{print $2}' | awk '$1=$1'sed -i 's/max_connections.*/max_connections = $value/g' /etc/my.cnfFALSEcontinuousint1065536yes
12
mariadb.max_heap_table_sizesize of a memory table that can be createdcat /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.cnfFALSEdiscreteint10241048576001024yes
13
mariadb.innodb_buffer_pool_sizesize of innodb buffer poolcat /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.cnfFALSEdiscreteint10241.37E+111024yes
14
mariadb.innodb_log_buffer_sizesize of innodb log buffercat /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.cnfFALSEdiscreteint10485761048576001048576yes