-
Notifications
You must be signed in to change notification settings - Fork 41
Create S3 bucket for npm-on-ipfs #432
Comments
Pinging @lgierth @victorbjelkholm |
Could we possibly do some benchmarks before going this route? Might be a lot of difference in the access times by using S3 bucket compared to a normal disk, but I'm not sure what magnitude of difference. |
Happy to use EFS or EBS if you prefer. At the moment each registry-mirror worker is storing the repo (and potentially all of npm) inside it's docker container which is not going to work for very long. |
I can do some benchmarking if the relevant environments are set up, or if I can get access to the AWS account to do it myself. Failing that there are some ballpark figures here: https://stackoverflow.com/a/49188286 EFS looks like a good solution if we want decent throughput but the cost vs S3 is likely to be eye-watering. |
Ping @eefahy |
Starting with S3 and going from there (if the performance is 💩) makes sense to me. Who/What would need access to the S3 bucket? From the example seen here I think an IAM user is also required to mint an access and secret key which is then granted read/write access to the bucket? Does that seem correct? The use case for this is a little fuzzy for me. @achingbrain would you mind chatting with me briefly about this so I get what you're trying to do? |
The use case is for This is what we have: An EC2 instance running Docker. Within Docker there are a number of In front of them, also managed by Docker is an What we want is this. An ECS cluster running the To get there, the stepping stone proposed in this issue is this. The EC2 instance running Docker which runs nginx and the Hopefully that's a bit clearer - let me know if it's not.. |
That helps a lot @achingbrain, thank you for that. How is this service currently being managed and deployed? I have a lot of experience with ECS and am happy to help. |
In the interested of expediency an EC2 instance was created to deploy this on and I SSH in and manually update the app like an animal. I'd love to have a better pipeline! |
@eefahy do you think you'll be able to set up the S3 bucket soon? People are using |
Done! |
So we don't store repo data on the docker images and/or app servers, could a bucket and the appropriate access perms please be created so we can use ipfs/js-datastore-s3 to store data.
My thinking is we'd use one bucket with prefixes for all the various workers, though happy to use multiple buckets if there's a preference.
The text was updated successfully, but these errors were encountered: