Skip to content

Commit

Permalink
Merge pull request #349 from navikt/adjust_resources_and_mem
Browse files Browse the repository at this point in the history
sett resource req og JAVA_OPTS
  • Loading branch information
kenglxn authored Dec 5, 2023
2 parents 858852c + 861b1a5 commit 57719f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nais/dev-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
env:
- name: SPRING_PROFILES_ACTIVE
value: dev-gcp
- name: JAVA_OPTS
value: "-XX:+UseParallelGC -XX:MaxRAMPercentage=75.0 -XX:ActiveProcessorCount=2"
prometheus:
enabled: true
path: /ditt-nav-arbeidsgiver-api/internal/actuator/prometheus
Expand Down
9 changes: 9 additions & 0 deletions nais/prod-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
team: fager
spec:
image: {{{ image }}}
resources:
requests:
cpu: 400m
memory: 512Mi
limits:
cpu: 5000m # https://home.robusta.dev/blog/stop-using-cpu-limits/
memory: 1024Mi
liveness:
path: /ditt-nav-arbeidsgiver-api/internal/actuator/health
initialDelay: 90
Expand Down Expand Up @@ -39,6 +46,8 @@ spec:
env:
- name: SPRING_PROFILES_ACTIVE
value: prod-gcp
- name: JAVA_OPTS
value: "-XX:+UseParallelGC -XX:MaxRAMPercentage=75.0 -XX:ActiveProcessorCount=2"
prometheus:
enabled: true
path: /ditt-nav-arbeidsgiver-api/internal/actuator/prometheus
Expand Down

0 comments on commit 57719f1

Please sign in to comment.