Comment 7 for bug 1489061

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/215715
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=cd906266e67c8a8a8ae9676d2fa6dd1bd2f59bd8
Submitter: Jenkins
Branch: master

commit cd906266e67c8a8a8ae9676d2fa6dd1bd2f59bd8
Author: Morgan Fainberg <email address hidden>
Date: Fri Jan 22 13:13:46 2016 -0800

    Add caching to role assignments

    This patch aims to optimize the token creation
    time by caching role assignments used for
    populating user roles in the token data.

    Two methods in the assignment manager are cached:

    - get_roles_for_user_and_domain
    - get_roles_for_user_and_project

    This change, in addition to I147c5b8e7dcfe1786fe8a534182dbeef33925eac,
    reduces the Fernet token creation time by 28%.

    The full performance report can be found here:

      https://gist.github.com/dolph/3bf24039b83a147eeb5c

    Partial-Bug: 1489061

    Co-Authored-By: Samuel de Medeiros Queiroz <email address hidden>
    Co-Authored-By: Morgan Fainberg <email address hidden>

    Change-Id: Id6ee76f896fe738b4c4de432eb57cc0437ffdb6b