keystone/keystone/server
Morgan Fainberg cd906266e6 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 <samueldmq@gmail.com>
Co-Authored-By: Morgan Fainberg <morgan.fainberg@gmail.com>

Change-Id: Id6ee76f896fe738b4c4de432eb57cc0437ffdb6b
2016-01-27 15:52:58 +00:00
..
__init__.py Refactor keystone-all and http/keystone 2015-01-16 12:26:23 -06:00
backends.py Add caching to role assignments 2016-01-27 15:52:58 +00:00
common.py Change LOG.warn to LOG.warning 2016-01-06 19:30:37 +00:00
eventlet.py Merge keystone.config into keystone.common.config 2015-11-19 08:24:51 -06:00
wsgi.py Merge keystone.config into keystone.common.config 2015-11-19 08:24:51 -06:00