innodb_buffer_pool_size: Not configurable and default is not suitable for all the deployments.
Bug #1425528 reported by
Jorge Niedbalski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
percona-cluster (Juju Charms Collection) |
Fix Released
|
Medium
|
Jorge Niedbalski |
Bug Description
The configuration directive innodb_
After discussing this on this thread we concluded a few things:
- Using 50% of available memory for setting innodb buffers seems to best setting.
- Removed query cache ( not supported on percona-cluster )
- Removed the preferred engine setting because only InnoDB is supported
[0] http://
Related branches
lp:~niedbalski/charm-helpers/fix-1425528
- Jorge Niedbalski (community): Approve
- Mario Splivalo (community): Approve
- Felipe Reyes (community): Approve
-
Diff: 134 lines (+61/-47)2 files modifiedcharmhelpers/contrib/database/mysql.py (+25/-47)
tests/contrib/database/test_mysql.py (+36/-0)
lp:~niedbalski/charms/trusty/percona-cluster/fix-1425528
- James Page: Pending requested
- Mario Splivalo: Pending requested
- Felipe Reyes: Pending requested
- Billy Olsen: Pending requested
-
Diff: 33 lines (+11/-3)2 files modifiedconfig.yaml (+8/-0)
templates/my.cnf (+3/-3)
Changed in percona-cluster (Juju Charms Collection): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
importance: | Undecided → Medium |
status: | New → In Progress |
summary: |
innodb_buffer_pool_size: Not configurable and default is not suitable - for most of deployments. + for all the deployments. |
Changed in percona-cluster (Juju Charms Collection): | |
assignee: | Jorge Niedbalski (niedbalski) → Mario Splivalo (mariosplivalo) |
assignee: | Mario Splivalo (mariosplivalo) → nobody |
Changed in percona-cluster (Juju Charms Collection): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in percona-cluster (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in percona-cluster (Juju Charms Collection): | |
status: | Fix Committed → In Progress |
description: | updated |
Changed in percona-cluster (Juju Charms Collection): | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Configuring innodb_ buffer_ pool_size based on the dataset size is pointless - the automatic configuration should relay on the available amount of RAM. (Otherwise you could say your dataset would be 100GB, and you're deploying on 32GB machine, which would make mysql use more RAM than there is available).
So, a proper way to calculate innodb_ buffer_ pool_size would be in the percentage of the RAM you have available on the box.