-
Notifications
You must be signed in to change notification settings - Fork 81
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
Support S3 storage backends #97
Comments
I think this is a interesting subject. I did look into storing my own music collection on S3 a while ago, but I found it prohibitively expensive: $15 a month just for 1TB of slow storage, plus some more for actually using the files. I do have backups in Glacier though. Some technical thoughts:
Probably not something I am doing to work on in the near or medium future but happy to keep the discussion open. |
Thanks for the input. As you mentioned, I think s3fs is a very good starting point. I will make a note to play around with setting up Polaris + s3fs on a test set up, and hopefully produce some documentation to aid other users who want a similar approach. Regarding 1st class support; perhaps it's not yet viable to consider this with just s3, but I wonder if there are any 'storage backends' that people would be keen to use? Some that come to mind are Google Drive, Google Cloud Storage/Azure Storage. Pluggable storage backends could be a very neat feature of Polaris. |
Just found this project and building it now to try out :) S3 support would be really nice to have, and is something that I would definitely use. I have a self-hosted S3-compilant server (minio in my case, but there are other options like wasabi). s3fs is a neat project, but it's kind of a hacky bridge between object storage & file systems (not making fun of the project, just saying it's a stopgap measure). The nice thing about S3-like object storage is that the APIs & clients are relatively simple. There are also added benefits like easily being able to create signed URLs for share links, streaming the contents directly, etc. For example, the S3 option in funkwhale is used to offer direct streaming to the client from storage instead of needing the funkwhale server in the middle. Anyway, just my $0.02, food for thought. |
This is good to know, I didn't realize there were self-hosted S3 lookalikes. Thanks for chiming in! |
Would there be any other non-filesystem, S3-like backends that could potentially be supported by Polaris? I know Google Drive is often used an archive tool, but I'm not sure about it's viability for audio/file streaming |
The main storage providers that I can think of are local file system, S3-compatible object store, & maybe sftp/ssh. The latter could work since ssh allows piping stdin/stdout transparently over the connection. I just tried compiling the project again and it failed for me, but then again I'm building master and it's on FreeBSD. I'll either open another issue later once I look further into it or maybe send a PR if it's simple enough to fix. I'd like to try this out and possibly replace my existing service with it if it works out well. |
It would be great if Polaris natively supported S3 object store as a backend for retrieving and streaming music. Koel Briefly details how they manage this (with a Lambda triggered to update the database.)
It feels there would be multiple ways to implement this, what are peoples thoughts on this matter?
The text was updated successfully, but these errors were encountered: