From 69ef8398a5cba0be330ec534dd657fe70010f38d Mon Sep 17 00:00:00 2001 From: Pablo Iglesias Date: Fri, 13 Nov 2015 10:38:32 +0100 Subject: [PATCH 1/2] Added new variable to the settings to control how long a process sleeps --- templates/default/gecoscc.ini.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/default/gecoscc.ini.erb b/templates/default/gecoscc.ini.erb index 42cefb6..250a56d 100644 --- a/templates/default/gecoscc.ini.erb +++ b/templates/default/gecoscc.ini.erb @@ -43,6 +43,7 @@ chef.url = <%= node['gecoscc-ui']['chef-server']['url'] %> chef.cookbook_name = gecos_ws_mgmt chef.seconds_sleep_is_busy = 5 chef.seconds_block_is_busy = 3600 +chef.heuristic_parameter = 3 ## Change this if you dont want to use mongo ## BROKER_URL = mongodb://localhost:27017/gecoscc From 1084994bb502359445e79662fa17e8a3d2313525 Mon Sep 17 00:00:00 2001 From: Pablo Iglesias Date: Fri, 13 Nov 2015 12:49:08 +0100 Subject: [PATCH 2/2] Changed name parameter and added comments --- templates/default/gecoscc.ini.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/default/gecoscc.ini.erb b/templates/default/gecoscc.ini.erb index 250a56d..8c661e4 100644 --- a/templates/default/gecoscc.ini.erb +++ b/templates/default/gecoscc.ini.erb @@ -43,7 +43,10 @@ chef.url = <%= node['gecoscc-ui']['chef-server']['url'] %> chef.cookbook_name = gecos_ws_mgmt chef.seconds_sleep_is_busy = 5 chef.seconds_block_is_busy = 3600 -chef.heuristic_parameter = 3 +# smart_lock_sleep_factor is use to avoid concurrency problem +# We use this parameter to sleep the process between GET and POST request. +# It's a temporary solution +chef.smart_lock_sleep_factor = 3 ## Change this if you dont want to use mongo ## BROKER_URL = mongodb://localhost:27017/gecoscc