Skip to content

Commit

Permalink
Ber om mer CPU for å redusere throttling, justerer minne og justerer …
Browse files Browse the repository at this point in the history
…så GC kan bruke parallelitet
  • Loading branch information
tendestad committed May 2, 2024
1 parent a13c2b4 commit 77e0237
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM ghcr.io/navikt/baseimages/temurin:21-appdynamics
ENV APPD_ENABLED=true
LABEL org.opencontainers.image.source=https://github.com/navikt/pleiepenger-barn-uttak

ENV JAVA_OPTS="-XX:MaxRAMPercentage=75.0 "
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -XX:ActiveProcessorCount=2"

COPY server/target/app.jar ./
10 changes: 5 additions & 5 deletions nais/dev-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
webproxy: true
replicas:
min: 2
max: 4
max: 2
cpuThresholdPercentage: 50
liveness:
path: /pleiepenger-barn-uttak/internal/actuator/health
Expand All @@ -33,11 +33,11 @@ spec:
timeout: 10
resources:
limits:
cpu: 500m
memory: 1024Mi
cpu: 2000m
memory: 500Mi
requests:
cpu: 200m
memory: 256Mi
cpu: 500m
memory: 200Mi
vault:
enabled: true
paths:
Expand Down
8 changes: 4 additions & 4 deletions nais/prod-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ spec:
timeout: 10
resources:
limits:
cpu: 500m
memory: 1024Mi
cpu: 2000m
memory: 800Mi
requests:
cpu: 200m
memory: 256Mi
cpu: 500m
memory: 400Mi
vault:
enabled: true
paths:
Expand Down

0 comments on commit 77e0237

Please sign in to comment.