-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
AWSSD: Utilize DiscoverInstances instead of ListInstances #2506
AWSSD: Utilize DiscoverInstances instead of ListInstances #2506
Conversation
Renamed instanceToHttpInstanceSummary to instanceToHTTPInstanceSummary
# Conflicts: # provider/awssd/aws_sd.go
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Bumping this PR |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
provider/awssd/aws_sd_test.go
Outdated
Instances: instances, | ||
}, true) | ||
if len(instances) == 0 { | ||
return nil, errors.New("instances not found") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create an error var that can be referenced. For tests or for top level error handling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
Co-authored-by: John Gardiner Myers <[email protected]>
Co-authored-by: John Gardiner Myers <[email protected]>
/lgtm |
/approve On another topic, I was wondering if it would make sense to move the aws-sd registry logic into the provider. That registry can't be used with any other provider and the aws-sd provider can only be used with either the aws-sd or noop registries. Is there a use case for running the aws-sd provider with the noop registry? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johngmyers The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test pull-external-dns-lint |
/label tide/merge-method-squash |
Description
AWS ServiceDiscovery provider should use
DiscoverInstances
API call when possible instead ofListInstances
, as with default API limits external-dns will start throttling its API on a scale of several thousands of nodes.DiscoverInstances
API.Its input is expecting
ServiceName *string
instead ofServiceID *string
Ref which pulled some additional changes.Outputs are different too but pretty easy to convert.
Benchmarked before/after on same cluster - new DiscoverInstances variant took 26 seconds to reconcile, while ListInstances took 28 seconds.
Tested it on almost a year of running in prod.
Fixes #2505
Checklist