Affects Version/s: OpenIDM 5.0.0, OpenIDM 6.0.0
Fix Version/s: 7.0.0
We are seeing poor performance in our load testing of IDM 6.0 with Postgresql as the repo. We are testing with about 70k users.
In looking at the performance tuning information in Postgresql and using p6spy (https://github.com/p6spy/p6spy) we noticed a couple of things that seem to be contributing to the poor performance.
1. IDM is querying for conditional roles, individual role, and individual assignments hundreds of thousands of times each during the course of a recon (on average 8-10 queries per user). We reviewed the queries with our DBA but he wasn't able to offer any help in speeding this up.
2. When a user is being recon'd from Banner to managed/user, the onRecon.groovy script does not query for all assignments so the implicit syncs that are triggered to the downstream systems like AD have to make an additional query for their assignments.
Reduce the number of unnecessary queries IDM makes to the repo through caching or another mechanism so IDM can scale better.
Can't proceed in our efforts to upgrade to OpenIDM 6.0 with the current performance levels. Our workaround looks like it may work.
Role and Assignment data is static for us and changes maybe once every six months or so.
1. We have a script now that will cache this static data into the properties section of script.json.
2. onRecon.groovy doesn't do anything any longer.
3. conditionalRoles.js, effectiveRoles.js, and effectiveAssignments.js now use the global variables from script.json instead of querying the repo.