{"action":"created","issue":{"url":"https://api.github.com/repos/LearnBoost/knox/issues/277","labels_url":"https://api.github.com/repos/LearnBoost/knox/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/LearnBoost/knox/issues/277/comments","events_url":"https://api.github.com/repos/LearnBoost/knox/issues/277/events","html_url":"https://github.com/LearnBoost/knox/issues/277","id":63539370,"number":277,"title":"Advice on large number of PUTs","user":{"login":"giacecco","id":303693,"avatar_url":"https://avatars.githubusercontent.com/u/303693?v=3","gravatar_id":"","url":"https://api.github.com/users/giacecco","html_url":"https://github.com/giacecco","followers_url":"https://api.github.com/users/giacecco/followers","following_url":"https://api.github.com/users/giacecco/following{/other_user}","gists_url":"https://api.github.com/users/giacecco/gists{/gist_id}","starred_url":"https://api.github.com/users/giacecco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giacecco/subscriptions","organizations_url":"https://api.github.com/users/giacecco/orgs","repos_url":"https://api.github.com/users/giacecco/repos","events_url":"https://api.github.com/users/giacecco/events{/privacy}","received_events_url":"https://api.github.com/users/giacecco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-22T14:44:09Z","updated_at":"2015-03-22T14:47:40Z","closed_at":null,"body":"Hi All,\r\nI 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). \r\n\r\nI 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.\r\n\r\nAny advice is welcome, thanks,\r\n\r\nGiacecco"},"comment":{"url":"https://api.github.com/repos/LearnBoost/knox/issues/comments/84624802","html_url":"https://github.com/LearnBoost/knox/issues/277#issuecomment-84624802","issue_url":"https://api.github.com/repos/LearnBoost/knox/issues/277","id":84624802,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T14:47:40Z","updated_at":"2015-03-22T14:47:40Z","body":"This could be due to any number of things. Here are my guesses:\r\n\r\n- Versions of node before io.js did not handle HTTP connection keep-alive very well, which seems possibly relevant\r\n- Amazon could be rate-limiting you (perhaps DDoS protection?)\r\n- Your machine could be running out of memory or other resources\r\n\r\nhttps://www.google.com/search?q=s3+batch+upload has some interesting results too"}}