Skip to content

Commit 74db850

Browse files
committed
reduce edge resources + reserve orchestrator resources
1 parent ef31d04 commit 74db850

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

edge/wasm-sensors/network/docker-compose.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,20 @@ services:
1818
- bacalhau-network
1919
volumes:
2020
- ./config/orchestrator.yaml:/etc/bacalhau/config.yaml
21+
deploy:
22+
resources:
23+
limits:
24+
cpus: "4.0"
25+
memory: "8G"
26+
reservations:
27+
cpus: "2.0"
28+
memory: "4G"
2129
healthcheck:
22-
test: ["CMD", "bacalhau", "agent", "alive"]
23-
interval: 2s
24-
timeout: 2s
30+
test: ["CMD", "bacalhau", "agent", "alive", "--timeout", "10s"]
31+
interval: 30s
32+
timeout: 20s
2533
retries: 10
26-
start_period: 5s
34+
start_period: 15s
2735

2836
web-services:
2937
image: ghcr.io/bacalhau-project/bacalhau:latest-dind
@@ -59,8 +67,8 @@ services:
5967
replicas: ${REPLICAS:-3}
6068
resources:
6169
limits:
62-
cpus: "0.1" # 10% of a CPU core (enough for 20 jobs at 0.001 each)
63-
memory: "400M" # 400MB (enough for 10 jobs at 36MB each, plus overhead)
70+
cpus: "0.03" # 3% of a CPU core
71+
memory: "200M" # 200MB per service
6472
networks:
6573
- bacalhau-network
6674

@@ -149,4 +157,4 @@ services:
149157
- bacalhau-network
150158

151159
networks:
152-
bacalhau-network:
160+
bacalhau-network:

0 commit comments

Comments
 (0)