From 2cd2e291a7ccbd63c02c02182b2cb7041d003ebb Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 21 Aug 2023 13:31:47 -0400 Subject: [PATCH] test(smoketest): apply resource limits to Cryostat components (#53) --- smoketest/compose/cryostat-grafana.yml | 5 +++++ smoketest/compose/cryostat.yml | 7 ++++++- smoketest/compose/jfr-datasource.yml | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/smoketest/compose/cryostat-grafana.yml b/smoketest/compose/cryostat-grafana.yml index a779e476a..74bad08a5 100644 --- a/smoketest/compose/cryostat-grafana.yml +++ b/smoketest/compose/cryostat-grafana.yml @@ -8,6 +8,11 @@ services: image: quay.io/cryostat/cryostat-grafana-dashboard:latest hostname: grafana restart: unless-stopped + deploy: + resources: + limits: + cpus: '0.1' + memory: 256m environment: - GF_INSTALL_PLUGINS=grafana-simple-json-datasource - GF_AUTH_ANONYMOUS_ENABLED=true diff --git a/smoketest/compose/cryostat.yml b/smoketest/compose/cryostat.yml index 1de2884f1..525136cf9 100644 --- a/smoketest/compose/cryostat.yml +++ b/smoketest/compose/cryostat.yml @@ -6,6 +6,11 @@ services: condition: service_healthy s3: condition: service_healthy + deploy: + resources: + limits: + cpus: '0.5' + memory: 512m image: quay.io/cryostat/cryostat3:dev volumes: - ${XDG_RUNTIME_DIR}/podman/podman.sock:/run/user/0/podman/podman.sock:Z @@ -33,4 +38,4 @@ services: interval: 10s retries: 3 start_period: 10s - timeout: 5s \ No newline at end of file + timeout: 5s diff --git a/smoketest/compose/jfr-datasource.yml b/smoketest/compose/jfr-datasource.yml index d7f9d5b0c..653a5f55b 100644 --- a/smoketest/compose/jfr-datasource.yml +++ b/smoketest/compose/jfr-datasource.yml @@ -6,6 +6,11 @@ services: jfr-datasource: image: quay.io/cryostat/jfr-datasource:latest restart: unless-stopped + deploy: + resources: + limits: + cpus: '0.4' + memory: 512m ports: - "8080:8080" expose: