• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » MySQL InnoDB Optimization From my.cnf

By Abhishek Ghosh September 26, 2014 3:46 pm Updated on September 26, 2014

MySQL InnoDB Optimization From my.cnf

Advertisement

On Rackspace Cloud Server PVHVM, We Can Further Optimize MySQL. Here are some performance tweaks for MySQL InnoDB optimization from my.cnf. WordPress or other PHP-MySQL based softwares usually have no default set choice for InnoDB or MyISAM as driving Engine. We previously discussed the topic – InnoDB actually performs better than MyISAM For WordPress, specially on multi-server configuration. You can apply this method for PaaS as well.

 

MySQL InnoDB Optimization From my.cnf : Assumptions

 

If you are on Rackspace, we assume that, you are not using fully managed / intensely managed plan. This guide is only for developmental purpose or for hardly helping the Rackspace team. You must not interfere with the instances which they are optimizing.

We previously discussed about optimizing MySQL Database performance by editing my.cnf. As we have discussed before – InnoDB Table Optimization per se does exist, there is no such optimization trick unlike MyISAM. So, no WordPress plugin can ever optimize the tables – because the function does not exist. However, the WP Optimize WordPress plugin can do some other works apart from optimizing the tables.

Advertisement

---

And, we are taking that, your Application Server is at least an 01 GB PVHVM instance. This website is practically a showcase of how fast WordPress can be tweaked with very good score on webpagetest and Google Pagespeed Insights :

Vim
1
2
3
4
5
http://www.webpagetest.org/result/140926_AK_Q0J/
# 96 /100
# CDN is a biased result
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fthecustomizewindows.com%2F2014%2F04%2Fpvhvm-virtualzation-mode-faster-loading-servers%2F&tab=desktop
# 94/100

We are yet not happy, because there are points which we need to work.

MySQL InnoDB Optimization From my.cnf

 

MySQL InnoDB Optimization From my.cnf : Guide

 

We are not Database Experts. You possibly should consult a database administrator for any performance lag. From our knowledge, these tweaks will not harm :

We are describing the functions of the parameters in my.cnf file, by default it is minimally touched :

innodb_buffer_pool_size=XYG We tested that allocating ~75% of the memory for a 64bit MySQL server works fine. To make value (digit) higher, you’ll require more RAM. Replace XY.

innodb_change_buffering=all Directive to update and delete operations which are buffered.
innodb_additional_mem_pool_size=XYM The extra memory InnoDB needs to carry out other works. A safe value is 20M for server more than 2GB. Replace XY.

innodb_file_per_table Related to backup, restore and compress function of a table.
innodb_log_file_size= ABCDM Log file size. Should not cross 20-25% of the buffer pool size. Replace ABCD.
innodb_log_buffer_size=XYM A value something like 16M-32M is good for most situations. Larger is for lesser disk IO usage. Replace XY
innodb_flush_log_at_trx_commit=1 1 means database transaction is more important than performance, 2 is set if performance is more important than transaction. You can test with both value with a considerable time gap.
innodb_thread_concurrency=N Default is 0. Usually it is double of the value of the number of cores / virtual cores / real multiple (physical processor * number of cores per processor). Replace N.
innodb_flush_method=O_DIRECT We can avoid double buffering by flushing.

innodb_read_io_threads=XY 4 * the number of cores / virtual cores / real multiple (physical processor * number of cores per processor). Replace XY.
innodb_write_io_threads=XYZ 4 * the number of cores / virtual cores / real multiple (physical processor * number of cores per processor). Replace XYZ.
innodb_io_capacity=XYZ Safely you can set to 500 for 2 GB+ PVHVM instance or ask Rackspace support. Replace XYZ.
innodb_lock_wait_timeout=ABC Determines. It should be tuned by manual checking.
innodb_data_file_path= Set the path somewhere you can remember.
transaction-isolation=READ-COMMITTED This should be tested carefully, it can increase performance, but test it.
ibdata1:50M;ibdata2:50M:autoextend Complex function, tl;dr

Test with Major’s script.

Tagged With wordpress my cnf optimization language:en , innodb_change_buffering=all performance , innodb_flush_log_at_timeout my cnf , wordpress my cnf optimization

This Article Has Been Shared 447 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to MySQL InnoDB Optimization From my.cnf

  • Cloud Computing is not a file hosting service and PaaS is not a CDN!

    Cloud Computing is Not synonymous with File hosting service and there is difference between a PaaS and a dedicated Content Delivery Network (CDN).

  • Is It Reasonable to Consider Google Paid Cloud Services ?

    Is It Reasonable to Consider Google Paid Cloud Services ? When it is about Paid Hosting Services from Google Cloud, definitely it is a bad option unlike free.

  • Running Micro Cloud Foundry on localhost : Basics

    Running Micro Cloud Foundry on localhost has the advantage of getting a standalone virtualized environment for testing purpose. Here is a brief startup guide.

  • Run Facebook Quiz Application on OpenShift PaaS

    Instantly build and deploy an awesome Facebook Quiz Application For Free of Cost With OpenShift Free PaaS and Their Prototype Application.

  • Install WordPress with Nginx on Rackspace Cloud Server

    This Guide Shows How To Install WordPress with Nginx on Ubuntu 14.04 With Step by Step Commands and Explanation of the Steps of What We Are Doing.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021
  • How to Find the Right Software for Your Company February 20, 2021
  • What is Code Refactoring? February 19, 2021
  • Smartphones With Best Audio Quality (2020-2021) February 17, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "MySQL InnoDB Optimization From my.cnf," in The Customize Windows, September 26, 2014, February 24, 2021, https://thecustomizewindows.com/2014/09/mysql-innodb-optimization-cnf/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy