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

Advice on large number of PUTs #277

Open
giacecco opened this issue Mar 22, 2015 · 1 comment
Open

Advice on large number of PUTs #277

giacecco opened this issue Mar 22, 2015 · 1 comment

Comments

@giacecco
Copy link

Hi All,
I need to create almost 2m small files in an S3 bucket (see the make.js script at https://github.com/Digital-Contraptions-Imaginarium/frugal-addresses-onspd/tree/write-to-s3-directly if you are curious).

I am wondering what is the best practice to use knox to do that effectively. At the moment, I am simply writing the files one by one and observing that after the first 4000 PUTs the process becomes very slow. My guess is that there is some "buffer" of PUT requests that can't get processed fast enough.

Any advice is welcome, thanks,

Giacecco

@domenic
Copy link
Contributor

domenic commented Mar 22, 2015

This could be due to any number of things. Here are my guesses:

  • Versions of node before io.js did not handle HTTP connection keep-alive very well, which seems possibly relevant
  • Amazon could be rate-limiting you (perhaps DDoS protection?)
  • Your machine could be running out of memory or other resources

https://www.google.com/search?q=s3+batch+upload has some interesting results too

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

2 participants