Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    145
    cPanel/Enkompass Access Level

    Root Administrator

    Default Set innodb_file_per_table=1 By Default for New Installs [Case 41802]

    Hi,

    I'd like to request that the default my.cnf on new cPanel installations include "innodb_file_per_table=1". According to this thread, there is an internal feature request for this, but I'd like to make this a public request in order to gain support from the forums for the idea. I'd also like to expand upon the reasons why this is a good idea. The thread I linked says the feature request is case #41802, so I put that in the title here.

    Expanded reason why innodb_file_per_table should be in the default my.cnf:
    1. innodb_file_per_table is required in order to use advanced file formats like Barracuda. See link for reasons one might like to do this: Real-Life Use Case for “Barracuda” InnoDB File Format - MySQL Performance Blog
    2. When innodb_file_per_table is not set, the shared table space can get very large, and reclaiming this space is extremely difficult. This page illustrates the complexity of reclaiming that space: Reclaiming Your InnoDB Tablespace — mysqlhacker
    3. Going from innodb_file_per_table back to the shared tablespace (should one be inclined) is much less problem-prone than the reverse.
    4. Unless you have several tens of thousands of tables with a heavy write load, the separate tablespace performs just as well as the shared tablespace. In some cases, the separate tablespace outperforms the shared space (see list item #1).
    5. innodb_file_per_table avoids this issue:
      Quote Originally Posted by cPanelTristan View Post
      Issue with shared InnoDB /var/lib/mysql/ibdata1 storage
      Due to the shared tablespace, data corruption for one InnoDB table can result in MySQL failing to start up on the entire machine. Repairing InnoDB corruption can be extremely difficult to perform and can result in data loss for tables that were not corrupted originally during that repair process.
    6. Separate tablespaces suffer less fragmentation than the shared tablespace.

    For the record, this request is only to apply to new cPanel installations.

  2. #2
    Member
    Join Date
    Aug 2001
    Location
    Brisbane, Australia
    Posts
    210

    Default Re: Set innodb_file_per_table=1 By Default for New Installs [Case 41802]

    Definitely would be good option for NEW WHM installs

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,298
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Set innodb_file_per_table=1 By Default for New Installs [Case 41802]

    It is the option for new installations of 11.31 and will be for 11.32 when that reaches CURRENT. The feature request was incorporated into the 11.31 product due to MySQL 5.5 being offered, which sets InnoDB as the default table engine for MySQL. Here is a note from the case describing how this option is set:

    Starting with version 11.32, on new installs we need to enable innodb_file_per_table. This should occur when the MySQL version is 5.0+ on a fresh install.

    For existing installations we should not automatically enable this directive.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Apr 2011
    Posts
    145
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Set innodb_file_per_table=1 By Default for New Installs [Case 41802]

    Fantastic, thanks Tristan

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 01-12-2012, 08:00 AM
  2. Filed with Developers [Case 43037] cPanel results/items per page: Set serverwide default & allow
    By 3.14fingers in forum Feature Requests for cPanel/WHM
    Replies: 22
    Last Post: 09-27-2010, 10:22 AM
  3. Webmail... set default
    By hostserve in forum E-mail Discussions
    Replies: 7
    Last Post: 06-02-2008, 05:58 AM
  4. How to set a default page
    By mchristie in forum Database Discussions
    Replies: 5
    Last Post: 08-31-2006, 11:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube