Skip to content
Snippets Groups Projects
Commit 82a5c069 authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Added CPU and RAM limits

parent fa6ace10
Branches
Tags
No related merge requests found
...@@ -9,6 +9,11 @@ services: ...@@ -9,6 +9,11 @@ services:
- 15672:15672 - 15672:15672
- 5672:5672 - 5672:5672
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.00'
memory: 2G
metadata-processor: metadata-processor:
build: . build: .
...@@ -18,6 +23,10 @@ services: ...@@ -18,6 +23,10 @@ services:
#- ./config.yaml:/app/config.yaml:ro #- ./config.yaml:/app/config.yaml:ro
- working-directory:/app/output - working-directory:/app/output
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.00'
doc-enricher: doc-enricher:
build: . build: .
...@@ -26,6 +35,10 @@ services: ...@@ -26,6 +35,10 @@ services:
# volumes: # volumes:
# - ./config.yaml:/app/config.yaml:ro # - ./config.yaml:/app/config.yaml:ro
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.4'
doc-processor: doc-processor:
build: . build: .
...@@ -35,6 +48,10 @@ services: ...@@ -35,6 +48,10 @@ services:
# - ./config.yaml:/app/config.yaml:ro # - ./config.yaml:/app/config.yaml:ro
- working-directory:/app/output - working-directory:/app/output
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0' #0.5
doc-indexer: doc-indexer:
build: . build: .
...@@ -43,6 +60,10 @@ services: ...@@ -43,6 +60,10 @@ services:
# volumes: # volumes:
# - ./config.yaml:/app/config.yaml:ro # - ./config.yaml:/app/config.yaml:ro
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0'
reindexer: reindexer:
build: . build: .
...@@ -51,6 +72,10 @@ services: ...@@ -51,6 +72,10 @@ services:
volumes: volumes:
- working-directory:/app/output - working-directory:/app/output
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0'
sampler: sampler:
build: . build: .
...@@ -59,6 +84,10 @@ services: ...@@ -59,6 +84,10 @@ services:
volumes: volumes:
- working-directory:/app/output - working-directory:/app/output
restart: unless-stopped restart: unless-stopped
deploy:
resources:
limits:
cpus: '1.0'
api: api:
build: . build: .
...@@ -72,7 +101,7 @@ services: ...@@ -72,7 +101,7 @@ services:
- ${PWD}/config.yaml:/app/config.yaml:ro - ${PWD}/config.yaml:/app/config.yaml:ro
- working-directory:/app/output - working-directory:/app/output
ports: ports:
- 8000:8000 - 5050:8000
restart: unless-stopped restart: unless-stopped
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment