Excessive DB load and calls on /users/perms

Description

Purpose/Overview:

After a recent update, performance of mod-user-import degraded dramatically. Historically, we've been able to load about 200 records per second in batches of 250, now we load 7 records per second in batches of 10. 

This leads to excessive API calls and load times – especially when loading more than 200K users at once. 

Hosting reports 7 calls/second on /perms/users  during loads which imposes heavy load on the database. Given the frequency, it appears that a call is being made on /perms/users for every single user.

Given that tens of thousands of users is common for FOLIO libraries, and some have over 100K, this creates significant problems for user maintenance.  This problem probably affects everyone – have witnessed this behavior on multiple clusters, including on an unshared one (Massey in ap-southeast-2) 

Requirements:

  • Users shall be able to use mod-user-import to bulk load users in batches of at least 200 that can be processed at least 100 users per second

  • Database load will not be excessive nor interfere with other operations

Desired functionality:

  • Batch size of 1000 or more works reliably

  • Loads at 500 users/second can be expected

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Jakub Skoczen February 16, 2022 at 11:12 AM

Guys, since there are indicatiors this is fixed I am going to close it. if the problem persists in Lotus, please re-open.

Adam Dickmeiss February 16, 2022 at 10:37 AM

This might very well be fixed in work.

Julian Ladisch February 15, 2022 at 12:57 PM

: The bug fix "MODPERMS-156: Perms users request results in invalid SQL" is available on master branch and in this docker container: https://hub.docker.com/r/folioci/mod-permissions/tags folioci/mod-permissions:6.0.0-SNAPSHOT.136

I've asked to test whether this bug fix resolved this Jira () on 16 Dec 2021.

If yes we can make a mod-permissions release with the fix and close this issue, if no we need to do more investigation.

Please report the results of your test with the mod-permissions fix.

Jakub Skoczen February 15, 2022 at 11:21 AM

There's currently no development capacity for mod-user-import. I am scheduling this for MG and will discuss with the team since workarounds have been proposed in the thread above.

Anya February 14, 2022 at 3:12 PM

Support :  and updates on this p2 bug that is impacting all libraries - what is the release target- thanks. 

Done

Details

Assignee

Reporter

Labels

Priority

Development Team

Core: Platform

Release

Lotus R1 2022

Affected Institution

!!!ALL!!!

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 8, 2021 at 11:19 PM
Updated February 16, 2022 at 11:12 AM
Resolved February 16, 2022 at 11:12 AM
TestRail: Cases
TestRail: Runs