Skip to content
Snippets Groups Projects
Commit 7da80ada authored by David Björkheim's avatar David Björkheim
Browse files

DEICH-0000 Limit cpu for some services locally to reduce peak loads

parent 854ca5e1
No related branches found
No related tags found
1 merge request!198DEICH-0000 Limit cpu for some services locally to reduce peak loads
version: "2.4"
# The CPU is limited to 50 % on some services due to issues with batch-jobs firing in the local dev environment. The long-term fix is to be able to disable them when working locally and moving all Koha-jobs to Cronicle.
# Common labels used for all services
x-common-labels: &common-labels
org.label-schema.build-date: "${BUILD_DATE:-N/A}"
......@@ -9,7 +10,7 @@ x-common-labels: &common-labels
volumes:
grafana_data: {}
services:
traefik:
command:
......@@ -50,17 +51,17 @@ services:
traefik.http.routers.cadvisor.entrypoints: "web"
traefik.http.routers.cadvisor.rule: "HostRegexp(`{hostname:(cadvisor)\\..*}`)"
volumes:
#- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
#- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
cronicle:
build:
context: cronicle
volumes:
- /tmp/backups:/backups
- /tmp/backups:/backups
deichman.no:
command:
- "npm"
......@@ -90,6 +91,7 @@ services:
no.deichman.label.component-category: "Frontend"
elasticsearch:
cpus: 0.50
build:
context: elasticsearch
labels:
......@@ -179,6 +181,7 @@ services:
- ./katalog/nginx/nginx-root-dev.conf:/etc/nginx/conf.d/nginx-root.conf:ro
koha:
cpus: 0.50
build:
context: koha
labels:
......@@ -197,10 +200,11 @@ services:
- ./koha:/koha
koha-db:
cpus: 0.50
volumes:
- "/tmp/backups:/xtrabackup_backupfiles"
ports:
- "3306:3306"
- "3306:3306"
kibana:
image: "digibib/kibana:${TAG:-latest}"
......@@ -245,7 +249,7 @@ services:
no.deichman.label.component-category: "Backend"
command: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=0.0.0.0:7699 -jar /app/mimir.jar
ports:
- "7699:7699"
- "7699:7699"
prometheus:
image: "prom/prometheus:v2.17.1"
......@@ -352,8 +356,9 @@ services:
max-file: "3"
virtuoso:
cpus: 0.50
ports:
- "1111:1111"
- "1111:1111"
build:
context: virtuoso
labels:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment