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

Maintenance tab is incredibly laggy #689

Open
gregorydlogan opened this issue Jun 10, 2024 · 1 comment
Open

Maintenance tab is incredibly laggy #689

gregorydlogan opened this issue Jun 10, 2024 · 1 comment
Labels
backend Problem lies with the backend (at least partially) type:bug Something isn't working

Comments

@gregorydlogan
Copy link
Member

Try setting your server to maintenance mode. Just wait, it'll happen eventually...

It's reflected in the backend immediately, but the UI is very slow to react. 30+ seconds by my count.

@gregorydlogan gregorydlogan added the type:bug Something isn't working label Jun 10, 2024
@Arnei
Copy link
Member

Arnei commented Jun 18, 2024

The cause for this seems to lie with the backend. The admin ui backend caches server information for 60 seconds before getting new information, so it can take up to a minute before the admin ui is informed about any changes: https://github.com/opencast/opencast/blob/74b784d5f68b0c8bad7c47b453718b6c5b670799/modules/admin-ui/src/main/java/org/opencastproject/adminui/endpoint/ServerEndpoint.java#L269

Quoting the commit that introduced the caching:

Cache Server Statistics

This add caching to the admin interface's server statistics endpoint to
avoid putting a high load on the database by having this open multiple
times.
(opencast/opencast#2851)

So we probably don't want to remove caching. A higher refresh rate might work, but also increases the risk of overwhelming the database. Alternatively, figuring out why this in particular generates such a high load and make it not do that is probably the ideal, but also more time-consuming approach.

@Arnei Arnei added the backend Problem lies with the backend (at least partially) label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Problem lies with the backend (at least partially) type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants