From 266af48a9b22c162dbb054f5b6fecd3ade64472d Mon Sep 17 00:00:00 2001 From: "Jasper N. Brouwer" Date: Wed, 28 Jun 2017 21:56:23 +0200 Subject: [PATCH] Use ansible_processor_cores to calculate thread_concurrency --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index a580345..7501b1e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -40,7 +40,7 @@ mysql_query_cache_size: '16M' mysql_wait_timeout: 28800 # Try number of CPU's * 2 for thread_concurrency. -mysql_thread_concurrency: 2 +mysql_thread_concurrency: "{{ ansible_processor_cores * 2 }}" # InnoDB settings. mysql_innodb_file_per_table: '1'