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
Reviewed: https:/ /review. openstack. org/215715 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=cd906266e67 c8a8a8ae9676d2f a6dd1bd2f59bd8
Committed: https:/
Submitter: Jenkins
Branch: master
commit cd906266e67c8a8 a8ae9676d2fa6dd 1bd2f59bd8
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 for_user_ and_project
- get_roles_
This change, in addition to I147c5b8e7dcfe1 786fe8a534182db eef33925eac,
reduces the Fernet token creation time by 28%.
The full performance report can be found here:
https:/ /gist.github. com/dolph/ 3bf24039b83a147 eeb5c
Partial-Bug: 1489061
Co-Authored-By: Samuel de Medeiros Queiroz <email address hidden>
Co-Authored-By: Morgan Fainberg <email address hidden>
Change-Id: Id6ee76f896fe73 8b4c4de432eb57c c0437ffdb6b