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

Add container memory limit #1169

Merged
merged 3 commits into from
Apr 11, 2024
Merged

Add container memory limit #1169

merged 3 commits into from
Apr 11, 2024

Conversation

ArtoLord
Copy link
Collaborator

No description provided.

@ArtoLord ArtoLord requested a review from imakunin April 11, 2024 08:43
Comment on lines 22 to 23
@Nullable
Long memLimitMb
Copy link
Contributor

Choose a reason for hiding this comment

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

These can be put on one line

Copy link
Contributor

Choose a reason for hiding this comment

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

no, no :)
we place annotations on separate lines

Comment on lines 385 to 387
var killed = client.inspectContainerCmd(containerId)
.exec()
.getState().getOOMKilled();
Copy link
Contributor

Choose a reason for hiding this comment

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

Weird formatting

@ArtoLord ArtoLord enabled auto-merge (squash) April 11, 2024 11:15
return 0;
}

if (isOomKilled()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. you should check OOM before retcode
  2. right now you do inspect twice: on line 254 and line 385

@ArtoLord ArtoLord merged commit 2c54615 into master Apr 11, 2024
7 checks passed
@ArtoLord ArtoLord deleted the add-memory-limit branch April 11, 2024 11:30
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.

None yet

3 participants