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
... | ... |
@@ -269,7 +269,7 @@ function generate_swift_config { |
269 | 269 |
iniset ${swift_node_config} DEFAULT log_facility LOG_LOCAL${log_facility} |
270 | 270 |
|
271 | 271 |
iniuncomment ${swift_node_config} DEFAULT workers |
272 |
- iniset ${swift_node_config} DEFAULT workers 1 |
|
272 |
+ iniset ${swift_node_config} DEFAULT workers ${API_WORKERS:-1} |
|
273 | 273 |
|
274 | 274 |
iniuncomment ${swift_node_config} DEFAULT disable_fallocate |
275 | 275 |
iniset ${swift_node_config} DEFAULT disable_fallocate true |