Skip to content

Commit ed952c5

Browse files
Modify resource limits and reservations in common.yml
Updated resource limits and reservations for memory and CPUs. Previous values made the IoT Agent to hang with 99% CPU consumption.
1 parent 65bff31 commit ed952c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-compose/common.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ services:
8888
deploy:
8989
resources:
9090
limits:
91+
memory: 1024M
92+
cpus: '2.0'
93+
reservations:
9194
memory: 512M
9295
cpus: '1.0'
93-
reservations:
94-
memory: 256M
95-
cpus: '0.5'
9696
environment:
9797
- IOTA_NORTH_PORT=${IOTA_NORTH_PORT}
9898
- IOTA_REGISTRY_TYPE=mongodb #Whether to hold IoT device info in memory or in a database
@@ -279,4 +279,4 @@ volumes:
279279
driver_opts:
280280
type: none
281281
o: bind
282-
device: ${PWD}/data-models
282+
device: ${PWD}/data-models

0 commit comments

Comments
 (0)