Skip to content

Conversation

@AndiDog
Copy link
Contributor

@AndiDog AndiDog commented Nov 21, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

With the MachinePool Machines feature gate turned on, we now see a lot more reconciliation queueing on large MCs due to reconciling a lot of AWSMachine objects. This PR was a low-hanging fruit: the DescribeInstanceTypes AWS request is 100% cacheable.

This uses CAPI's caching helper and uses a very long caching duration as I don't expect the instance type to architecture mapping to change within AWS.

Confirmed working in our fork already (giantswarm#638).

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
n/a

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emoji in title
  • adds unit tests
  • adds or updates e2e tests

Release note:

Cache architecture for each instance type in memory to avoid repeated AWS API requests

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels Nov 21, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 21, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign richardcase for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added needs-priority size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 21, 2025
@AndiDog AndiDog force-pushed the cache-instance-type-architecture branch from 7f0b7ad to 527b12e Compare November 25, 2025 10:00
@AndiDog
Copy link
Contributor Author

AndiDog commented Nov 26, 2025

/test pull-cluster-api-provider-aws-e2e

1 similar comment
@AndiDog
Copy link
Contributor Author

AndiDog commented Nov 26, 2025

/test pull-cluster-api-provider-aws-e2e

@AndiDog
Copy link
Contributor Author

AndiDog commented Nov 27, 2025

Probably unrelated, trying again

/test pull-cluster-api-provider-aws-e2e

@AndiDog AndiDog force-pushed the cache-instance-type-architecture branch from 527b12e to 58aca0e Compare December 1, 2025 07:36
@AndiDog
Copy link
Contributor Author

AndiDog commented Dec 1, 2025

Trying again after rebasing onto E2E test fixes

/test pull-cluster-api-provider-aws-e2e

@AndiDog
Copy link
Contributor Author

AndiDog commented Dec 2, 2025

/retest

@faiq
Copy link
Contributor

faiq commented Dec 2, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 2, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 04536ca75432a3fe9700323d56f4daf07d8806f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants