From 347363d57481e00c295cafd583b111360fe9a8d7 Mon Sep 17 00:00:00 2001 From: Hunt Xu Date: Fri, 6 Jul 2018 15:32:30 +0800 Subject: [PATCH] config: update api_workers default value to match help message Change-Id: I3da33a76d8f194609258a97a5736e08e3d5d2b58 --- qinling/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qinling/config.py b/qinling/config.py index 61aa0553..22c717de 100644 --- a/qinling/config.py +++ b/qinling/config.py @@ -13,6 +13,7 @@ # limitations under the License. from keystoneauth1 import loading from keystonemiddleware import auth_token +from oslo_concurrency import processutils from oslo_config import cfg from oslo_log import log @@ -45,7 +46,7 @@ api_opts = [ ), cfg.IntOpt( 'api_workers', - default=1, + default=processutils.get_worker_count(), help='Number of workers for Qinling API service ' 'default is equal to the number of CPUs available if that can ' 'be determined, else a default worker count of 1 is returned.'