Skip to content

chore: cap kafka memory to 512Mi - #463

Open
mayankpande88 wants to merge 1 commit into
mainfrom
test/change-gate-kafka-mem
Open

chore: cap kafka memory to 512Mi#463
mayankpande88 wants to merge 1 commit into
mainfrom
test/change-gate-kafka-mem

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

Reduce kafka memory footprint on the demo cluster.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds memory requests and limits of 512Mi to the Kafka component in the Kubernetes sample-app values.yaml. However, capping the container memory to 512Mi without restricting the JVM heap size (which defaults to 1G) will cause Kafka to fail to start or be OOMKilled. It is recommended to explicitly override KAFKA_HEAP_OPTS to a lower value like -Xmx256m -Xms256m to prevent this.

Comment thread deploy/kubernetes/sample-app/values.yaml
@nudgebee-dev

nudgebee-dev Bot commented Aug 7, 2026

Copy link
Copy Markdown

Nudgebee Change Gate

Blocked

  • kafka: Proposed memory limit (512Mi) is below the recommended value (875Mi). Currently allocated is 700Mi. The recommendation was raised because of OOM kills on pods 'kafka-5d8d6bb8f6-52wnn' and 'kafka-5d8d6bb8f6-4vq4d' on 2026-08-07. Past incident: incident 2026-08-06 (Configuration Error (Resource Limit & JVM Heap Overhead Mismatch)).

Based on Nudgebee rightsizing recommendations and incident investigations from the last 30 days.

View the gate agent investigation

@github-actions

Copy link
Copy Markdown

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant