[openstack-dev] Keystone handling http requests synchronously

Kanade, Rohan Rohan.Kanade at nttdata.com
Mon Mar 25 07:19:18 UTC 2013


>Because the mysql client connection is C-based, calls to it will be
>blocking operations on greenthreads within a single process, meaning
>even if multiple greenthreads are spawned for those 200 incoming
>requests, they will be processed synchronously.

Hi Jay, can you please specify what methods in the sqlalchemy library are blocking the greenthreads in a single process?
If i call get_session multiple times during an http api request (say create_user), does it block all greenthreads on each get_session[1]? Or does the session.commit, session.begin, or session.rollback methods block all greenthreads?

[1] https://github.com/openstack/keystone/blob/master/keystone/common/sql/core.py#L217

______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130325/5c5d4b90/attachment.html>


More information about the OpenStack-dev mailing list