Make innodb pool size configurable

Alows configuring of buffer pool size and decreases default
value to 100MB.

For VMs with 2G RAM is 592MB buffer too big. Then you can hit
an issue that openstack requests fail because there is not
enough memory to spawn new process or mysql server restart fails
for because it fails to allocate 592MB buffer.

Change-Id: I9126c090d3d4cd03cb93735a2b0c54fa250eed61
This commit is contained in:
Jan Provaznik 2014-04-01 08:59:06 -04:00
parent 2fca313a8e
commit d00082a88e
1 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,12 @@ innodb_log_files_in_group = 2
innodb_log_file_size = 64M
innodb_flush_log_at_trx_commit = 2
innodb_file_per_table = 1
innodb_buffer_pool_size = 592M
{{#mysql.innodb_buffer_pool_size}}
innodb_buffer_pool_size = {{mysql.innodb_buffer_pool_size}}M
{{/mysql.innodb_buffer_pool_size}}
{{^mysql.innodb_buffer_pool_size}}
innodb_buffer_pool_size = 100M
{{/mysql.innodb_buffer_pool_size}}
# TODO
# innodb_read_io_threads
# innodb_write_io_threads