Project

General

Profile

Cleanup #50963

Tasks #36451: mgr/dashboard: Scalability testing

mgr/dashboard: stop polling when page is not visible

Added by Ernesto Puerta over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
UI
Target version:
-
% Done:

0%

Tags:
Backport:
pacific quincy
Reviewed:
Affected Versions:
Pull request ID:

Description

Modern browsers provide support to detect whether a page is visible by the user or not (https://www.w3.org/TR/page-visibility/).

We should rely on that to only poll the back-end when the browser tab is visible. That way we'd heavily reduce the load generated from the front-end. That might have an impact, for example, if a user has many Dashboard tabs opened, which would multiply the number of HTTP requests to the back-end.


Related issues

Copied to Dashboard - Backport #56037: quincy: mgr/dashboard: stop polling when page is not visible Resolved
Copied to Dashboard - Backport #56038: pacific: mgr/dashboard: stop polling when page is not visible Resolved

History

#1 Updated by Alfonso Martínez over 2 years ago

  • Assignee changed from Nizamudeen A to Alfonso Martínez

#3 Updated by Sarthak Gupta over 1 year ago

  • Assignee changed from Alfonso Martínez to Sarthak Gupta

#4 Updated by Sarthak Gupta over 1 year ago

  • Status changed from New to In Progress
  • Pull request ID set to 46370

#5 Updated by Ernesto Puerta over 1 year ago

  • Status changed from In Progress to Pending Backport
  • Backport set to pacific quincy

#6 Updated by Backport Bot over 1 year ago

  • Copied to Backport #56037: quincy: mgr/dashboard: stop polling when page is not visible added

#7 Updated by Backport Bot over 1 year ago

  • Copied to Backport #56038: pacific: mgr/dashboard: stop polling when page is not visible added

#8 Updated by Nizamudeen A about 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF