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

Rate limits #94

Open
coretemp opened this issue Mar 30, 2018 · 3 comments
Open

Rate limits #94

coretemp opened this issue Mar 30, 2018 · 3 comments

Comments

@coretemp
Copy link

NixOps doesn't cope with rate limits.

boto.exception.BotoServerError: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
  <Error>
    <Type>Sender</Type>
    <Code>Throttling</Code>
    <Message>Rate exceeded</Message>
  </Error>

NixOps could output the amount of requests being done to the various APIs and produce a report on such failure which could then be sent to AWS support immediately.

In my case running the exact same command (nixops deploy) again worked.

NixOps could also try a bit harder. E.g. run three times in a row with 5 seconds in between before raising the white flag.

@kaii-zen
Copy link

Hitting this sometimes as well. Sometimes it's enough to just run the same command again immediately but other times it's a forced coffee break.
I feel like it happens more often in NixOps than in Terraform for example but that's hardly a scientific observation 😅

@cleverca22
Copy link
Contributor

cleverca22 commented Jun 23, 2018

some services will also report how many hits you have done, how many remain in your quota, and when it resets, in an http header, and you can then limit yourself to avoid hitting them, that could also be looked into

but a quick glance at the aws headers shows no such tips being hidden in the reply

@coretemp
Copy link
Author

coretemp commented Jul 6, 2018

This issue is blocked by NixOS/nixops#504.

@grahamc grahamc transferred this issue from NixOS/nixops Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants