Bug 1041499

Summary: [RFE][cinder]: Enable multi-process for API service
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-cinderAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ddomingo, dron, eharney, markmc, scohen, sgotliv, yeylon, yrabl
Target Milestone: Upstream M3Keywords: FutureFeature, TestOnly, Triaged
Target Release: 5.0 (RHEL 7)Flags: scohen: needinfo+
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/multi-process-api-service
Whiteboard: upstream_milestone_icehouse-3 upstream_status_implemented upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
This update adds a new option for the Block Storage API service, namely osapi_volume_workers. This option allows you to specify the number of API service workers (or OS processes) to launch for openstack-cinder-api. Typically, this option can be used to set the number of OS processes to the number of CPU cores/threads on a machine; doing so will greatly increase the number of API requests that can be handled per second. To set this option, run the following command on the openstack-cinder-api host: openstack-config --set /etc/cinder/cinder.conf \ DEFAULT osapi_volume_workers [X] Replace [X] with the target number of OS processes you wish to set. By default, the Block Storage API service will still run in one process (that is, osapi_volume_workers is set to None).
Story Points: ---
Clone Of:
: 1083318 (view as bug list) Environment:
Last Closed: 2014-07-08 15:30:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1083318    

Description RHOS Integration 2013-12-12 16:39:45 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/multi-process-api-service.

Description:

Due to the limit of Python interpreter, API service of Cinder can't really utilize underlying multi-core architecture even libraries like eventlet has been used.  To make API service much more scalable, we should adopt multi-process API workers mode that has been used for long time in Glance/Swift/Nova.

Specification URL (additional information):

None

Comment 2 Sean Cohen 2014-03-13 08:57:57 UTC
*** Bug 1046798 has been marked as a duplicate of this bug. ***

Comment 10 Yogev Rabl 2014-05-28 13:03:29 UTC
verified on: 
python-cinderclient-1.0.8-1.el7ost.noarch
python-cinder-2014.1-3.1.el7ost.noarch
openstack-cinder-2014.1-3.1.el7ost.noarch

Comment 12 errata-xmlrpc 2014-07-08 15:30:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0852.html