現在の設定
max_allowed_packet = 1G
query_cache_size =512M
tmp_table_size = 16M
max_heap_table_size = 16M
thread_cache_size = 4
innodb_buffer_pool_size = 2G
「# mysqltuner -buffers」の結果
query_cache_size (=0)
query_cache_type (=0)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
performance_schema = OFF disable PFS
innodb_file_per_table=ON
innodb_log_file_size * innodb_log_files_in_group should be equal to 1/4 of buffer pool size (=1G) if possible.
innodb_buffer_pool_instances(=2)
innodb_log_buffer_size (>= 8M)
設定はquery_cache_size =512Mなのですが
結果query_cache_size (=0)と出ています
これはquery_cache_size =0Mにした方が良いということなのでしょうか?
query_cache_type (=0)は現在どこにも記述していないのですが
query_cache_size =512Mの下に
query_cache_type =0と追記した方が良いのでしょうか?
>performance_schema = OFF disable PFS
これはOFFに設定すればいいのでしょうか?
disable PFSというのがどういう設定なのか分からず設定に迷っています
>innodb_file_per_table=ON
>innodb_log_file_size * innodb_log_files_in_group should be equal to 1/4 of buffer pool size (=1G) if possible.
>innodb_buffer_pool_instances(=2)
>innodb_log_buffer_size (>= 8M)
上記4っつに対してはmy.cnfに以下のように追記するだけでいいのでしょうか?
innodb_file_per_table =ON
innodb_log_file_size =1G
innodb_buffer_pool_instances =2
innodb_log_buffer_size = 8M
上記質問を整理し、my.cnfに記載したのですが、my.cnfの設定は以下でよろしいでしょうか?
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need to run mysqld under a different user or group, # customize your systemd unit file for mariadb according to the # instructions in http://fedoraproject.org/wiki/Systemd max_allowed_packet = 1G query_cache_size =0M query_cache_type =0 tmp_table_size = 16M max_heap_table_size = 16M thread_cache_size = 4 innodb_buffer_pool_size = 2G innodb_file_per_table =ON innodb_log_file_size =1G innodb_buffer_pool_instances =2 innodb_log_buffer_size = 8M performance_schema = OFF [mysqld_safe] log-error=/var/log/mariadb/mariadb.log pid-file=/var/run/mariadb/mariadb.pid # # include all files from the config directory # !includedir /etc/my.cnf.d
以上となります、よろしくお願い致します
あなたの回答
tips
プレビュー