Hide Forgot
Description of problem: When analyzing some topology performance issues it shows that the Immutable method to convert immutable data structures to 'plain' JavaScript objects via toJSON() consumes a lot of time. The result is a slow starting topology and rerender process when showing more then 100 nodes. Version-Release number of selected component (if applicable): 4.6+ How reproducible: Always on a cluster with many many Deployments (tested with round about 100 nodes) Steps to Reproduce: 1. Create many nodes, see https://github.com/jerolimov/openshift/tree/master/loadtest 2. Open the dev perspective, switch to the add page 3. Enable profiling tools in your browser 4. Open the topology and stop profiling after page is loaded Actual results: With around 100 nodes (Deployments for example) the topology is really slow and laggy. A lot of CPU time is consumed in ImmutableJS toJSON Expected results: A faster topology. :) Additional info:
Tested topology with 100 Deployments on 4.11.0-0.nightly-2022-03-16-103946 and it is quite fast. It's less responsible then 4.10 because it makes to many API calls to /api/kubernetes/apis/authorization.k8s.io/v1/selfsubjectaccessreviews but we will address this in another issue.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069