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

Scalability: Improve scaling of service instances #4162

Merged
merged 23 commits into from
Mar 18, 2020

Conversation

richard-cox
Copy link
Contributor

@richard-cox richard-cox commented Mar 12, 2020

  • Reduce size of request to fetch SIs by removing SB --> App relation
  • Fix invalid SI --> S relation. This was causing 2 action dispatches per SI as the missing entity was populated by validation (SI-->S isn't valid in CF API, we had S from elsewhere so validation process associated with SI. We should have been using SI --> SP --> S instead)
  • Fix check for additional bindings to SI to be deleted in delete app stepper
  • Add some action builder interfaces
  • blocked on Scalability: Improve scaling of users and organisations #4156

- getUser would first attempt to fetch all users via getUsers
- getUsers could take a long time due to missing relations (users with more than 50 per role)
- getUser wouldn't wait for this to finish and then try and make an individual request to fetch user
- this user would then also be validated and missing relations fetched
- Remove org-space-route relation from orgs and org api requests
- Ensure we don't fetch entity counts unless we need to
- sometimes errorResponse can be null (for instance timeout)
- Delete SI success handler was incorrectly clearing pagination instead of just removing entity from pagination
- Delete of entity was fine, however it was not removed from list
- With bug entity was still not visible in list afterwards only due to nulls filtered out in list
- Reduce size of request to fetch SIs by removing SB --> App relation
- Fix invalid SI --> S relation (this caused 2 action dispatched per SI)
- Fix check for additional bindings to SI to be deleted in delete app stepper
- Add some action builder interfaces
@nwmac nwmac changed the base branch from master to add-connect-step March 18, 2020 11:51
@nwmac nwmac changed the base branch from add-connect-step to master March 18, 2020 11:52
Copy link
Contributor

@nwmac nwmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One fix then good to go

@richard-cox richard-cox merged commit 21951b5 into master Mar 18, 2020
@richard-cox richard-cox deleted the scale-related-fixes-services branch March 18, 2020 15:11
@nwmac nwmac added this to the 3.1.0 milestone Apr 6, 2020
@richard-cox richard-cox changed the title Services Scaling and other Fixes Scalability: Improve service instance list scaling Apr 14, 2020
@richard-cox richard-cox changed the title Scalability: Improve service instance list scaling Scalability: Improve scaling of service instances Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants