From bb1aa569f4a0fd738662c0e0740295004e9a222a Mon Sep 17 00:00:00 2001 From: nbari Date: Fri, 30 Nov 2018 09:12:42 +0100 Subject: [PATCH] added wait_timout, interactive_timeout and innodb_force_primary_key --- jobs/mysql/spec | 13 ++++++++++++- jobs/mysql/templates/my.cnf.erb | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/jobs/mysql/spec b/jobs/mysql/spec index f4219669..1236744d 100644 --- a/jobs/mysql/spec +++ b/jobs/mysql/spec @@ -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.' diff --git a/jobs/mysql/templates/my.cnf.erb b/jobs/mysql/templates/my.cnf.erb index 05d40cf6..cacbbaf7 100644 --- a/jobs/mysql/templates/my.cnf.erb +++ b/jobs/mysql/templates/my.cnf.erb @@ -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') %>