When using a identity driver without providing uuid, and using default
sql id mapping driver, if there are lots of users, then it may take
minutes to list users. Adding cache to the id mapping manager can
improve the performance.
After adding the cache, when listing 12000 users though the keystone
api, and the time is reduced from about 75 seconds to 20 seconds.
Reviewed: https:/ /review. openstack. org/328820 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=53bb53a8143 24234aa4b798651 a616e310396221
Committed: https:/
Submitter: Jenkins
Branch: master
commit 53bb53a81432423 4aa4b798651a616 e310396221
Author: liuhongjiang <email address hidden>
Date: Mon Jun 13 08:11:16 2016 +0800
Added cache for id mapping manager
When using a identity driver without providing uuid, and using default
sql id mapping driver, if there are lots of users, then it may take
minutes to list users. Adding cache to the id mapping manager can
improve the performance.
After adding the cache, when listing 12000 users though the keystone
api, and the time is reduced from about 75 seconds to 20 seconds.
Closes-Bug: #1582585 bb09a61e99f6f59 4371987f393
Change-Id: I72eeb88926d8ba