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

perf(kubernetes): Load manifest and instance details in parallel #8499

Merged
merged 2 commits into from
Aug 17, 2020
Merged

perf(kubernetes): Load manifest and instance details in parallel #8499

merged 2 commits into from
Aug 17, 2020

Conversation

ezimanyi
Copy link
Contributor

  • refactor(kubernetes): Flip an if condition

    retrieveInstance has a really long if block that would be clearer if we just returned null immediately if the data is missing (rather than have the usual path in a long block). Make that change separately to make the next diff smaller.

  • perf(kubernetes): Load manifest and instance details in parallel

    When opening an instance tab, we currently wait for the reqeust to
    /instances to finish before starting the request to /manifests even though we have the required information for both.

    This PR updates the Kubernetes instance provider to send both requests immediately, reducing the amount of time the user needs to wait for the instance tab to load.

retrieveInstance has a really long if block that would be clearer
if we just returned null immediately if the data is missing (rather
than have the usual path in a long block). Make that change separately
to make the next diff smaller.
When opening an instance tab, we currently wait for the reqeust to
/instances to finish before starting the request to /manifests even
though we have the required information for both.

This PR updates the Kubernetes instance provider to send both requests
immediately, reducing the amount of time the user needs to wait for
the instance tab to load.
Copy link
Contributor

@maggieneterval maggieneterval left a comment

Choose a reason for hiding this comment

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

Thanks for doing this; great idea!

@maggieneterval maggieneterval added the ready to merge Reviewed and ready for merge label Aug 17, 2020
@mergify mergify bot merged commit d599cfb into spinnaker:master Aug 17, 2020
@ezimanyi ezimanyi deleted the parallel-load branch August 17, 2020 19:58
moki-daniel pushed a commit to moki-daniel/deck that referenced this pull request Aug 28, 2020
…nnaker#8499)

* refactor(kubernetes): Flip an if condition

retrieveInstance has a really long if block that would be clearer
if we just returned null immediately if the data is missing (rather
than have the usual path in a long block). Make that change separately
to make the next diff smaller.

* perf(kubernetes): Load manifest and instance details in parallel

When opening an instance tab, we currently wait for the reqeust to
/instances to finish before starting the request to /manifests even
though we have the required information for both.

This PR updates the Kubernetes instance provider to send both requests
immediately, reducing the amount of time the user needs to wait for
the instance tab to load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Reviewed and ready for merge target-release/1.22
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants