config: update api_workers default value to match help message
Change-Id: I3da33a76d8f194609258a97a5736e08e3d5d2b58
This commit is contained in:
parent
7dbef0f030
commit
347363d574
|
@ -13,6 +13,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
from keystoneauth1 import loading
|
from keystoneauth1 import loading
|
||||||
from keystonemiddleware import auth_token
|
from keystonemiddleware import auth_token
|
||||||
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ api_opts = [
|
||||||
),
|
),
|
||||||
cfg.IntOpt(
|
cfg.IntOpt(
|
||||||
'api_workers',
|
'api_workers',
|
||||||
default=1,
|
default=processutils.get_worker_count(),
|
||||||
help='Number of workers for Qinling API service '
|
help='Number of workers for Qinling API service '
|
||||||
'default is equal to the number of CPUs available if that can '
|
'default is equal to the number of CPUs available if that can '
|
||||||
'be determined, else a default worker count of 1 is returned.'
|
'be determined, else a default worker count of 1 is returned.'
|
||||||
|
|
Loading…
Reference in New Issue