From 5a80e5b73977c943fe6c707c34f94cc6b3076e4a Mon Sep 17 00:00:00 2001 From: Joakim Taule Kartveit Date: Fri, 8 Nov 2024 10:49:15 +0100 Subject: [PATCH] chore: changed scalingStrategy and number of replicas --- build.gradle.kts | 2 +- naiserator-dev.yaml | 11 +++++++---- naiserator-prod.yaml | 15 +++++++++------ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0905466c..712494f9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,7 +39,7 @@ val commonsCompressVersion = "1.27.1" plugins { id("application") kotlin("jvm") version "2.0.21" - id("com.github.johnrengelman.shadow") version "8.1.1" + id("com.gradleup.shadow") version "8.3.3" id("com.diffplug.spotless") version "6.25.0" } diff --git a/naiserator-dev.yaml b/naiserator-dev.yaml index 9d9dc529..8342a60c 100644 --- a/naiserator-dev.yaml +++ b/naiserator-dev.yaml @@ -9,8 +9,12 @@ spec: image: {{ image }} replicas: min: 1 - max: 1 - cpuThresholdPercentage: 90 + max: 2 + scalingStrategy: + kafka: + consumerGroup: syfosmpapirmottak-consumer + threshold: 300 + topic: teamdokumenthandtering.aapen-dok-journalfoering-q1 port: 8080 liveness: path: /internal/is_alive @@ -36,11 +40,10 @@ spec: - id: elastic resources: limits: - cpu: 500m memory: 1Gi requests: cpu: 100m - memory: 512Mi + memory: 256Mi kafka: pool: nav-dev azure: diff --git a/naiserator-prod.yaml b/naiserator-prod.yaml index 8f2e0826..6bceaf2b 100644 --- a/naiserator-prod.yaml +++ b/naiserator-prod.yaml @@ -8,9 +8,13 @@ metadata: spec: image: {{ image }} replicas: - min: 1 - max: 1 - cpuThresholdPercentage: 90 + min: 2 + max: 6 + scalingStrategy: + kafka: + consumerGroup: syfosmpapirmottak-consumer + threshold: 300 + topic: teamdokumenthandtering.aapen-dok-journalfoering port: 8080 liveness: path: /internal/is_alive @@ -36,11 +40,10 @@ spec: - id: elastic resources: limits: - cpu: 500m memory: 1Gi requests: - cpu: 250m - memory: 512Mi + cpu: 100m + memory: 256Mi kafka: pool: nav-prod azure: