-
Notifications
You must be signed in to change notification settings - Fork 0
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
Swap out s3 for different file storage backend #4
Comments
So we probably want to use @geohacker do you have a sense of the total size of data in s3 / that would be required as disk space? |
@batpad I think right now there's probably a little under 1GB stored on S3 but this will grow as we add more data and tilesets. Minio sounds great to me and I think we should aim to setup minio separately on a box with backups. Will confirm with them about this. @olafveerman mentioned that there's been some work already on dockerising minio setup. May be we can reuse that? |
Looking for a good way to update a custom s3 endpoint in configuration so that normal It would be ideal if we could just update a config file or environment variables with the s3 end-point to use, along-with credentials to our Currently, one would need to add an It seems like we would want something like this: aws/aws-cli#1270 to let the s3 endpoint configuration happen system-wide. Will continue digging here a bit. @olafveerman do let know if you guys have run into this and solved this some-how. |
I'm not 100% sure of the best way to run
We may want to start with just running it standalone on a separate machine, verify that all our processes work against this alternative s3 endpoint, and then work on redundancy, either via adding nodes and running |
@olafveerman thanks. The usages I see there use the This is what I could come up with to setup configuration for the AWS CLI and the AWS JS SDK. For the CLI: Use a plugin to specify a custom s3 endpoint as part of your
Use the plugin in your configuration:
Set the s3 endpoint you want to use:
Now doing Unfortunately, contrary to what the documentation seems to indicate, this configuration does not "just work" for the JS SDK, I assume because of the plugin involved. So we need to either instantiate the s3 object with custom configuration like this:
A slightly better way when we don't have control over / don't want to change the code where the
Then instantiates a new s3 object with For all JS scripts that use s3, we essentially need to I will go ahead and integrate this into the setup scripts and make the required changes across different parts that are talking to s3. @geohacker if you have a sense of what all components are reading from / writing to |
There are various places where files are put to s3 and fetched from s3.
Ideally, we will want something that functions completely as a drop in replacement and the same commands inside containers to access s3 work. Or, we will need to make changes to all places in the code to make the file storage backend configurable.
cc @geohacker
The text was updated successfully, but these errors were encountered: