Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifests/jenkins: bump jnlp memory to 512Mi #825

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 27, 2023

By default, the jnlp container has a memory request of 256Mi and no
memory limit. In 9eed927 ("manifests/jenkins: set resource limits and
requests for jnlp container"), we added an explicit memory limit so that
we don't inherit the default 10G memory limit from the limitrange in
the RHCOS OpenShift project. We set it to 256Mi since that's what the
default memory request was, but it's too little as a hard limit. Most
of the time, the jnlp unexplicably dies, but at least once, I saw it
fail with:

java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached

Bump it to 512Mi. And also bump the request since in this project we try
to have requests match what the pod actually needs.

While we're here, add a comment about why we set these values.

Fixes coreos/coreos-assembler#3372.

@jlebon
Copy link
Member Author

jlebon commented Feb 27, 2023

I've already rolled this out in CoreOS CI to test it. If coreos/coreos-assembler#3375 and coreos/coreos-assembler#3374 come back happy, let's consider it fixed and merge this.

By default, the jnlp container has a memory request of 256Mi and no
memory limit. In 9eed927 ("manifests/jenkins: set resource limits and
requests for jnlp container"), we added an explicit memory limit so that
we don't inherit the default 10G memory limit from the limitrange in
the RHCOS OpenShift project. We set it to 256Mi since that's what the
default memory *request* was, but it's too little as a hard limit. Most
of the time, the jnlp unexplicably dies, but at least once, I saw it
fail with:

```
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
```

Bump it to 512Mi. And also bump the request since in this project we try
to have requests match what the pod actually needs.

While we're here, add a comment about why we set these values.

Fixes coreos/coreos-assembler#3372.
@jlebon jlebon force-pushed the pr/bump-jnlp-limit branch from 72d6813 to ad4a38e Compare February 27, 2023 22:13
@jlebon jlebon marked this pull request as ready for review February 27, 2023 22:14
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon jlebon merged commit 95c34f7 into coreos:main Feb 27, 2023
@jlebon jlebon deleted the pr/bump-jnlp-limit branch April 24, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cosa CI fails intermittently in checkout scm step
2 participants