with local storage on, Storing to AWS and digitalocean S3 :)

Important warning:

riofs is buggy and very dangerous dont use it at all.

Alex Baloo Leonid Andrew,

Hi guys,

I was in trouble with the AWS S3 service.

After the fix with Alex, it was mixed again and never worked  in any combination.

I started reading (like my patients do from google :))) ), discovered that there are more s3 services like digitalocean. (and its cost is even less then AWS.)

I checked the AWS plugin file of UNA It was configured for aws end point. I changed it to digitalocean`s .

But no it didnt work same error like AWS.

Then I thought to save UNA from object storage coding and endless AWS rule systems :)

In a fresh install, left it as local storing.

In the fresh install the storage folder was empty.

Installed s3fs and mounted the digitalocean "space" to the local "una/storage" folder.

tried to create an album and send photos and VOILA!!! the folders and file was created in digital oceans space...

I can add, delete the pictures like local. 

Only it is seen a little bit latency during the upload. Possibly due to the server connection/location and digitalocean space location.

 this method may solve the difficulties to migrate to S3 services.

What are your opinions?

Note:
After some trials with S3fs I found an alternative riofs.
Riofs works 10-20 times faster then s3fs.

  • 670
  • More
Replies (2)
    • My idea is that your patients are in good hands. It's a good idea, clever! Not sure that you would not have a latency with S3 or any remote storage, you would have to test several to find out. In the past I had done something similar with Hubic you know?

      • Now I installed both una server and space to the same region of digitalocean and it works like local, very fast :)

        I am just learning /remembering things, I didnt heart about hubic yet :) I will check it.
        advantages of this configuration will be,

        • very good price for storage
        • ability to move the local installation to object based storage servers with local block system.
          copying to the mounted folder may do the trick for the migration.
          I will make trials and write a how to and if UNA team approves we may publish here.
          We have to think about the future consequences of such structure.
        Login or Join to comment.