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

Support asynchronous loading of Usage tab thumbnail charts #750

Merged
merged 3 commits into from
Dec 20, 2018

Conversation

jpwhite4
Copy link
Member

The thumbnail charts view in the Usage tab has been painfully slow since the usage backend was replaced by a shim layer that uses the metric explorer backend.

This pull request does not fix the poor performance of the backend code. Instead it makes the thumbnail charts load asynchronously. The user interface is still responsive while the charts are loading and the charts are loaded from top to bottom so the visible ones are likely to be rendered first (although this is not guaranteed due to the async nature).

Changing the loader code to only load the visible charts is left as an exercise for Ben.

jpwhite4 added a commit to jpwhite4/xdmod that referenced this pull request Dec 19, 2018
This patch reverts commit 43fa0377154e35ec639968ffefe95c88f38186b4
from Wed Nov 25 10:12:49 2015 -0500.

Prior to this change, the Usage tab in XDMoD displayed a thumbnail view
by default. The thumbnail view showed multiple charts, one for each of
the statistics of the first node in the catalog.

The XDMoD code was changed to use the metric explorer backend to generate
the data for the Usage tab. Unfortunately, the changes resulted in terrible load
performance for the thumbnail view. A short term workaround was
implemented in commit 43fa0377154e35ec639968ffefe95c88f38186b4. This
workaround loaded one of the charts by default rather than the thunmbnail
chart view.

The changes in ubccr#750 mitigate
the slowness so this pull request reverts the workaround.
@jtpalmer jtpalmer added the enhancement Enhancement of the functionality of an existing feature label Dec 19, 2018
@jtpalmer jtpalmer added this to the 8.1.0 milestone Dec 19, 2018
plessbd
plessbd previously approved these changes Dec 19, 2018
There is no need to set a storeId since the store is not referenced elsewhere. Setting
the storeId results in the store being registered with the store manager and will
interfere with the garbage collector
@jpwhite4 jpwhite4 merged commit d7b5895 into ubccr:xdmod8.1 Dec 20, 2018
@jpwhite4 jpwhite4 deleted the lazy_load branch December 20, 2018 15:59
@smgallo smgallo changed the title Asynchronous loading of Usage tab thumbnail charts Support asynchronous loading of Usage tab thumbnail charts Apr 10, 2019
@smgallo smgallo added the Category:Metric Explorer Metric Explorer / Usage label Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Metric Explorer Metric Explorer / Usage enhancement Enhancement of the functionality of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants