From 55dc2c2b1faa0d34596fdfb4c46e359ed053673e Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 12 Sep 2014 09:34:20 +0200 Subject: [PATCH] Make Swift uses API_WORKERS Keep the default to 1 instead of going wild, cause Swift really would kill the VM if we let it go (and keeps the old behavior). Change-Id: I7449c1bb485459169b8870c871b887cbab8be865 --- lib/swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swift b/lib/swift index 50e2482947..a8dfe7777e 100644 --- a/lib/swift +++ b/lib/swift @@ -269,7 +269,7 @@ function generate_swift_config { iniset ${swift_node_config} DEFAULT log_facility LOG_LOCAL${log_facility} iniuncomment ${swift_node_config} DEFAULT workers - iniset ${swift_node_config} DEFAULT workers 1 + iniset ${swift_node_config} DEFAULT workers ${API_WORKERS:-1} iniuncomment ${swift_node_config} DEFAULT disable_fallocate iniset ${swift_node_config} DEFAULT disable_fallocate true