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

Commit bb1aa56

Browse files
committed
added wait_timout, interactive_timeout and innodb_force_primary_key
1 parent 20561ec commit bb1aa56

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

jobs/mysql/spec

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,17 @@ properties:
263263
description: 'Threshold in seconds above which SQL queries get logged in the slow query log file'
264264

265265
cf_mysql.mysql.bootstrap_enabled:
266-
default: true
266+
default: true
267267
description: 'Enables usage of bootsrap procedure'
268268

269+
cf_mysql.mysql.wait_timeout:
270+
default: 28800
271+
description: 'The number of seconds the server waits for activity on a noninteractive connection before closing it.'
272+
273+
cf_mysql.mysql.interactive_timeout:
274+
default: 28800
275+
description: 'The number of seconds the server waits for activity on an interactive connection before closing it.'
276+
277+
cf_mysql.mysql.innodb_force_primary_key:
278+
default: false
279+
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.'

jobs/mysql/templates/my.cnf.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ innodb_log_buffer_size = <%= p('cf_mysql.mysql.innodb_log_buffer_size')
194194

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

197+
wait_timeout = <%= p('cf_mysql.mysql.wait_timeout') %>
198+
interactive_timeout = <%= p('cf_mysql.mysql.interactive_timeout') %>
199+
200+
innodb_force_primary_key = <%= p('cf_mysql.mysql.innodb_force_primary_key') %>
201+
197202
# Event Scheduler
198203
event_scheduler = <%= p('cf_mysql.mysql.event_scheduler') %>
199204

0 commit comments

Comments
 (0)