Skip to main content

MySQL Optimisation

Comments

3 comments

  • Aaron.Edwards
    Hi Charlie, How many hits does your server gets usually at the peak time of the server ? How many domains hosted in the server ? Determine your maximum connections value by reducing it.
    0
  • charliekapper
    [quote="Aaron.Edwards, post: 1476662">Hi Charlie, How many hits does your server gets usually at the peak time of the server ? How many domains hosted in the server ? Determine your maximum connections value by reducing it.
    Thanks for the reply. Around 40 hits afaik. How could I check this? 6 domains are hosted on the server, 5 are sitting with no traffic and 1 (the main one) has the panel on with the databases. If I reduce the amount, how do I tell if the connections get rejected because it's too low? Also if I set the wrong settings (low values) will mysql not work and fail to write changes?
    0
  • thinkbot
    change my.cnf to [mysqld] max_connections=75 innodb_file_per_table=1 default-storage-engine=MyISAM open_files_limit=5000 myisam_use_mmap=1 wait_timeout = 60 connect_timeout = 2 query_cache_type = 1 query_cache_size = 20M query_cache_limit = 1M thread_cache_size = 20 table_open_cache = 512 key_buffer_size = 150M innodb_buffer_pool_size = 100M
    0

Please sign in to leave a comment.