diff --git a/apps/kafka-key-generator/nais/nais-prod.yaml b/apps/kafka-key-generator/nais/nais-prod.yaml index ebeaae13..25c0a00c 100644 --- a/apps/kafka-key-generator/nais/nais-prod.yaml +++ b/apps/kafka-key-generator/nais/nais-prod.yaml @@ -13,10 +13,10 @@ spec: max: 2 resources: limits: - memory: 4096Mi + memory: 512Mi requests: cpu: 50m - memory: 4096Mi + memory: 256Mi liveness: path: /internal/isAlive initialDelay: 10 diff --git a/apps/kafka-key-generator/src/main/kotlin/no/nav/paw/kafkakeygenerator/ktor/helse_endepunkt.kt b/apps/kafka-key-generator/src/main/kotlin/no/nav/paw/kafkakeygenerator/ktor/helse_endepunkt.kt index 346b786e..87709244 100644 --- a/apps/kafka-key-generator/src/main/kotlin/no/nav/paw/kafkakeygenerator/ktor/helse_endepunkt.kt +++ b/apps/kafka-key-generator/src/main/kotlin/no/nav/paw/kafkakeygenerator/ktor/helse_endepunkt.kt @@ -31,7 +31,7 @@ fun Routing.konfigurereHelse( get("/internal/metrics") { call.respond(prometheusMeterRegistry.scrape()) } - get("internal/mergeDetector") { + /* get("internal/mergeDetector") { val t = task.get() if (t == null) { task.set(supplyAsync { runBlocking { mergeDetector.findMerges(900) } }) @@ -49,5 +49,5 @@ fun Routing.konfigurereHelse( call.respondText("Merge detection in progress") } } - } + }*/ }