0

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.

1 Answer 1

0

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.

6
  • 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 Commented Jul 1, 2021 at 6:29
  • 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. Commented Jul 1, 2021 at 9:16
  • 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 Commented Jul 1, 2021 at 9:21
  • 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? Commented Jul 1, 2021 at 9:23
  • 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. Commented Jul 1, 2021 at 9:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.