I currently have a CMS (EpiServer) system up and running on 3 EC2 Windows instances on AWS, behind a load balancer.
They are all connected to a database, so the data that is written is synchronized correctly.
Problem
The problem is that, if someone upload any images, the images are only uploaded to one of the EC2 instances.
So i need a way of getting a shared EBS volume between the instances that i setup.
Tried
I tried by using AWS SDK and Geta.AmazonS3 library, but i met some problems regarding page files virtual path provider (see unanswered: StackOverflow question ).
One solution So i've tried to find another way to do this, and thought that i could see if there are som mounting possibilities for AWS S3. I found TNTdrive , which does the job, it mounts my S3 bucket as a windows volume, and the CMS system accepted it.
I'm just afraid that it makes unnecessary requests and the cost(price) of it(I would prefer open source :) ).
Question:
So my question is: Does anybody know of an open source program that do the same, or another posibility? I have not read too much about AWS Storage Gateway , but could that do what i need?
Thank you in advance!
You can mount S3 bucket onto all your 3 EC2 instances. It's a 2-way mount so all your files will be synchronized. You could use s3f3 to do the mounting.
I used this guide and set up mine pretty quick: Mount S3 onto EC2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.