Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions jobs/mysql/spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ properties:
default: 65536
cf_mysql.mysql.innodb_buffer_pool_size:
description: 'Optional, the size in bytes of the memory buffer InnoDB uses to cache data and indexes of its tables'
cf_mysql.mysql.innodb_buffer_pool_instances:
description: 'Optional, number of buffer pool instances for InnoDB used if innodb_buffer_pool_size > 1GB'
cf_mysql.mysql.cluster_ips:
description: 'List of nodes. Must have the same number of ips as there are nodes in the cluster'
cf_mysql.mysql.max_heap_table_size:
Expand Down
3 changes: 3 additions & 0 deletions jobs/mysql/templates/my.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ innodb_stats_persistent = OFF
<% if_p('cf_mysql.mysql.innodb_buffer_pool_size') do |innodb_buffer_pool_size| %>
innodb_buffer_pool_size = <%= innodb_buffer_pool_size %>
<% end %>
<% if_p('cf_mysql.mysql.innodb_buffer_pool_instances') do |innodb_buffer_pool_instances| %>
innodb_buffer_pool_instances = <%= innodb_buffer_pool_instances %>
<% end %>

<% if_p('cf_mysql.mysql.max_connections') do |max_connections| %>
max_connections = <%= max_connections %>
Expand Down