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 and innodb_force_primary_key
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Dec 17, 2018
1 parent 20561ec commit 7ff55d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jobs/mysql/spec
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ 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.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.'
4 changes: 4 additions & 0 deletions jobs/mysql/templates/my.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ 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') %>

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 7ff55d0

Please sign in to comment.