Skip to main content

Help with my cnf

Comments

8 comments

  • thinkbot
    Copy your current my.cnf, exact server spec, what kind of scripts you got on the server (custom or some CMS), and mysqltuner.pl result
    0
  • foroxd
    my.cnf [mysqld] back_log = 100 #skip-innodb #innodb=OFF max_connections = 400 key_buffer_size = 256M myisam_sort_buffer_size = 256M myisam_max_sort_file_size = 3072M join_buffer_size = 256K read_buffer_size = 256K sort_buffer_size = 256K table_definition_cache = 10000 table_open_cache = 10000 thread_cache_size = 384 wait_timeout = 120 interactive_timeout = 60 connect_timeout = 10 tmp_table_size = 384M max_heap_table_size = 384M max_allowed_packet = 64M max_seeks_for_key = 1000 group_concat_max_len = 1024 max_length_for_sort_data = 1024 net_buffer_length = 16384 max_connect_errors = 100000 concurrent_insert = 2 read_rnd_buffer_size = 256K bulk_insert_buffer_size = 8M query_cache_limit = 1536K query_cache_size = 64M query_cache_type = 1 query_prealloc_size = 262144 query_alloc_block_size = 65536 range_alloc_block_size = 4096 transaction_alloc_block_size = 8192 transaction_prealloc_size = 4096 default-storage-engine = MyISAM max_write_lock_count = 16 lock_wait_timeout=100 # mysql 5.5 specific innodb_buffer_pool_instances=8 innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_open_files = 1000 innodb_data_file_path= ibdata1:10M:autoextend innodb_buffer_pool_size = 8000M innodb_log_files_in_group = 2 innodb_log_file_size = 5M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 2 innodb_thread_concurrency = 16 innodb_lock_wait_timeout=50 innodb_io_capacity = 200 innodb_read_io_threads = 2 innodb_write_io_threads = 2 long_query_time=1 slow_query_log=0 slow_query_log_file=/var/log/mysql/slowq.log [mysqld_safe] nice = -5 open-files-limit = 8192 [mysqldump] quick quote-names max_allowed_packet = 64M [myisamchk] key_buffer_size = 1024M sort_buffer_size = 1M read_buffer_size = 1M write_buffer_size = 1M [mysqlhotcopy] interactive-timeout
    1 vbulletin and 2 wordpress. Thanks and regards
    0
  • thinkbot
    still mysqltuner results missing and what hdd you have it provides most of the improtant information in one place
    0
  • foroxd
    Hello mysqltuner -------- General Statistics -------------------------------------------------- [[0;34m--[0m] Skipped version check for MySQLTuner script [[0;32mOK[0m] Currently running supported MySQL version 5.5.32-cll [[0;32mOK[0m] Operating on 64-bit architecture -------- Storage Engine Statistics ------------------------------------------- [[0;34m--[0m] Status: [0;32m+Archive [0m[0;31m-BDB [0m[0;31m-Federated [0m[0;32m+InnoDB [0m[0;31m-ISAM [0m[0;31m-NDBCluster [0m [[0;34m--[0m] Data in MyISAM tables: 2G (Tables: 328) [[0;34m--[0m] Data in InnoDB tables: 944K (Tables: 59) [[0;34m--[0m] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17) [[0;34m--[0m] Data in MEMORY tables: 2M (Tables: 2) [[0;31m!![0m] Total fragmented tables: 40 -------- Security Recommendations ------------------------------------------- [[0;32mOK[0m] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [[0;34m--[0m] Up for: 23h 40m 48s (4M q [51.349 qps], 232K conn, TX: 200B, RX: 1B) [[0;34m--[0m] Reads / Writes: 80% / 20% [[0;34m--[0m] Total buffers: 8.5G global + 1.2M per thread (400 max threads) [[0;32mOK[0m] Maximum possible memory usage: 9.0G (38% of installed RAM) [[0;32mOK[0m] Slow queries: 0% (312/4M) [[0;32mOK[0m] Highest usage of available connections: 19% (78/400) [[0;32mOK[0m] Key buffer size / total MyISAM indexes: 256.0M/925.3M [[0;32mOK[0m] Key buffer hit rate: 97.1% (184M cached / 5M reads) [[0;32mOK[0m] Query cache efficiency: 52.3% (1M cached / 3M selects) [[0;31m!![0m] Query cache prunes per day: 49051 [[0;32mOK[0m] Sorts requiring temporary tables: 0% (171 temp sorts / 441K sorts) [[0;31m!![0m] Joins performed without indexes: 1299 [[0;32mOK[0m] Temporary tables created on disk: 6% (4K on disk / 71K total) [[0;32mOK[0m] Thread cache hit rate: 99% (78 created / 232K connections) [[0;32mOK[0m] Table cache hit rate: 23% (622 open / 2K opened) [[0;32mOK[0m] Open file limit used: 4% (842/20K) [[0;32mOK[0m] Table locks acquired immediately: 99% (3M immediate / 3M locks) [[0;32mOK[0m] InnoDB data size / buffer pool: 944.0K/7.8G -------- Recommendations ----------------------------------------------------- General recommendations: Run OPTIMIZE TABLE to defragment tables for better performance MySQL started within last 24 hours - recommendations may be inaccurate Enable the slow query log to troubleshoot bad queries Adjust your join queries to always utilize indexes Variables to adjust: query_cache_size (> 64M) join_buffer_size (> 256.0K, or always use indexes with joins)
    ssd 1,77 TB thanks
    0
  • thinkbot
    [mysqld] back_log = 100 #skip-innodb max_connections = 400 wait_timeout = 120 interactive_timeout = 60 connect_timeout = 2 key_buffer_size = 1500M myisam_sort_buffer_size = 256M myisam_max_sort_file_size = 3072M join_buffer_size = 1M read_buffer_size = 256K sort_buffer_size = 128K read_rnd_buffer_size = 2M table_definition_cache = 1000 table_open_cache = 2500 thread_cache_size = 32 tmp_table_size = 50M max_heap_table_size = 50M max_allowed_packet = 64M concurrent_insert = 2 bulk_insert_buffer_size = 16M query_cache_type = 1 query_cache_size = 64M query_cache_limit = 1M default-storage-engine = MyISAM max_write_lock_count = 10 # mysql 5.5 specific innodb_buffer_pool_instances=8 innodb_flush_method = O_DIRECT innodb_file_per_table = 1 innodb_open_files = 3000 innodb_data_file_path= ibdata1:10M:autoextend innodb_buffer_pool_size = 1000M innodb_log_files_in_group = 2 innodb_log_file_size = 5M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 2 #innodb_thread_concurrency = 16 #innodb_lock_wait_timeout=50 #innodb_io_capacity = 200 #innodb_read_io_threads = 2 #innodb_write_io_threads = 2 slow_query_log=1 slow_query_log_file=mysql-slow.log long_query_time=0.1 [mysqld_safe] nice = -5 open-files-limit = 8192 [mysqldump] quick quote-names max_allowed_packet = 64M [myisamchk] key_buffer_size = 1024M sort_buffer_size = 1M read_buffer_size = 1M write_buffer_size = 1M [mysqlhotcopy] interactive-timeout I've removed and commented out some of the settings, do you even understand them why there were there ? innodb settings optimizations doesnt really make sense much in case of your config since, you got very little content in innodb tables if you plan to put in innodb more contents increase innodb_log_file_size to at least 50M (before restart you need to remove old ib_logfile* files ) you can restart the server with new my.cnf settings above "ssd 1,77 TB" you really have 1,77 TB SSD in this setup ?
    0
  • foroxd
    Sorry, it 1Tb hdd
    0
  • cPanelMichael
    Feel free to update us after implementing the optimizations and let us know if you notice improved performance. Thank you.
    0
  • foroxd
    Sorry, I was out the holidays. It goes very well but sometimes load up a bit. Thanks and regards
    0

Please sign in to leave a comment.