-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Hitting API rate when creating docklets parallely #108
Comments
Thanks for the report @simecek - I'll have a look |
hi again, okay, i made a few small changes, so reinstall from github The You can set this to I added an option That makes sense that let me know if the changes help. |
Hi sckott, I reinstalled analogsea from Github and set
However, when I set Thank you very much for you help. From my perspective the issue was resolved. |
@simecek Glad it's resolved.
Do you know if when you tried that your rate limit was at its max? I'll test this out and see if the wait time is ignored. |
I re-run the code and found the bug.
|
Great, glad it worked. I'll make a note in the docs about this so other users don't have to run into the same problem. |
I use analogsea to start DO machines for course participants (https://github.com/churchill-lab/sysgen2015). To send the same set of instructions to >30 dockets, I am using doParallel/foreach loop, for example this pull "churchill/doqtl" image to all docklets
The problem is when I tried parallelization of
docklet_create
:For some reason, the package sent crazy amount of API requests and hit 5000/hour API rate in a few seconds. I filled a ticket on Digital Ocean and got the graph with number of requests per 5 minutes.
When I use
for
instead offoreach
, everything is fine (but slow).I believe it is not an issue of foreach or Digital Ocean but the problem of
docklet_create
.The text was updated successfully, but these errors were encountered: