Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount efs docker volume to efs-guardian #686

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved

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
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
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}
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
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
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
cpus: '0.5'
matusdrobuliak66 marked this conversation as resolved.
Show resolved Hide resolved
reservations:
memory: 64M
cpus: '0.1'

migration:
deploy:
resources:
Expand Down
Loading