Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
added wait_timout, interactive_timeout and innodb_force_primary_key
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Feb 18, 2019
1 parent 20561ec commit bb1aa56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 12 additions & 1 deletion jobs/mysql/spec
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,17 @@ properties:
description: 'Threshold in seconds above which SQL queries get logged in the slow query log file'

cf_mysql.mysql.bootstrap_enabled:
default: true
default: true
description: 'Enables usage of bootsrap procedure'

cf_mysql.mysql.wait_timeout:
default: 28800
description: 'The number of seconds the server waits for activity on a noninteractive connection before closing it.'

cf_mysql.mysql.interactive_timeout:
default: 28800
description: 'The number of seconds the server waits for activity on an interactive connection before closing it.'

cf_mysql.mysql.innodb_force_primary_key:
default: false
description: 'If set to true (false is default) CREATE TABLEs without a primary or unique key where all keyparts are NOT NULL will not be accepted, and will return an error.'
5 changes: 5 additions & 0 deletions jobs/mysql/templates/my.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ innodb_log_buffer_size = <%= p('cf_mysql.mysql.innodb_log_buffer_size')

max_connections = <%= p('cf_mysql.mysql.max_connections') %>

wait_timeout = <%= p('cf_mysql.mysql.wait_timeout') %>
interactive_timeout = <%= p('cf_mysql.mysql.interactive_timeout') %>

innodb_force_primary_key = <%= p('cf_mysql.mysql.innodb_force_primary_key') %>

# Event Scheduler
event_scheduler = <%= p('cf_mysql.mysql.event_scheduler') %>

Expand Down

0 comments on commit bb1aa56

Please sign in to comment.