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

added wait_timout and innodb_force_primary_key #220

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
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