Skip to content

Make OOM not be a SIGKILL #40157

Open
Open
@grosser

Description

@grosser

Atm apps that go over the memory limit are hard killed 'OOMKilled', which is bad (losing state / not running cleanup code etc)

Is there a way to get SIGTERM instead (with a grace period or 100m before reaching the limit) ?

Activity

changed the title [-]Make OOM behave not be a SIGKILL[/-] [+]Make OOM not be a SIGKILL[/+] on Jan 19, 2017
smarterclayton

smarterclayton commented on Feb 28, 2017

@smarterclayton
Contributor

@kubernetes/sig-node-feature-requests

vishh

vishh commented on Feb 28, 2017

@vishh
Contributor

It is not possible to change OOM behavior currently. Kubernetes (or runtime) could provide your container a signal whenever your container is close to its memory limit. This will be on a best effort basis though because memory spikes might not be handled on time.

grosser

grosser commented on Feb 28, 2017

@grosser
Author

FYI using this crutch atm https://github.com/grosser/preoomkiller

any idea what would need to change to make OOM behavior configureable ?

fejta-bot

fejta-bot commented on Dec 21, 2017

@fejta-bot

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

added
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
on Dec 21, 2017
fejta-bot

fejta-bot commented on Jan 20, 2018

@fejta-bot

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle rotten
/remove-lifecycle stale

added
lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.
and removed
lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.
on Jan 20, 2018
yujuhong

yujuhong commented on Jan 22, 2018

@yujuhong
Contributor

/remove-lifecycle stale
/cc @dashpole

fejta-bot

fejta-bot commented on Feb 21, 2018

@fejta-bot

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

95 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @grosser@johnnyshields@morganchristiansson@cbandy@tsuna

        Issue actions

          Make OOM not be a SIGKILL · Issue #40157 · kubernetes/kubernetes