Skip to content

Commit

Permalink
test(smoketest): apply resource limits to Cryostat components (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Aug 21, 2023
1 parent f9abc17 commit 2cd2e29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions smoketest/compose/cryostat-grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion smoketest/compose/cryostat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,4 +38,4 @@ services:
interval: 10s
retries: 3
start_period: 10s
timeout: 5s
timeout: 5s
5 changes: 5 additions & 0 deletions smoketest/compose/jfr-datasource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2cd2e29

Please sign in to comment.