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

Retries #18

Open
2 of 4 tasks
erkie opened this issue Jun 28, 2019 · 2 comments
Open
2 of 4 tasks

Retries #18

erkie opened this issue Jun 28, 2019 · 2 comments
Labels
help wanted Would love help from other contributors

Comments

@erkie
Copy link
Member

erkie commented Jun 28, 2019

The DigitalOcean API is very flaky and throws 503s pretty liberally. For a lot of operations it's safe to retry instead of stopping the entire process. I suggest retries on the following:

  • Creating volumes
  • Destroying volumes
  • Uploading to Spaces
  • Fetching running instance metadata
@erkie erkie added the help wanted Would love help from other contributors label Jun 28, 2019
@erkie
Copy link
Member Author

erkie commented Jan 9, 2020

Implemented pkg.WithRetry in 9f05030 for uploading to spaces, which seems to be the most common problem.

read tcp N.N.N.N:46668->N.N.N.N:443: use of closed network connection

Hopefully this fixes it. Released in 1.0.7

@erkie
Copy link
Member Author

erkie commented Mar 9, 2020

Implemented a simple retry mechanism in fetching running instance data in 2c92398

Get http://169.254.169.254/metadata/v1.json: net/http: request canceled (Client.Timeout exceeded while awaiting headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Would love help from other contributors
Projects
None yet
Development

No branches or pull requests

1 participant