Skip to content

Commit

Permalink
mount efs docker volume to efs-guardian (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 authored Jun 4, 2024
1 parent 7544948 commit f9b3046
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions services/simcore/docker-compose.deploy.aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ services:
placement:
constraints:
- node.role == worker
efs-guardian:
volumes:
- efs_volume:/data/efs

clusters-keeper:
deploy:
replicas: 1
Expand Down Expand Up @@ -58,3 +62,10 @@ services:
payments:
deploy:
replicas: 1

volumes:
efs_volume:
driver_opts:
type: nfs
o: addr=${EFS_DNS_NAME},rw,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport
device: :/
25 changes: 25 additions & 0 deletions services/simcore/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,31 @@ services:
memory: 128M
cpus: '0.1'

efs-guardian:
hostname: "{{.Service.Name}}"
deploy:
replicas: ${SIMCORE_EFS_GUARDIAN_REPLICAS}
update_config:
parallelism: 2
order: start-first
failure_action: continue
delay: 10s
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints:
- node.labels.simcore==true
resources:
limits:
memory: 256M
cpus: '0.5'
reservations:
memory: 64M
cpus: '0.1'

migration:
deploy:
resources:
Expand Down

0 comments on commit f9b3046

Please sign in to comment.