cloudfoundry / stratos

Stratos: Web-based Management UI for Cloud Foundry and Kubernetes
Apache License 2.0
244 stars 132 forks source link

Too much app make stratos lags #4278

Open quequiere opened 4 years ago

quequiere commented 4 years ago

Detailed Description

Hello, I'm a developer in a big company and we have around 100 apps in each ORG. When we connecting on Stratos, the front loads all apps with this call:

https://stratosurl/pp/v1/proxy/v2/apps?order-direction=asc&order-direction-field=creation&page=1&results-per-page=100&inline-relations-depth=2&include-relations=space,organization,routes

So we need to load around 5MB of data, and It's make the client freeze for a while.

Most part of time we don't need to load all cloud foundry ORGS

So we would like an option to prevent load of all ORG cause we always need to wait 2/3 minutes to have the entire Stratos loaded. So it's more quickly to use command line.

Possible Implementation

Have an option for each user to have a default ORG to avoid to load all datas.

I have already tried to code a plugin for chrome who replace the original url with:

https://stratosurl/pp/v1/proxy/v2/spaces/{myspaceid}/apps?order-direction=asc&order-direction-field=creation&page=1&results-per-page=100&inline-relations-depth=2&include-relations=space,organization,routes

It's more fast but it's hard coded. We would prefer to have an option on Stratos to do that.

richard-cox commented 4 years ago

Hi @quequiere , we've recently been improving how stratos scales with larger CFs. We've added documentation in v3.2.0 regarding features in v3.1.0 and before. There you can read about reducing the number of applications stratos fetches up front. That should reduce the loading time when navigating to the Application and Cloud Foundry tabs. Could you confirm which version you're on and if tweaking the configuration as described in the docs helps? Also, out of interest, could you give some ball park figures regarding total number of apps, orgs, service instances and users?

quequiere commented 4 years ago

@richard-cox Thank you for your help, we are using V3.10. And we have around 200 apps on 4 orgs, but I have no idea about the users cause I'm just dev ;)

richard-cox commented 4 years ago

Ahh, ok. We do aim to bring in per user settings that will override (with limitations) the existing backend config (see #3661). However this is not planned to be released soon.

If you feel that #3661 will solve your issue please let us know.

May I ask which company you work for?

quequiere commented 4 years ago

@richard-cox Ok, I will comment this issue when we will try this conf.

May I ask which company you work for?

Nope sorry can't share this information :(