Score:0

AWS ECS persistent storage solution

in flag

I have one container with Gitlab and i need it to have safe and better if external data volume. I though about EFS as the best one but, if my container will fail will the data be in EFS? And maybe there are better solutions then EFS. Main key is persitant and HA but not very expensive. Also will be thankful for any guides about mounting EFS.

Score:0
gp flag
Tim

ECS is ideal for durable storage to be used with ECS. The container and file system are independent, if the container fails the data will be kept. I found a tutorial here.

Uber Sholder avatar
in flag
Okay i see, but for some reason when I'm mounting i cant see all the files from /var/opt, only some, checked permissions and they seem to be fine, size of /var/opt is few Gbs but in EFS its just 200 Kb. Im thinking what can be a problem. If you have any ideas thanks
Tim avatar
gp flag
Tim
Did you try following the tutorial? You should be mounting EFS somewhere like /mnt/efs/fs1 . Only your data files go on EFS, not the OS files.
Uber Sholder avatar
in flag
let me explain the whole situation. I have GitLab and it stores data in /var/opt in a docker container. I mounted it to /var/opt to send data to EFS. Is it the right idea? feels like no. I checked the tutorial but I'm not sure if there is the exact same situation as mine. I just need to somehow make /var/opt backed up and saved somewhere in safe place
Tim avatar
gp flag
Tim
You should describe your problem fully in the question, rather than just asking how to implement the solution you have in mind. Can you not configure gitlab to store data in a folder of your choice?
Uber Sholder avatar
in flag
I guess you mean to store all this data in another directory? It's the default one, and I'm not sure if I'm allowed to change it. Also, I'm obviously mounting it inside container. Maybe I should just mount it to /mnt/efs/... and create cron job to copy files from /var/opt to /mnt/efs.
Tim avatar
gp flag
Tim
Maybe you should just use an EC2 server. I don't really see a big advantage using a container here.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.