Installing applications on the kubernetes cluster page results in a high CPU usage

I noticed when testing some MR's for the monitor team that installing applications for a kubernetes cluster, results in high CPU usage. This happens when installing an app, e.g.

Screen_Shot_2019-02-12_at_12.26.42_PM

This affects both Firefox and Chrome

I uploaded some chrome profiling data, but a quick looks reveals that the call stack for each poll that we do when retrieving the cluster and application status json is huge!

Screen_Shot_2019-02-12_at_1.15.18_PM

Screen_Shot_2019-02-12_at_1.15.27_PM

32% of CPU usage just to install one app 🙈

Screen_Shot_2019-02-12_at_1.14.04_PM

The profile data https://drive.google.com/file/d/1Yv7uFQqDDq9IAQRG8gyyj7uJ_L8Md8fE/view?usp=sharing

To try this, you can just create your own kubernetes cluster inside staging or prod, from there install apps as usual (helm, gitlab-runner, prometheus, etc.)

Assignee Loading
Time tracking Loading