Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning New Grants to User Takes Long Time. #1376

Open
3 of 7 tasks
vogtjob opened this issue Sep 19, 2024 · 3 comments
Open
3 of 7 tasks

Assigning New Grants to User Takes Long Time. #1376

vogtjob opened this issue Sep 19, 2024 · 3 comments

Comments

@vogtjob
Copy link

vogtjob commented Sep 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest version of STIG Manager?

  • I am using the latest Release.
  • I am NOT using the latest Release. I am aware that the first thing I will be asked to do is update the application so that I have the latest bugfixes.

Where are you experiencing the issue?

  • API
  • UI or other client
  • Deployment
  • Elsewhere

Current Behavior

When modifying a user through Application Management->User Grants it takes a long time for the collection drop-down to populate (3-4 minutes). During this period of lag time the mysql CPU usage is 100% until the query being performed completes. The instance this occurs on is quite large (rows from application info): 98 collections, 43,969 assets, 22,238,926 review, 26,703,470 review history.

Expected Behavior

Collection drop-down populates from Application Management->User Grants populates quicker.

Steps To Reproduce

No response

Can you provide screenshots, logs, or other useful artifacts?

No response

Describe your Environment

- Hosting:
- Browser: Chrome, Edge
- OS: RHEL 8.10 (podman containers)
- Node:
- npm:
@cd-rite
Copy link
Collaborator

cd-rite commented Sep 19, 2024

Hi @vogtjob Wow, I'm surprised you waited that long before giving up!
I can see some performance issues with the endpoint (getCollections) in play here, but our testing did not reveal an impact as large as yours.

We have a feature branch implementing User Access Controls that we are targeting for October that we expect should resolve this issue, but we will look into addressing this separately and before that release if feasible.

Can you provide the Anonymized Deployment Details report available from the app? This will help us model your circumstances to ensure we can recreate and address the issue accurately. It will also help us determine if you may see better performance with a database setting change before any fix we may make.

What is your performance like when loading the App Management->Collections UI? That UI hits the same endpoint as the Modify User interface, but with slightly different parameters.
If that interface loads more quickly, it may be more tolerable to assign Grants via the App Management->Collections UI instead of the User Management UI for now. You'll be adding Users to Collections, rather than adding Collections to Users.

@vogtjob
Copy link
Author

vogtjob commented Sep 20, 2024 via email

@cd-rite
Copy link
Collaborator

cd-rite commented Sep 25, 2024

Should be resolved when #1289 is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants