Skip to content

Commit 7ef0c90

Browse files
committed
Add placement and resource constraints
1 parent 30fc1be commit 7ef0c90

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,19 @@
55
## Related PR/s
66

77
## Checklist
8-
98
- [ ] I tested and it works
9+
10+
<!-- Extra checks based on use case -->
11+
12+
<!-- New Stack Introduction
13+
- [ ] The Stack has been included in CI Workflow
14+
-->
15+
16+
<!-- New Service Introduction
17+
- [ ] Service has resource limits and reservations
18+
- [ ] Service has placement constraints or is global
19+
- [ ] Service is restartable
20+
- [ ] The restart is zero-downtime
21+
- [ ] Service can migrate to another Node without manual intervention
22+
- [ ] Relevant OPS E2E Test for this stack were added
23+
-->

services/vendors/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ services:
77
hostname: "{{.Node.Hostname}}-{{.Task.Slot}}"
88
deploy:
99
replicas: ${VENDOR_MANUAL_REPLICAS}
10+
placement:
11+
constraints:
12+
- node.labels.simcore==true
13+
resources:
14+
limits:
15+
cpus: "1"
16+
memory: 2G
17+
reservations:
18+
cpus: "0.5"
19+
memory: 1G
1020
labels:
1121
- traefik.enable=true
1222
- traefik.docker.network=${PUBLIC_NETWORK}

0 commit comments

Comments
 (0)