Skip to content

Commit f9b3046

Browse files
mount efs docker volume to efs-guardian (#686)
1 parent 7544948 commit f9b3046

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

services/simcore/docker-compose.deploy.aws.yml

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ services:
77
placement:
88
constraints:
99
- node.role == worker
10+
efs-guardian:
11+
volumes:
12+
- efs_volume:/data/efs
13+
1014
clusters-keeper:
1115
deploy:
1216
replicas: 1
@@ -58,3 +62,10 @@ services:
5862
payments:
5963
deploy:
6064
replicas: 1
65+
66+
volumes:
67+
efs_volume:
68+
driver_opts:
69+
type: nfs
70+
o: addr=${EFS_DNS_NAME},rw,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport
71+
device: :/

services/simcore/docker-compose.yml

+25
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,31 @@ services:
532532
memory: 128M
533533
cpus: '0.1'
534534

535+
efs-guardian:
536+
hostname: "{{.Service.Name}}"
537+
deploy:
538+
replicas: ${SIMCORE_EFS_GUARDIAN_REPLICAS}
539+
update_config:
540+
parallelism: 2
541+
order: start-first
542+
failure_action: continue
543+
delay: 10s
544+
restart_policy:
545+
condition: any
546+
delay: 5s
547+
max_attempts: 3
548+
window: 120s
549+
placement:
550+
constraints:
551+
- node.labels.simcore==true
552+
resources:
553+
limits:
554+
memory: 256M
555+
cpus: '0.5'
556+
reservations:
557+
memory: 64M
558+
cpus: '0.1'
559+
535560
migration:
536561
deploy:
537562
resources:

0 commit comments

Comments
 (0)