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

Reduce ec2 instance controller API calls for an observation #2028

Conversation

justinmir
Copy link

@justinmir justinmir commented Mar 29, 2024

Description of your changes

The EC2 instance controller synchronously makes several DescribeInstanceAttribut calls to the EC2 API and does not use the results. This slows down the reconcile time for a single observation.

This removes the API calls for attributes that are returned in RunInstances.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tested in staging/production in our fork. See drastic decrease in reconcile time for the ec2 instance resource.
image

Related to #2029

The EC2 instance controller synchronously makes several
DescribeInstanceAttribut calls to the EC2 API and does not use the
results. This slows down the reconcile time for a single observation.

This removes the API calls for attributes that are returned in
`RunInstances`.

Signed-off-by: justin.miron <[email protected]>
@justinmir justinmir force-pushed the reduce-ec2-controller-api-calls branch from 76f21d2 to ac631f9 Compare March 29, 2024 16:03
@justinmir justinmir marked this pull request as ready for review April 1, 2024 18:10
@justinmir justinmir requested a review from MisterMX April 8, 2024 19:23
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution and the clarification @justinmir!

@MisterMX MisterMX merged commit 6b788cb into crossplane-contrib:master Apr 9, 2024
9 checks passed
Copy link

github-actions bot commented Apr 9, 2024

Successfully created backport PR #2033 for release-0.47.

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